Commit Graph

269 Commits

Author SHA1 Message Date
christos
2bc1b2d373 not a good place to include "nbtool_config.h" 2013-03-12 01:52:55 +00:00
christos
aa85cedebf don't leak on error. 2013-03-05 16:29:09 +00:00
christos
1cf655fddf regen 2013-03-05 16:28:06 +00:00
christos
8fdd0859f5 add dprintf 2013-03-05 16:26:41 +00:00
christos
ce5eed14bf regen 2013-02-17 00:34:35 +00:00
christos
1fb8dbfe71 cygwin defines u_quad_t in <rpc/types.h>, so include this to the headers
we include and test by default.
2013-02-17 00:34:11 +00:00
christos
af9a2d00d7 yes, but include the right file 2013-02-07 20:31:52 +00:00
christos
fb6d072e45 add shaX and rmd160 headers, same as mdX 2013-02-07 20:30:29 +00:00
christos
4d8260de85 links for makefs 2013-01-26 16:52:43 +00:00
christos
af8c5897ad first define HOSTLIB and then include bsd.own.mk! 2012-12-10 00:34:56 +00:00
christos
568b7e7cb5 restore the find loop to include files generated by configure 2012-12-09 23:18:30 +00:00
christos
6e077d2764 handle the list of files and directories generated dynamically by configure 2012-12-09 21:48:04 +00:00
christos
df81d8d522 make this work 2012-12-09 19:15:48 +00:00
christos
c3a3a89834 Include <bsd.own.mk> to give a chance to ${TOOLDIR} to be defined before
using it in rules. Before there was another .mk file included before ${TOOLDIR}
was used.
2012-12-09 18:08:08 +00:00
apb
b45c93d77d Use a "find | while read" loop to install all *.h files anywhere
under ${.OBJDIR}/include, and remove the previous hack of touching a
"dummy" file in each subdirectory.  This should fix a problem on some
platforms where include files directly under ${.OBJDIR}/include (not in
a subdirectory) were not installed.
2012-12-09 15:22:54 +00:00
apb
15a61bc010 Change the default value of COMPATLIB_UNINSTALLED to no, now that
all users of comapt/defs.mk have been adjusted.  This is the last
commit related to fixing PR 47188.
2012-12-02 13:05:14 +00:00
apb
d4a6601b30 Add two variables to tools/compat/defs.mk.in:
COMPATLIB_UNINSTALLED:
		If "yes", then use the files from the .OBJDIR of
		NETBSDSRCDIR/tools/compat.  Otherwise, use the files
		from TOOLDIR.

COMPATLIB_NO_LIB:
		If "yes" then do not use the library (but still use
		the include files).

