]> Zhao Yanbai Git Server - minix.git/commitdiff
merge libminlib with libc 90/2790/1
authorBen Gras <ben@minix3.org>
Thu, 28 Aug 2014 15:35:17 +0000 (17:35 +0200)
committerBen Gras <ben@minix3.org>
Thu, 28 Aug 2014 16:49:19 +0000 (18:49 +0200)
Change-Id: I79cc4ea90c378a1da3dac16487b53034953827a7

63 files changed:
distrib/sets/lists/minix/mi
lib/Makefile
lib/libc/gen/Makefile.inc
lib/libc/pkgconfig/libc.pc
minix/commands/Makefile.inc
minix/drivers/Makefile.inc
minix/drivers/audio/Makefile.inc
minix/drivers/storage/ramdisk/Makefile
minix/drivers/storage/ramdisk/proto.common.dynamic
minix/drivers/usb/usb_storage/Makefile
minix/drivers/usb/usbd/base/earm/Makefile
minix/fs/Makefile.inc
minix/fs/ext2/Makefile
minix/fs/iso9660fs/Makefile
minix/fs/procfs/Makefile
minix/kernel/Makefile
minix/kernel/arch/earm/Makefile.inc
minix/kernel/arch/i386/Makefile.inc
minix/lib/Makefile
minix/lib/libc/Makefile.inc
minix/lib/libc/arch/arm/Makefile.inc [new file with mode: 0644]
minix/lib/libc/arch/arm/get_bp.S [moved from minix/lib/libminlib/earm/get_bp.S with 100% similarity]
minix/lib/libc/arch/arm/read_tsc.c [moved from minix/lib/libminlib/earm/read_tsc.c with 95% similarity]
minix/lib/libc/arch/i386/Makefile.inc [new file with mode: 0644]
minix/lib/libc/arch/i386/_cpufeature.c [moved from minix/lib/libminlib/i386/_cpufeature.c with 100% similarity]
minix/lib/libc/arch/i386/_cpuid.S [moved from minix/lib/libminlib/i386/_cpuid.S with 100% similarity]
minix/lib/libc/arch/i386/get_bp.S [moved from minix/lib/libminlib/i386/get_bp.S with 100% similarity]
minix/lib/libc/arch/i386/getprocessor.S [moved from minix/lib/libminlib/i386/getprocessor.S with 100% similarity]
minix/lib/libc/arch/i386/read_tsc.S [moved from minix/lib/libminlib/i386/read_tsc.S with 100% similarity]
minix/lib/libc/gen/dhcp_gettag.c [moved from minix/lib/libminlib/dhcp_gettag.c with 100% similarity]
minix/lib/libc/gen/dhcp_settag.c [moved from minix/lib/libminlib/dhcp_settag.c with 100% similarity]
minix/lib/libc/gen/fslib.c [moved from minix/lib/libminlib/fslib.c with 97% similarity]
minix/lib/libc/gen/fsversion.c [moved from minix/lib/libminlib/fsversion.c with 100% similarity]
minix/lib/libc/gen/gcov.c [moved from minix/lib/libminlib/gcov.c with 100% similarity]
minix/lib/libc/gen/gcov_flush.c [moved from minix/lib/libminlib/gcov_flush.c with 100% similarity]
minix/lib/libc/gen/itoa.c [moved from minix/lib/libminlib/itoa.c with 100% similarity]
minix/lib/libc/gen/oneC_sum.c [moved from minix/lib/libminlib/oneC_sum.c with 100% similarity]
minix/lib/libc/gen/paramvalue.c [moved from minix/lib/libminlib/paramvalue.c with 100% similarity]
minix/lib/libc/gen/read_tsc_64.c [moved from minix/lib/libminlib/read_tsc_64.c with 100% similarity]
minix/lib/libc/gen/servxcheck.c [moved from minix/lib/libminlib/servxcheck.c with 100% similarity]
minix/lib/libc/sys/Makefile.inc
minix/lib/libc/sys/gcov_flush_sys.c [moved from minix/lib/libc/sys/gcov_flush.c with 100% similarity]
minix/lib/libminc/Makefile
minix/lib/libminixfs/Makefile
minix/lib/libminlib/Makefile [deleted file]
minix/lib/libminlib/earm/Makefile.inc [deleted file]
minix/lib/libminlib/i386/Makefile.inc [deleted file]
minix/lib/libminlib/pkgconfig/Makefile [deleted file]
minix/lib/libminlib/pkgconfig/minlib.pc [deleted file]
minix/lib/libminlib/shlib_version [deleted file]
minix/net/Makefile.inc
minix/servers/Makefile.inc
minix/servers/devman/Makefile
minix/tests/Makefile
minix/tests/blocktest/Makefile.inc
minix/tests/ddekit/Makefile
minix/tests/ds/Makefile.inc
minix/tests/kernel/sys_vumap/Makefile.inc
minix/tests/safecopy/Makefile
minix/usr.sbin/mkfs.mfs/Makefile.mkfs
minix/usr.sbin/mkproto/Makefile
share/mk/bsd.lib.mk
share/mk/bsd.prog.mk

