]> Zhao Yanbai Git Server - minix.git/commit
Build NetBSD libc library in world in ELF mode.
authorGianluca Guida <gianluca@minix3.org>
Wed, 27 Apr 2011 13:00:52 +0000 (13:00 +0000)
committerBen Gras <ben@minix3.org>
Fri, 24 Jun 2011 09:46:30 +0000 (11:46 +0200)
commitcc17b27a2b312a8dce35647910c28c77f210277a
tree68114ac2fd3abf1381ee6834645edca744d80d6b
parente3f68488ee1359988fc7ac942963ddb89df5c630
Build NetBSD libc library in world in ELF mode.

3 sets of libraries are built now:
  . ack: all libraries that ack can compile (/usr/lib/i386/)
  . clang+elf: all libraries with minix headers (/usr/lib/)
  . clang+elf: all libraries with netbsd headers (/usr/netbsd/)

Once everything can be compiled with netbsd libraries and headers, the
/usr/netbsd hierarchy will be obsolete and its libraries compiled with
netbsd headers will be installed in /usr/lib, and its headers
in /usr/include. (i.e. minix libc and current minix headers set
will be gone.)

To use the NetBSD libc system (libraries + headers) before
it is the default libc, see:
   http://wiki.minix3.org/en/DevelopersGuide/UsingNetBSDCode
This wiki page also documents the maintenance of the patch
files of minix-specific changes to imported NetBSD code.

Changes in this commit:
  . libsys: Add NBSD compilation and create a safe NBSD-based libc.
  . Port rest of libraries (except libddekit) to new header system.
  . Enable compilation of libddekit with new headers.
  . Enable kernel compilation with new headers.
  . Enable drivers compilation with new headers.
  . Port legacy commands to new headers and libc.
  . Port servers to new headers.
  . Add <sys/sigcontext.h> in compat library.
  . Remove dependency file in tree.
  . Enable compilation of common/lib/libc/atomic in libsys
  . Do not generate RCSID strings in libc.
  . Temporarily disable zoneinfo as they are incompatible with NetBSD format
  . obj-nbsd for .gitignore
  . Procfs: use only integer arithmetic. (Antoine Leca)
  . Increase ramdisk size to create NBSD-based images.
  . Remove INCSYMLINKS handling hack.
  . Add nbsd_include/sys/exec_elf.h
  . Enable ELF compilation with NBSD libc.
  . Add 'make nbsdsrc' in tools to download reference NetBSD sources.
  . Automate minix-port.patch creation.
  . Avoid using fstavfs() as it is *extremely* slow and unneeded.
  . Set err() as PRIVATE to avoid name clash with libc.
  . [NBSD] servers/vm: remove compilation warnings.
  . u32 is not a long in NBSD headers.
  . UPDATING info on netbsd hierarchy
  . commands fixes for netbsd libc
