Commit Graph

26 Commits

Author SHA1 Message Date
christos
cb5e99c661 centralize vers.c building for standalone programs. 2017-04-08 19:53:19 +00:00
christos
8d15ebea2d Sprinkle NOPIE 2016-08-28 08:51:52 +00:00
dholland
85e3fbd2eb PR 51200 gets in libsa considered harmful: use kgets 2016-06-11 06:24:36 +00:00
dholland
e5e22563a1 PR 51193 David Binderman: simplify redundant conditional. 2016-05-31 04:05:50 +00:00
christos
43ebc39121 kill sprintf 2014-03-26 17:41:15 +00:00
tsutsui
8c436a9898 Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.
XXX: probabry we should have bsd.saprog.mk or something.
2014-01-12 15:26:28 +00:00
matt
a6b3901fad Use <bsd.klinks.mk>
Add missing ${_MKTARGET_LINK}
2013-08-21 07:08:30 +00:00
nonaka
2388feef61 fix my license notice. 2012-01-21 19:44:28 +00:00
tsutsui
c2e8ce644b Apply the following patch submitted by Evgeniy Ivanov:
http://mail-index.NetBSD.org/tech-kern/2011/12/15/msg012226.html
http://mail-index.NetBSD.org/tech-kern/2011/12/17/msg012229.html

 - add 'ls' op to struct fs_ops to support ls command on each fs,
   enabled by -DLIBSA_ENABLE_LS_OP and SAMISCMAKEFLAGS+="SA_ENABLE_LS_OP=yes"
   in libsa
 - split sys/lib/libsa/ufs_ls.c into UFS specific part and MI part (ls.c)
   that opens the target fs and calls fs-depedent XXX_ls() functions
 - add a ls op for ext2fs
   (all other fs than ufs and ext2fs don't have actual ls ops yet)
 - replace existing MD ufs_ls() calls with this new MI ls()

The original patch was written for i386 and ext2fs.
zaurus zboot has been tested by nonaka@.
ews4800mips and x68k loaders have been tested by me (with several fixes).
landisk might be okay since it was almost copied from i386.

XXX1: "ls" op in fs_ops looks a bit inconsistent, but we will be able to
      replace it with real fs ops like readdir if it's really worth
XXX2: someone might have to check sys/arch/ia64/stand/efi/libefi/efifs_ls.c
2011-12-25 06:09:08 +00:00
joerg
3eb244d801 Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
mrg
008b45d2d8 avoid a "multi-level non-const cast" warning from GCC 4.5. 2011-07-06 01:19:45 +00:00
joerg
3c550524b5 Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh.  Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
2011-01-22 19:19:14 +00:00
dholland
5ef6a33bb9 Introduce .WAIT into the cleandir rule for blasting the libsa/libkern/etc.
trees, because it can race with the libsa/libkern/etc. makefiles' own
cleandir rules. I think I've found all of the uses of the offending idiom...
Closes PR 43360.
2010-05-27 06:58:12 +00:00
tsutsui
13544cbb6e Add .WAIT between bootxx_ffsv1 and bootxx_ffsv2 to avoid race
on parallel build as well as i386.
XXX: maybe it's better to build libsa in each bootxx dir.
2009-05-13 14:55:20 +00:00
tsutsui
08978db2b9 Fix race on parallel build by using the same way with i386.
XXX: we can't use <bsd.klinks.mk> if Makefile needs own .BEGIN: target.
2009-05-03 15:12:12 +00:00
tsutsui
5734d43cbb Build and install bootxx_ustarfs. 2009-04-22 17:20:08 +00:00
tsutsui
8b99674610 Add ustarfs boot support.
This will be useful for disk size independent bootstrap installation image.
2009-04-22 17:13:36 +00:00
tsutsui
6bdfd94ab7 Add UFS2 boot support. Tested on lantank. 2009-04-21 15:17:58 +00:00
nonaka
88856a8da9 Use <bsd.klinks.mk> to create ${MACHINE} and ${MACHINE_ARCH} symlinks. 2009-04-13 12:54:45 +00:00
tsutsui
ac465a42e7 Remove obsolete LIBSA_USE_MEMCPY and LIBSA_USE_MEMSET.
They were removed from <lib/libsa/stand.h> on December 2007.
2009-04-03 10:38:12 +00:00
dsl
454af1c0e8 Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
2009-03-14 15:35:58 +00:00
tsutsui
69cf32a782 Replace time_t values in libsa sources with the following two types
to avoid unnecessary 64 bit ops which would make binaries larger:

satime_t (currently unsigned int):
 numbers in seconds returned by the machine dependent getsecs() function
 which are used to measure relative time

saseconds_t (currently int):
 numbers in seconds used to specify timeout to network drivers

Per discussion on current-users.
2009-01-12 11:32:43 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
drochner
58cf8a6614 as on i386, don't use ":=" assignments with .OBJDIR 2006-11-14 14:09:54 +00:00
nonaka
a7cd4d65eb adapt to new rs5c313 driver. 2006-09-11 13:48:57 +00:00
uwe
1fd097bf15 Initial import of NetBSD/landisk port by NONAKA Kimihiro <nonaka@NetBSD.org> 2006-09-01 21:26:18 +00:00