index 7beb005b9eb40f9cb6132f0669296aaaf92690d1..6f3ad627b821441d1b8295cb584ebc4a36ed7756 100644 (file)
 ./usr/lib/bc/libmenu.a                 minix-sys       bitcode
 ./usr/lib/bc/libminc.a                 minix-sys       bitcode
 ./usr/lib/bc/libminixfs.a              minix-sys       bitcode
-./usr/lib/bc/libminlib.a               minix-sys       bitcode
-./usr/lib/bc/libmthread.a              minix-sys       bitcode
+./usr/lib/bc/libminlib.a               minix-sys       bitcode obsolete
+./usr/lib/bc/libmthread.a              minix-sys       bitcode 
 ./usr/lib/bc/libnetdriver.a            minix-sys       bitcode
 ./usr/lib/bc/libnetsock.a              minix-sys       bitcode
 ./usr/lib/bc/libopcodes.a              minix-sys       bitcode,binutils
 ./usr/lib/libminc.a                    minix-sys
 ./usr/lib/libminixfs.a                 minix-sys
 ./usr/lib/libminixfs_pic.a             minix-sys
-./usr/lib/libminlib.a                  minix-sys
-./usr/lib/libminlib_pic.a              minix-sys
-./usr/lib/libminlib.so.0.0             minix-sys
-./usr/lib/libminlib.so.0               minix-sys
-./usr/lib/libminlib.so                 minix-sys
+./usr/lib/libminlib.a                  minix-sys       obsolete
+./usr/lib/libminlib_pic.a              minix-sys       obsolete
+./usr/lib/libminlib.so.0.0             minix-sys       obsolete
+./usr/lib/libminlib.so.0               minix-sys       obsolete
+./usr/lib/libminlib.so                 minix-sys       obsolete
 ./usr/lib/libm_pic.a                   minix-sys
 ./usr/lib/libm.so.0                    minix-sys
 ./usr/lib/libm.so.0.10                 minix-sys
 ./usr/lib/lua/5.1/gpio.so              minix-sys
 ./usr/lib/lua/5.1/sqlite.so            minix-sys
 ./usr/lib/lua/5.1/syslog.so            minix-sys
-./usr/lib/minlib.pc                    minix-sys
+./usr/lib/minlib.pc                    minix-sys       obsolete
 ./usr/lib/pkgconfig                    minix-sys
 ./usr/lib/pkgconfig/atf-c.pc           minix-sys       atf
 ./usr/lib/pkgconfig/atf-c++.pc         minix-sys       atf
index be825604afed454f79aec0bd454ca53fe1a94044..65e3ae4ca9d7b860ae5d078fc17eba1b5db87d69 100644 (file)
@@ -21,9 +21,7 @@ SUBDIR+=      ../external/gpl3/gcc/lib/libgcc .WAIT
 
 .if defined(__MINIX)
 #LSC MINIX libc depends on
-# - libminlib because of minix/lib/libc/malloc-debug.c
 # - libmthread because of sys/lib/libunwind
-SUBDIR+=       ../minix/lib/libminlib
 SUBDIR+=       .WAIT
 
 SUBDIR+=       ../minix/lib/libsys
index b44e1401ce7171a59ef006001644da3a19988c1f..4543a1a2f5268b3a134afc7b20f74a67661f44f2 100644 (file)
@@ -4,6 +4,13 @@
 # gen sources
 .if defined(__MINIX)
 .PATH: ${NETBSDSRCDIR}/minix/lib/libc/gen
+
+CPPFLAGS.fslib.c+= -I${NETBSDSRCDIR}/minix/fs
+CPPFLAGS.fsversion.c+= -I${NETBSDSRCDIR}/minix/fs
+
+SRCS+= dhcp_gettag.c dhcp_settag.c fsversion.c gcov.c gcov_flush.c itoa.c \
+       oneC_sum.c paramvalue.c read_tsc_64.c servxcheck.c fslib.c
+
 .endif # defined(__MINIX)
 .PATH: ${ARCHDIR}/gen ${.CURDIR}/gen
 