136 files changed:
.gitignore
Makefile
commands/Makefile.inc
commands/aal/archiver.c
commands/add_route/add_route.c
commands/ash/input.c
commands/ash/output.c
commands/ash/output.h
commands/ash/shell.h
commands/ash/trap.c
commands/awk/Makefile
commands/calendar/calendar.c
commands/de/de.h
commands/dhcpd/dhcpd.c
commands/dhcpd/ether.c
commands/diff/diff.h
commands/dis386/type.h
commands/elle/sbm.c
commands/elvis/ref.c
commands/find/find.h
commands/finger/finger.c
commands/fix/fix.c
commands/ftp101/ftp.c
commands/ftp101/net.c
commands/ftpd200/ftpd.c
commands/gcov-pull/gcov-pull.c
commands/grep/Makefile
commands/host/host.c
commands/hostaddr/hostaddr.c
commands/ipcs/ipcs.c
commands/irdpd/irdpd.c
commands/logger/logger.c
commands/login/login.c
commands/ls/ls.c
commands/mdb/gnu_sym.c
commands/mdb/io.c
commands/mkfs.mfs/mkfs.c
commands/mknod/mknod.c
commands/nonamed/nonamed.c
commands/padtext/padtext.c
commands/pax/options.c
commands/pwdauth/pwdauth.c
commands/rarpd/rarpd.c
commands/reboot/log.c
commands/reboot/shutdown.c
commands/recwave/recwave.c
commands/stty/stty.c
commands/syslogd/syslogd.c
commands/talk/talk.c
commands/talkd/finduser.c
commands/tar/config.h
commands/uniq/uniq.c
commands/writeisofs/writeisofs.c
common/lib/libc/arch/i386/atomic/Makefile.inc
common/lib/libc/minix-port.patch
docs/UPDATING
drivers/Makefile.inc
drivers/ramdisk/Makefile
drivers/ramdisk/proto
drivers/random/random.c
kernel/Makefile
kernel/proto.h
lib/Makefile
lib/Makefile.inc
lib/clang_build.sh
lib/elf_build.sh
lib/elf_build_base.sh
lib/gnu_build.sh
lib/libarchive/Makefile
lib/libarchive/config.h
lib/libbz2/Makefile
lib/libddekit/build/ddekit/Makefile
lib/libddekit/src/thread.c
lib/libexec/exec_elf.c
lib/libhgfs/inc.h
lib/libsys/Makefile
lib/libsys/Makefile.libc.inc [new file with mode: 0644]
lib/libsys/_stdfile.c [new file with mode: 0644]
lib/libsys/abort.c [new file with mode: 0644]
lib/libsys/arch/i386/Makefile.libc.inc [new file with mode: 0644]
lib/libsys/assert.c
lib/libsys/calloc.c [new file with mode: 0644]
lib/libsys/errlist.c [new file with mode: 0644]
lib/libsys/fputs.c [new file with mode: 0644]
lib/libsys/malloc.c [new file with mode: 0644]
lib/libsys/panic.c
lib/libsys/vprintf.c
lib/libutil/Makefile
lib/libvtreefs/inc.h
lib/libz/Makefile
lib/nbsd_libc/Makefile
lib/nbsd_libc/Makefile.inc
lib/nbsd_libc/citrus/Makefile.inc
lib/nbsd_libc/dlfcn/dlfcn_elf.c
lib/nbsd_libc/gen/minix/gethostname.c
lib/nbsd_libc/gen/opendir.c
lib/nbsd_libc/minix-port.patch
lib/nbsd_libcompat_minix/Makefile
lib/nbsd_libcompat_minix/include/Makefile.inc
lib/nbsd_libcompat_minix/include/i386/compat_jmp_buf.h [new file with mode: 0644]
lib/nbsd_libcompat_minix/include/sys/jmp_buf.h [new file with mode: 0644]
lib/nbsd_libcompat_minix/include/sys/sigcontext.h [new file with mode: 0644]
lib/nbsd_libcompat_minix/mtab.c
lib/nbsd_libm/arch/i387/.depend [deleted file]
lib/nbsd_libm/minix-port.patch [new file with mode: 0644]
nbsd_include/arch/Makefile
nbsd_include/arch/i386/include/cdefs.h
nbsd_include/minix-port.patch
nbsd_include/sys/Makefile
nbsd_include/sys/cdefs_elf.h [new file with mode: 0644]
nbsd_include/sys/exec_elf.h [new file with mode: 0644]
servers/Makefile.inc
servers/inet/generic/rand256.c
servers/inet/inet.h
servers/inet/inet_config.h
servers/init/Makefile
servers/init/init.c
servers/iso9660fs/read.c
servers/mfs/Makefile
servers/pfs/inc.h
servers/pm/misc.c
servers/procfs/proto.h
servers/procfs/root.c
servers/procfs/type.h
servers/procfs/util.c
servers/vfs/select.c
servers/vm/alloc.c
servers/vm/arch/i386/pagetable.c
servers/vm/pagefaults.c
share/Makefile
share/mk/bsd.prog.mk
share/mk/bsd.sys.mk
tools/Makefile
tools/nbsd.config [new file with mode: 0644]
tools/nbsd_diff.sh [new file with mode: 0644]
tools/nbsd_ports [new file with mode: 0644]