COMPATLIB_UNINSTALLED defaults to "yes" for now, but this will soon be
changed to "no.
2012-12-02 12:37:08 +00:00
apb
fe5488e7a4 Make tools/compat/Makefile install the library in
${TOOLDIR}/lib/libnbcompat.a, install the include files in
${TOOLDIR}/include/compat/**, and install defs.mk in
${TOOLDIR}/share/compat/defs.mk.  Previously, nothing from
tools/compat was installed under TOOLDIR.

Adjust tools/compat/Makefile to use an uninstalled copy of
host-mkdep from the .OBJDIR of tools/host-mkdep, and an uninstalled
copy of the install program from the .OBJDIR of tools/binstall.
This allows it to be built after tools/host-mkdep is built but
before tools/host-mkdep is installed; and to be installed after
tools/binstall is built but before tools/binstall is installed.
2012-12-02 12:34:51 +00:00
apb
3a6b21ba52 Teach tools/compat/Makefile to use an uninstalled copy of host-mkdep
from the.OBJDIR of tools/host-mkdep.  This is in preparation for
building all three of tools/host-mkdep, tools/compat, and tools/binstall,
before installing any of them.

While here, also move the regen target to the end.
2012-12-02 12:19:34 +00:00
joerg
1fa9b84508 Add cdbr(3) support to tools/compat. 2012-06-04 19:06:45 +00:00
joerg
571103e860 Build getcap.c only once. 2012-06-04 18:53:02 +00:00
joerg
4b38c823d2 Make Alan Barrett happy and add (). 2012-06-04 10:18:01 +00:00
joerg
f7ef3610be Add a special seeder for cdbw_output that gives stable results.
Hook up cdbw(3) for the tool build.
2012-06-03 21:02:50 +00:00
joerg
4f6bb5e029 Add __predict_true / __predict_false definitions. 2012-06-03 21:01:43 +00:00
joerg
b203f35690 Don't depend on __P. 2012-06-02 22:54:52 +00:00
njoly
584981b8a8 Adjust libyywrap.c location. 2012-02-18 17:51:21 +00:00
tsutsui
fdc3c331af Always redefine DEV_BSIZE=512.
All references of DEV_BSIZE in tools are to manipulate target
(i.e. NetBSD's) file images (in installboot(8) and makefs(8) etc.) and
no host's DEV_BSIZE is required for the moment.  Closes PR toolchain/42574.
2012-01-21 20:05:27 +00:00
joerg
89e5f5a8b7 Add getline.c here too. 2011-11-03 19:30:05 +00:00
joerg
b0027af054 Add getline(3) compat glue. 2011-11-03 14:13:53 +00:00
jdc
3d7c729d6b Add PDP_ENDIAN definition, required for makefs (v7fs). 2011-09-05 07:38:52 +00:00
joerg
f4a68476b9 Ensure __printflike exists. 2011-08-27 18:33:22 +00:00
apb
4390b548c2 regen 2011-08-14 20:25:01 +00:00
apb
c2497c0d32 Detect the presence of <pthread.h>, and add a HAVE_PTHREAD_H
variable in defs.mk.
2011-08-14 20:22:42 +00:00
apb
e4189833c9 Prevent expansion of <dollar>NetBSD<dollar> in a string that's
indended to be copied to nbtool_config.h.

Fix most lines longer than 80 columns.  I don't know how to fix the
long lines in the definition of NB_CHECK_INTTYPE.
2011-08-14 20:20:59 +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
christos
7ee5629d5b add a stdio neutral getline/getdelim implementation. 2011-03-20 20:48:57 +00:00
joerg
3a6bc2a9c4 ufs/ufs/quota.h is now used by makefs 2011-03-07 02:02:36 +00:00
apb
ff7405e5b4 Define PRI[diouxX]8. We previously did this only for
16- and 32-bit type, but now PRIu8 is needed for tools/disklabel.

Also define SCN[diouxX]{8,16,32}, the scanf counterparts
to the PRI[diouxX]{8,16,32} macros.

Tested via "build.sh tools" on a system whose native definitions
or the PRI* and SCN* mcros was disabled.
2011-01-10 20:38:35 +00:00
cegger
8690c1d646 remove OSX specific fix where CLOCK_REALTIME is not defined.
It has been properly fixed in
http://mail-index.netbsd.org/source-changes/2010/03/26/msg008200.html
2010-03-27 07:16:57 +00:00
cegger
1359eca921 toolchain buildfix on OSX with MKDTRACE=yes:
The host <sys/time.h> doesn't provide CLOCK_REALTIME but ctf uses it.
See http://mail-index.netbsd.org/current-users/2010/03/20/msg012963.html

No comments.
2010-03-26 07:16:12 +00:00
roy
98eb889579 Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
tsutsui
766937a0b1 Regen this properly per procedure described in src/tools/compat/configure.ac. 2010-01-21 12:55:04 +00:00
asau
76d4b3bdab Regenerate. 2010-01-15 11:27:01 +00:00
asau
9f9e90f73c Test for <sys/endian.h> and provide HAVE_SYS_ENDIAN_H.
Fixes FreeBSD hosted builds (PR 42440 and PR 42470).

Approved by <dholland>.
2010-01-15 11:26:25 +00:00
christos
f9076c1664 undef and redefine instead of checking if it is define, from joerg 2010-01-14 21:38:19 +00:00
christos
76aa0f6aa7 provide __arraycount for those that don't have it. 2010-01-14 21:26:56 +00:00
tron
b99b4b6003 Revert most of revision 1.73:
We cannot user_from_uid(3) or group_from_gid(3) unless the system
also supports pwcache_userdb(3) and pwcache_groupdb(3). The build will
use the hosts password and user database otherwise. Switch back to the
old behaviour to only the native functions if they are all present.
This fixes cross builds under Mac OS X and FreeBSD.

Fix based on problem analysis provided by Akihiko Hayashi.
2009-11-11 21:53:46 +00:00
joerg
14197c258c Define __RCSID and __COPYRIGHT as structure, so that the following
semicolon is consumed.
2009-11-06 18:26:06 +00:00
christos
2802d8b5af split all the password and group translation functions into individual
ifdefs instead of having a large one.
2009-10-02 18:03:19 +00:00
christos
6709212e45 add fpurge 2009-06-17 23:34:45 +00:00