index 415f4d29f3e9e1acbe6fe4a95c89c12f79ea8c0f..7b2f1e8b975135490a42776476aba6c4a5f17bcb 100644 (file)
@@ -1,4 +1,4 @@
 Name: c
 Description: NetBSD C Library
 Version: 1.0
-Libs: -lc -lminlib 
+Libs: -lc 
index 70ce47200c8823b7bbe2b9a47d188e042c0b8674..5c8747be13e02ed1bf4187c037f0c1b5c5df5b62 100644 (file)
@@ -1,7 +1,7 @@
 # Only include Minix-specific libraries when compiling
 # for non-Minix, i.e. not natively in a crossbuild.
 .if !defined(HOSTPROGNAME)
-LDADD+= -lminlib -lasyn -lterminfo
+LDADD+= -lasyn -lterminfo
 .endif
 
 BINDIR?=/usr/bin
index f9a17bb736c3b903bd5b703f2fcfcb35a8808385..2fe960cd1299761d99c2d49cf04746341cc45d7e 100644 (file)
@@ -1,7 +1,4 @@
 BINDIR?= /service
 MAN?=
 
-LDADD+= -lminlib 
-DPADD+= ${LIBMINLIB} 
-
 .include "../Makefile.inc"
index 9af54d4afb87763b3078304004b0728b9306b5ee..d32baf3935dfcac0821e52ab862b9f5f4eb74500 100644 (file)
@@ -1,7 +1,7 @@
 BINDIR?= /service
 MAN?=
 
-DPADD+= ${LIBAUDIODRIVER} ${LIBCHARDRIVER} ${LIBSYS} ${LIBMINLIB}
-LDADD+= -laudiodriver -lchardriver -lsys -lminlib
+DPADD+= ${LIBAUDIODRIVER} ${LIBCHARDRIVER} ${LIBSYS} 
+LDADD+= -laudiodriver -lchardriver -lsys 
 
 .include "../Makefile.inc"
index 1c843aa8599d97a3a4ec7e1c7d864322dfd6f4c0..3e2a7f448f95fe5f62be6d67cb43d0d3ca869f3a 100644 (file)
@@ -98,7 +98,6 @@ dir.mmc:=     minix/drivers/storage/mmc
 RAMDISK_DYNAMIC=        1
 PROGRAMS+=             ld.elf_so
 PROG_LIBS+=            libc
-PROG_MINIXLIBS+=       libminlib
 PROG_MINIXLIBS+=       libterminfo
 .endif
 
index c411a0dafb5ac80df36ce16124cef8a83edd2210..27bf79170445753c819801441bda32aa0e5ab60b 100644 (file)
@@ -4,7 +4,6 @@
        usr d--755 0 0
                lib d--755 0 0
                        libc.so.0 ---755 0 0 libc.so.0
-                       libminlib.so.0 ---755 0 0 libminlib.so.0
                        libterminfo.so.0 ---755 0 0 libterminfo.so.0
                $
        $
index b3a667aad61d281055f66cf2925a8f56c6bb670c..6c37a9c42a1e4fc7ead863f483adac288c790abb 100644 (file)
@@ -6,8 +6,8 @@ FILES= $(PROG).conf
 FILESNAME= $(PROG)
 FILESDIR= /etc/system.conf.d
 
-DPADD+= ${LIBBLOCKDRIVER} ${LIBDDEKIT_USB_CLIENT} ${LIBSYS} ${LIBMINLIB} ${LIBDDEKIT} ${LIBUSB}
-LDADD+= -lblockdriver -lddekit_usb_client -lsys -lminlib -lddekit -lusb
+DPADD+= ${LIBBLOCKDRIVER} ${LIBDDEKIT_USB_CLIENT} ${LIBSYS} ${LIBDDEKIT} ${LIBUSB}
+LDADD+= -lblockdriver -lddekit_usb_client -lsys -lddekit -lusb
 
 #For easier debugging, uncomment:
 #LDADD+= -Wl,-Ttext=0x800000
index 59425a2c59ea1ded0ba7dd2f0631f24332d585c6..c5c7e172648dbe8c44ae4822c0311b4dcf3e5069 100644 (file)
@@ -9,7 +9,7 @@ BINDIR=         /service
 
 CPPFLAGS+=     -I${.CURDIR}/../../include
 
