lukem
f85d2d1c14
Use ${HOST_SH} instead of `sh'.
...
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-26 07:25:33 +00:00
simonb
970b12080e
Define LIB{CRT0,C,CRTBEGIN,CRTEND} as nothing, we don't need to link
...
against them.
2003-10-08 01:40:22 +00:00
dsl
154703d1f9
Use memset (instead of bzero) to clear bss.
...
bootxx_lfs now fits in the available space.
2003-08-29 12:58:39 +00:00
dsl
99ace74e7b
Create linker map file so it is possible to see which library members
...
are included and why.
2003-08-29 12:56:59 +00:00
agc
aad01611e7
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
drochner
7349f5c301
"bootparam" specific variables are defined in libsa/bootparam.c now.
2003-03-19 17:21:41 +00:00
drochner
7d2a35f773
kill the last use of NENTS
...
(We shouldn't use libsa/netif here at all.)
2003-03-13 14:15:58 +00:00
drochner
caa65123a8
cope with removal of this sick NENTS macro from libsa/netif.h
2003-03-13 13:35:55 +00:00
simonb
3a93f29238
Update for LFSv2 support. Ports that have "bootxx_lfs"-style
...
bootblocks currently only support LFSv2, but the second level
"boot" program supports both LFS versions.
2003-02-23 23:23:07 +00:00
simonb
9c7531221b
Use a 32-bit daddr_t so that lib/libsa/{ufs,lfs}.c don't pull in 64
...
bit divide and modulus library routines that break the tight space
constraints on bootblocks on these platforms.
May not be the final solution, but gets bootblocks building again.
2003-02-01 23:58:48 +00:00
lukem
a250e57c96
Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
...
"${RELEASEDIR}/...".
${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.
2003-01-03 15:34:30 +00:00
thorpej
6774aca1fe
Make the bootblocks build with warnings.
2002-11-09 06:34:37 +00:00
mycroft
f40651a8e2
Remove redundant declaration of ether_ntoa() so this builds again.
2002-09-22 05:38:30 +00:00
lukem
fb7bc8541e
arch/*/stand stuff should be LDSTATIC=-static and not LDSTATIC?=-static.
...
It doesn't make sense to have standalone stuff dynamically linked just
because an end-user uses LDSTATIC="".
2002-08-27 08:53:14 +00:00
nathanw
3fe600dd5c
Experimentation reveals that the implementation of GET_ENV on at least
...
some systems chokes if the buffer is not 8-byte aligned. GCC only aligns
character arrays to 4-byte boundaries by default, so it's possible to get
unlucky and die in the boot blocks with a "kernel stack not valid halt".
Avoid the problem by using a local, aligned buffer as the argument to GET_ENV,
and copying the result into the caller's buffer.
Should fix PRs port-alpha/17682 and port-alpha/17717.
CVS ----------------------------------------------------------------------
2002-07-30 20:36:42 +00:00
yamt
7d0fd357f6
make auto const variables static.
2002-06-08 16:51:38 +00:00
lukem
4369818766
Migrate alpha/pmax/vax bootblock stuff from <dev/dec/dec_boot.h> to
...
<sys/bootblock.h> (leaving ultrix compat goo in the former)
2002-05-14 06:34:20 +00:00
lukem
4ec732199e
nuke MD installboot (ok-ed by thorpej)
2002-05-08 04:09:46 +00:00
lukem
b933e511b1
nuke installboot.old / bootxx combo (the old "primary bootstrap with
...
hardcoded blocks of secondary bootstrap"); it was only used by the
distrib ustarfs stuff, and that now uses usr/sbin/installboot and ustarboot
2002-05-03 15:36:52 +00:00
lukem
f8df2d6332
remove boot_block stuff from include/disklabel.h, and migrate to
...
alpha_boot_block stuff in dev/dec/dec_boot.h
2002-04-03 06:16:01 +00:00
thorpej
6e17c402e6
Add -ffreestanding to CFLAGS. Remove the GCC 2.8 check around
...
-Wno-main (always include -Wno-main).
2002-01-05 01:22:21 +00:00
lukem
95c845e4fc
add -Os to COPTS after <bsd.prog.mk> is pulled in rather than adding
...
it in CFLAGS beforehand, as a user's mk.conf COPTS+=-O2 results in
boot files that are too large.
2001-12-30 16:32:29 +00:00
lukem
b0b0a32ad7
Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
...
Otherwise the appropriate MKxxx=no won't be defined .
2001-12-12 12:24:19 +00:00
tv
8e6f7afb5b
MKfoo=no -> NOfoo
2001-12-12 01:48:43 +00:00
scw
45e7238a02
Bump the version numbers of all bootloaders which use loadfile_elfXX() now
...
that it tries hard to avoid backwards seeks.
2001-11-09 19:53:11 +00:00
thorpej
e727e3f180
Split elf32 vs. elf64 handling in loadfile(), including support for
...
each separately and explicitly. BOOT_ELF is now BOOT_ELF32 and
BOOT_ELF64, and ELFSIZE should no longer be defined in loadfile_machdep.h.
2001-10-31 17:20:45 +00:00
tv
ab11c169b5
objcopy -> ${OBJCOPY}; remove redundant definitions of OBJCOPY?= (it is
...
now in bsd.own.mk).
2001-09-22 03:34:17 +00:00
bjh21
ad2c12a28d
Bump version numbers of all bootloaders that use loadfile/ELF, to account for
...
my changes to symbol loading. I should probably have done this at the time,
but it's better late than never.
2001-08-02 12:24:05 +00:00
wiz
684d06bac8
bcopy -> memcpy, bzero -> memset
2001-07-22 15:17:30 +00:00
wiz
a9356936b4
seperate -> separate
2001-07-22 13:33:58 +00:00
he
47ae105daa
Add Makefile snippets to install netboot in installation/netboot
...
under ``make release''.
2001-05-28 18:21:12 +00:00
cgd
8a986b2e96
convert to use getprogname()
2001-02-19 22:48:57 +00:00
simonb
215a3a5491
Add support for booting off RAIDframe RAID1 mirrors.
...
Check the first partition type in devopen(), and if it is of type
FS_RAID, add 64 to blkdev_part_offset.
NOTE: This brings the size of the alpha first-stage bootblocks up to
close to the maximum. RAID1 support is controlled by the
BOOTXX_RAID1_SUPPORT define, and is easy to disable if size
becomes an issue.
2000-09-26 05:13:36 +00:00
jdolecek
911d661dad
switch to sys/conf/newvers_stand.sh for generation of version files
...
move the vers.c depend/build goo to Makefile.bootprogs and remove
explicit rules in other Makefiles
sync the message in */version files with other ports using newvers_stand.sh
XXX the new depend rules were tested to limited extend (also with obj dirs)
XXX on i386 and should be ok; the changes should not otherwise influence build
2000-07-21 21:25:18 +00:00
matt
58ca6aac15
Add netbsd.alpha & netbsd.alpha.gz for installation cds.
2000-06-12 23:38:03 +00:00
tsutsui
11c8f56d48
Revert STRIPPROG -> STRIP
2000-02-01 05:25:24 +00:00
mycroft
7b49d242ce
Clean up the machine symlink stuff ever so slightly. Needs to be
...
standardized between files.
2000-01-23 17:04:03 +00:00
tsutsui
e61f177ab1
STRIP -> STRIPPROG
2000-01-19 16:29:54 +00:00
thorpej
12f7832ebc
don't need private `imb' inline anymore.
1999-11-30 22:32:08 +00:00
thorpej
728d672378
Backout my libsa changes.
1999-11-13 21:33:12 +00:00
simonb
2b6e59dd39
Don't include <lib/libkern/libkern.h> for prototypes that are also in
...
<lib/libsa/stand.h>. The alpha still needs libkern for the division
and remainder support.
1999-11-12 13:11:40 +00:00
hubertf
467dda98ab
Sync usage with the manpage (add -s)
1999-10-05 03:18:32 +00:00
ross
b18cdd3e4e
Add transition-flag -S, to regenerate alpha/sparc harmonized checksums.
1999-10-04 21:22:15 +00:00
ross
9648d2fcd6
Merge from my i386 source tree: make this build on i386 (and others)
1999-10-04 19:23:19 +00:00
ross
722e1970eb
Completely replace the logic used for sparc/alpha checksum harmonization.
1999-10-04 19:19:11 +00:00
ross
add81fb25a
New -s option. Arranges for the 64-bit alpha checksum to contain within it
...
an embedded 16-bit sparc checksum and 16-bit sparc magic number.
See also: rev 1.16
1999-09-19 04:54:57 +00:00
ross
9ff31ad0f5
New option: -s
...
.
Makes the 64-bit alpha checksum magically contain an embedded 16-bit
Sun (NetBSD/sparc) compatible magic number and checksum. This is the
last piece in the "boot one disk from alpha, sun, and i386" problem.
.
And for those who told me this had been done before, :-P. It turns out,
it was only done in the collective sense by multi-disk distributions.
1999-09-19 03:19:00 +00:00
ross
e66e48676c
Nuke the alpha ecoff/elf bootloader and use the libsa/ one instead.
1999-09-10 07:31:16 +00:00
cgd
b18820272a
add bootxx_lfs
1999-08-18 21:34:24 +00:00
cgd
a97b5505e4
add lfs support
1999-08-18 21:34:11 +00:00