-DPADD+=                ${LIBDDEKIT} ${LIBDDEKIT_USB_SERVER} ${LIBDEVMAN} ${LIBUSB} ${LIBMINC} ${LIBCLKCONF} ${LIBSYS} ${LIBMINLIB}
-LDADD+=                -lddekit -lddekit_usb_server -ldevman -lusb -lminc -lclkconf -lsys -lminlib
+DPADD+=                ${LIBDDEKIT} ${LIBDDEKIT_USB_SERVER} ${LIBDEVMAN} ${LIBUSB} ${LIBMINC} ${LIBCLKCONF} ${LIBSYS} 
+LDADD+=                -lddekit -lddekit_usb_server -ldevman -lusb -lminc -lclkconf -lsys 
 
 .include <minix.service.mk>
index f9a17bb736c3b903bd5b703f2fcfcb35a8808385..2fe960cd1299761d99c2d49cf04746341cc45d7e 100644 (file)
@@ -1,7 +1,4 @@
 BINDIR?= /service
 MAN?=
 
-LDADD+= -lminlib 
-DPADD+= ${LIBMINLIB} 
-
 .include "../Makefile.inc"
index 44f289c303d945f14bfeabdfc93875e10b6046c0..abbe5b54ec696fd75f853aefaff792e0ba361871 100644 (file)
@@ -5,8 +5,8 @@ SRCS=   balloc.c link.c \
        stadir.c table.c time.c utility.c \
        write.c ialloc.c inode.c main.c path.c \
        super.c
-DPADD+=        ${LIBMINIXFS} ${LIBBDEV} ${LIBSYS} ${LIBMINLIB}
-LDADD+= -lminixfs -lbdev -lsys -lminlib
+DPADD+=        ${LIBMINIXFS} ${LIBBDEV} ${LIBSYS} 
+LDADD+= -lminixfs -lbdev -lsys 
 
 WARNS=3
 
index ecdc7c568d717ea05994c1280456843039f99e71..d95cfd17aeb825b1401af45acddb730971a3546b 100644 (file)
@@ -3,8 +3,8 @@ PROG=   isofs
 SRCS=  main.c table.c mount.c super.c inode.c \
        utility.c misc.c path.c read.c stadir.c
 
-DPADD+=        ${LIBBDEV} ${LIBSYS} ${LIBMINLIB}
-LDADD+=        -lbdev -lsys -lc -lminixfs -lminlib
+DPADD+=        ${LIBBDEV} ${LIBSYS} 
+LDADD+=        -lbdev -lsys -lc -lminixfs 
 
 CPPFLAGS+= -DNR_BUFS=100
 
index 8f18ef2053cff1b5af9d3c77b9031691bb9ba892..04b619601e8861927290bf6167d55a01cc9152e6 100644 (file)
@@ -8,7 +8,7 @@ CPPFLAGS+= -I${NETBSDSRCDIR}/minix
 CPPFLAGS+= -I${NETBSDSRCDIR}/minix/fs
 CPPFLAGS+= -I${NETBSDSRCDIR}/minix/servers
 
-DPADD+=        ${LIBVTREEFS} ${LIBMINLIB}
-LDADD+=        -lvtreefs -lminlib
+DPADD+=        ${LIBVTREEFS} ${LIBMINIXFS}
+LDADD+=        -lvtreefs -lminixfs
 
 .include <minix.service.mk>
index 2363f63e59d078b25db24f7467dbb6479f508fc2..eee010077cf5731081780e349084325c47d03d95 100644 (file)
@@ -10,7 +10,7 @@ MAN=
 SRCS+= clock.c cpulocals.c interrupt.c main.c proc.c system.c \
        table.c utility.c usermapped_data.c
 
-LDADD+=        -ltimers -lsys -lexec -lminlib
+LDADD+=        -ltimers -lsys -lexec 
 
 LINKERSCRIPT= ${.CURDIR}/arch/${MACHINE_ARCH}/kernel.lds
 
index 1b671011bd49e411bc792983064f471f6c243881..eb56e80c5d7810617b9c4cd3d8e590bd5ea0871d 100644 (file)
@@ -4,9 +4,9 @@
 HERE=${.CURDIR}/arch/${MACHINE_ARCH}
 .PATH: ${HERE}
 
-# objects we want unpaged from -lminlib
+# objects we want unpaged from -lc
 MINLIB_OBJS_UNPAGED= get_bp.o
-get_bp.o:      ${NETBSDSRCDIR}/minix/lib/libminlib/${MACHINE_ARCH}/get_bp.S
+get_bp.o:      ${NETBSDSRCDIR}/minix/lib/libc/arch/arm/get_bp.S 
 
 # objects we want unpaged from -lsys
 SYS_OBJS_UNPAGED=assert.o stacktrace.o
index f5fe8b360f92fb073a3523bd55fc83583d057c05..a32a4c9a515ff5f880e3fa19122bec24344aa539 100644 (file)
@@ -4,11 +4,11 @@
 HERE=${.CURDIR}/arch/${MACHINE_ARCH}
 .PATH: ${HERE}
 
-# objects we want unpaged from -lminlib
+# objects we want unpaged from -lc
 MINLIB_OBJS_UNPAGED= _cpufeature.o _cpuid.o get_bp.o
-_cpufeature.o: ${NETBSDSRCDIR}/minix/lib/libminlib/${MACHINE_ARCH}/_cpufeature.c
-_cpuid.o:      ${NETBSDSRCDIR}/minix/lib/libminlib/${MACHINE_ARCH}/_cpuid.S
-get_bp.o:      ${NETBSDSRCDIR}/minix/lib/libminlib/${MACHINE_ARCH}/get_bp.S
+_cpufeature.o: ${NETBSDSRCDIR}/minix/lib/libc/arch/${MACHINE_ARCH}/_cpufeature.c
+_cpuid.o:      ${NETBSDSRCDIR}/minix/lib/libc/arch/${MACHINE_ARCH}/_cpuid.S
+get_bp.o:      ${NETBSDSRCDIR}/minix/lib/libc/arch/${MACHINE_ARCH}/get_bp.S
 
 # objects we want unpaged from -lsys
 SYS_OBJS_UNPAGED=assert.o stacktrace.o
index d0d2f3f0d325134ef6aa968150c914fa9b4cc88f..40b0fc7dad2319f080d08ca4927903da0cdf51d2 100644 (file)
@@ -1,8 +1,5 @@
 .include <bsd.own.mk>
 
-SUBDIR+=       libminlib
-SUBDIR+=       .WAIT
-
 SUBDIR+=       libsys
 SUBDIR+=       libmthread
 SUBDIR+=       .WAIT
index 54710cca84a625db0d9540d55906614810b4974f..2e7443f2a8a334c3bcbff8fd4c65557365838eae 100644 (file)
@@ -1,6 +1,8 @@
 # MINIX Specifics sources
 .PATH: ${NETBSDSRCDIR}/minix/lib/libc
 
+CPPFLAGS.fslib.c+= -I${NETBSDSRCDIR}/minix/fs
+
 SRCS+= minix-malloc.c minix-calloc.c
 SRCS+= minix-malloc-debug.c
 SRCS+= configfile.c mtab.c stderr.c
diff --git a/minix/lib/libc/arch/arm/Makefile.inc b/minix/lib/libc/arch/arm/Makefile.inc
new file mode 100644 (file)
index 0000000..dfa289c
--- /dev/null
@@ -0,0 +1,5 @@
+C_HERE=${NETBSDSRCDIR}/minix/lib/libc/arch/${ARCHSUBDIR}
+.PATH: ${C_HERE}
+
+SRCS+=         get_bp.S        \
+       read_tsc.c
similarity index 95%
rename from minix/lib/libminlib/earm/read_tsc.c
rename to minix/lib/libc/arch/arm/read_tsc.c
index 2252615dddb5ca41be4df433ea4841540eca293a..de829f8b0b59df0177cf39515fbbcdb2b36494da 100644 (file)
@@ -1,4 +1,5 @@
 #include <sys/types.h>
+#include <minix/minlib.h>
 
 void
 read_tsc(u32_t *hi, u32_t *lo)
diff --git a/minix/lib/libc/arch/i386/Makefile.inc b/minix/lib/libc/arch/i386/Makefile.inc
new file mode 100644 (file)
index 0000000..9b4457a
--- /dev/null
@@ -0,0 +1,11 @@
+C_HERE=${NETBSDSRCDIR}/minix/lib/libc/arch/${ARCHSUBDIR}
+.PATH: ${C_HERE}
+
+.warning looking into ${C_HERE}
+
+SRCS+= _cpuid.S        \
+       get_bp.S        \
+       getprocessor.S  \
+       read_tsc.S      \
+       _cpufeature.c
+
similarity index 97%
rename from minix/lib/libminlib/fslib.c
rename to minix/lib/libc/gen/fslib.c
index 07901d13cd68516b4f0bdcf1e84eb23aed0b7006..0613d5933eee1341747b0d558fd86776623f7e2f 100644 (file)
@@ -3,6 +3,7 @@
 #include <minix/config.h>      /* for unused stuff in <minix/type.h> :-( */
 #include <limits.h>
 #include <dirent.h>
+#include <assert.h>
 #include <sys/types.h>
 #include <minix/const.h>
 #include <minix/type.h>                /* for unshort :-( */
@@ -54,6 +55,6 @@ uint8_t fs_mode_to_type(mode_t mode)
        else if(S_ISFIFO(mode)) return DT_FIFO;
        else if(S_ISSOCK(mode)) return DT_SOCK;
 
-       panic("unknown type, mode 0x%x", mode);
+       assert(0 && "unknown type");
 }
 
index b54699a100d00746efac7a6f063f66b5d1026a1b..38fa5603388dfebb3a6d833f65c1439032015bc5 100644 (file)
@@ -4,7 +4,7 @@ SRCS+=  accept.c access.c adjtime.c bind.c brk.c sbrk.c m_closefrom.c getsid.c \
        chdir.c chmod.c fchmod.c chown.c fchown.c chroot.c close.c \
        clock_getres.c clock_gettime.c clock_settime.c \
        connect.c dup.c dup2.c execve.c fcntl.c flock.c fpathconf.c fork.c \
-       fstatfs.c fstatvfs.c fsync.c ftruncate.c gcov_flush.c getdents.c \
+       fstatfs.c fstatvfs.c fsync.c ftruncate.c gcov_flush_sys.c getdents.c \
        getegid.c getgid.c \
        getgroups.c getitimer.c setitimer.c __getlogin.c getpeername.c \
        getpgrp.c getpid.c getppid.c priority.c getrlimit.c getsockname.c \
@@ -33,3 +33,4 @@ lchown.o lchown.pico lchown.bc: ${NETBSDSRCDIR}/tools/compat/lchown.c
 lchmod.o lchmod.pico lchmod.bc: ${NETBSDSRCDIR}/tools/compat/lchmod.c
 
 .include "${NETBSDSRCDIR}/minix/lib/libc/arch/${ARCHSUBDIR}/sys/Makefile.inc"
+.include "${NETBSDSRCDIR}/minix/lib/libc/arch/${ARCHSUBDIR}/Makefile.inc"
index 781f0cf1867a3b0db8704dc30aff56732d733274..4d30934604484090fd61b92d6807db2b93bb1224 100644 (file)
@@ -61,6 +61,8 @@ CLEANFILES+= ${f:C/\.o/.bc/}
 .endif # ${USE_BITCODE:Uno} == "yes"
 .endfor
 
+CPPFLAGS.fslib.c+= -I${NETBSDSRCDIR}/minix/fs
+
 # LSC: I would like not to have to copy te file, but I can't
 #      have libsa appear first in the .PATH, for a lot of files
 #      would be taken from there, which is not the intention ATM.
@@ -181,7 +183,7 @@ CLEANFILES+=        errlist.c
 .for f in \
        _errno.o \
        getprogname.o setprogname.o execle.o sleep.o time.o \
-       ctype_.o tolower_.o toupper_.o usleep.o sigsetops.o
+       ctype_.o tolower_.o toupper_.o usleep.o sigsetops.o 
 ${f} ${f:C/\.o/.bc/}:  ${LIBCDIR}/gen/${f:C/\.o/.c/}
 OBJS+= ${f}
 CLEANFILES+= ${f}
@@ -198,7 +200,7 @@ CPPFLAGS.tolower_.c+= -I${LIBCDIR}/locale
 CPPFLAGS.toupper_.c+= -I${LIBCDIR}/locale
 
 .for f in \
-       waitpid.o
+       waitpid.o read_tsc_64.o fslib.o itoa.o
 ${f} ${f:C/\.o/.bc/}:  ${LIBMINIXCDIR}/gen/${f:C/\.o/.c/}
 OBJS+= ${f}
 CLEANFILES+= ${f}
@@ -297,4 +299,7 @@ CLEANFILES+= ${f:C/\.o/.bc/}
 .endif # ${USE_BITCODE:Uno} == "yes"
 .endfor
 
+ARCHSUBDIR=${MACHINE_CPU}
+.include "${NETBSDSRCDIR}/minix/lib/libc/arch/${MACHINE_CPU}/Makefile.inc"
+
 .include <bsd.lib.mk>
index f714dfebf8f43be3693528274bed114d9d539dbc..53a5cf1e349a1630769ff255bdd1de695441f228 100644 (file)
@@ -6,6 +6,6 @@ CPPFLAGS+= -D_MINIX_SYSTEM
 .include <bsd.own.mk>
 LIB=           minixfs
 
-SRCS=          fetch_credentials.c cache.c
+SRCS=          fetch_credentials.c cache.c 
 
 .include <bsd.lib.mk>
diff --git a/minix/lib/libminlib/Makefile b/minix/lib/libminlib/Makefile
deleted file mode 100644 (file)
index 1eb7d25..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-NOGCCERROR=yes
-NOCLANGERROR=yes
-
-.include <bsd.own.mk>
-
-.PATH:         ${.CURDIR} ${.CURDIR}/${MACHINE_ARCH}
-.include "${MACHINE_ARCH}/Makefile.inc"
-
-INCSDIR= /usr/include
-LIB=   minlib
-
-USE_SHLIBDIR= yes
-
-CPPFLAGS.fslib.c+= -I${NETBSDSRCDIR}/minix/fs
-CPPFLAGS.fsversion.c+= -I${NETBSDSRCDIR}/minix/fs
-SRCS+=         fslib.c fsversion.c
-
-# DHCP get/set tags.
-SRCS+= dhcp_gettag.c dhcp_settag.c
-
-# Gcov support.
-SRCS+= gcov.c gcov_flush.c
-
-# Various utils
-SRCS+= itoa.c read_tsc_64.c
-
-# servxcheck
-SRCS+= servxcheck.c
-
-# queryparam
-SRCS+= paramvalue.c
-
-SRCS+= oneC_sum.c
-
-SUBDIR+= pkgconfig
-
-.include <bsd.lib.mk>
-.include <bsd.subdir.mk>
diff --git a/minix/lib/libminlib/earm/Makefile.inc b/minix/lib/libminlib/earm/Makefile.inc
deleted file mode 100644 (file)
index e9852c4..0000000
+++ /dev/null
@@ -1 +0,0 @@
-SRCS+= get_bp.S read_tsc.c
diff --git a/minix/lib/libminlib/i386/Makefile.inc b/minix/lib/libminlib/i386/Makefile.inc
deleted file mode 100644 (file)
index 34e8216..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-SRCS+=         _cpufeature.c _cpuid.S get_bp.S getprocessor.S \
-       read_tsc.S
diff --git a/minix/lib/libminlib/pkgconfig/Makefile b/minix/lib/libminlib/pkgconfig/Makefile
deleted file mode 100644 (file)
index fa821dc..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-.include <bsd.own.mk>
-
-NOOBJ=  # defined
-
-FILES=minlib.pc
-FILESDIR=/usr/lib
-FILESMODE=444
-
-.include <bsd.prog.mk>
diff --git a/minix/lib/libminlib/pkgconfig/minlib.pc b/minix/lib/libminlib/pkgconfig/minlib.pc
deleted file mode 100644 (file)
index de98a53..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-Name: minlib
-Description: Minix Compatibility Library
-Version: 1.0
-Libs: -lminlib
-Cflags:
-
diff --git a/minix/lib/libminlib/shlib_version b/minix/lib/libminlib/shlib_version
deleted file mode 100644 (file)
index 97c9f92..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-major=0
-minor=0
index 6e52d1428c8a6aa42a4037d426300175d515f870..2fe960cd1299761d99c2d49cf04746341cc45d7e 100644 (file)
@@ -1,7 +1,4 @@
 BINDIR?= /service
 MAN?=
 
-LDADD+= -lminlib 
-DPADD+= ${LIBMINLIB}
-
 .include "../Makefile.inc"
index f9a17bb736c3b903bd5b703f2fcfcb35a8808385..2fe960cd1299761d99c2d49cf04746341cc45d7e 100644 (file)
@@ -1,7 +1,4 @@
 BINDIR?= /service
 MAN?=
 
-LDADD+= -lminlib 
-DPADD+= ${LIBMINLIB} 
-
 .include "../Makefile.inc"
index 02186db08d4ddac4e27d4c08c4d6b09c598b13b9..84d67e65435dcb6a6489a3c1e14036406222e8a2 100644 (file)
@@ -1,7 +1,7 @@
 PROG = devman
 SRCS =  main.c device.c buf.c bind.c
 
-DPADD+=        ${LIBSYS} ${LIBMINLIB}
-LDADD =  -lvtreefs -lsys -lminlib
+DPADD+=        ${LIBSYS} 
+LDADD =  -lvtreefs -lsys 
 
 .include <minix.service.mk>
index 3cf2a91a50e71ce0fbbfed631ea4fd76b1a41aa4..6a9d8d8983979114a129f52b0eb62ff5ff59b1f4 100644 (file)
@@ -53,7 +53,7 @@ LDADD.test72+=        -lminixfs
 PROGS += testvm
 OBJS.testvm+=  testcache.o
 LDSTATIC.testvm= -static
-LDADD.testvm+= -lsys -ltimers -lminlib
+LDADD.testvm+= -lsys -ltimers 
 
 FILES += testvm.conf
 
index cbeb43b839e3425f4380b9e7184b18674eecb0f0..3ce23832e7bfcee5d54c2aa682c403f6458f96af 100644 (file)
@@ -1,4 +1,2 @@
 # Copied from drivers/Makefile.inc, and slightly edited.
-LDADD+= -lminlib 
-DPADD+= ${LIBMINLIB} 
 BINDIR?=/usr/sbin
index c3ccb30eaef7c2ba079a8b15eee876f08698d734..d23b432c7d2ae9ba000a3bf941eed572f23d3eff 100644 (file)
@@ -6,8 +6,8 @@ SCRIPTS= ddekittest.sh
 #uncomment the following for proper debugging
 #CFLAGS+=-g
 #LDFLAGS+= -Ttext=0x4000000
-LDADD+=         -lsys -lddekit -lminlib
-DPADD+=         ${LIBSYS} ${LIBDDEKIT} ${LIBMINLIB}
+LDADD+=         -lsys -lddekit 
+DPADD+=         ${LIBSYS} ${LIBDDEKIT} 
 
 MAN=
 
index 950d4e92a601629afd5bdb290475e3613b97d1e7..9bff3c5de32efc115cde11c423457d4157e7345f 100644 (file)
@@ -1,4 +1,2 @@
 # Copied from drivers/Makefile.inc
-LDADD+= -lminlib
-DPADD+= ${LIBMINLIB} 
 BINDIR?=/usr/sbin
index 83e42085b2be533c2b663fed71560b70d16d73e7..9bff3c5de32efc115cde11c423457d4157e7345f 100644 (file)
@@ -1,4 +1,2 @@
 # Copied from drivers/Makefile.inc
-LDADD+= -lminlib 
-DPADD+= ${LIBMINLIB} 
 BINDIR?=/usr/sbin
index 3a6921cf1fdf4769a16bbaa674fe247e53760a3a..477c05895750b7e42ad21510b4cec093c17c58fb 100644 (file)
@@ -2,10 +2,10 @@ all: requestor grantor 1fifo 2fifo
        chmod +x down run
 
 requestor: requestor.c inc.h
-       cc -static -o $@ $< -lsys -lminlib 
+       cc -static -o $@ $< -lsys 
 
 grantor: grantor.c inc.h
-       cc -static -o $@ $< -lsys -lminlib 
+       cc -static -o $@ $< -lsys
 
 1fifo 2fifo:
        mkfifo $@
index 3dbdba0d296d6866e44af041d89d1c214021af93..06c4ed9395aed4fe7d1c6846299990c6552d6d8e 100644 (file)
@@ -9,12 +9,6 @@ MAN?=
 
 CPPFLAGS+=     -I${.CURDIR}
 
-.if ${HOST_OSTYPE:C/\-.*//:U} == "Minix" || !defined(HOSTPROGNAME)
-#LSC: FIXME This should not be required, more so only on Minix...
-LDADD+= -lminlib 
-DPADD+= ${MINLIB} ${COMPAT_MINIX}
-.endif
-
 NOGCCERROR?=    yes
 NOCLANGERROR?=  yes
 
index 57ebb8898261c62241d99fd58d11845e02e73dc8..4803ffb5c5bef63d17405b742d50098663e2b866 100644 (file)
@@ -1,9 +1,6 @@
 PROG=  mkproto
 MAN=
 
-LDADD+= -lminlib
-DPADD+= ${LIBMINLIB}
-
 NOGCCERROR?=    yes
 NOCLANGERROR?=  yes
 
index 95af8dd95ff8a4d59fb2b9930b8589d917735db9..08e3ec2aeee6ced341172623a34be193bd83ab33 100644 (file)
@@ -628,7 +628,7 @@ DPLIBC ?= ${DESTDIR}${LIBC_SO}
 .endif
 .else
 .if ${LIB} != "c" && ${LIB:Mgcc*} == "" \
-    && ${LIB} != "minlib" && ${LIB} != "sys" && ${LIB} != "minc" && ${LIB} != "mthread" # Minix-specific libs
+    && ${LIB} != "sys" && ${LIB} != "minc" && ${LIB} != "mthread" # Minix-specific libs
 .if !empty(LIBC_SO)
 DPLIBC ?= ${DESTDIR}${LIBC_SO}
 .endif
index fea244b018c75b4634841c143f5c3db8dbea4622..64c807b773491e6b32fc1a87bf78792c594e8f08 100644 (file)
@@ -229,7 +229,6 @@ LIB${_lib:tu}=      ${DESTDIR}/usr/lib/lib${_lib:S/xx/++/:S/atf_c/atf-c/}.a
        lwip \
        minc \
        minixfs \
-       minlib \
        mthread \
        netdriver \
        netsock \