merge libminlib with libc
Change-Id: I79cc4ea90c378a1da3dac16487b53034953827a7
This commit is contained in:
parent
c2808d8b07
commit
bad58c9c51
63 changed files with 75 additions and 135 deletions
|
@ -1885,8 +1885,8 @@
|
||||||
./usr/lib/bc/libmenu.a minix-sys bitcode
|
./usr/lib/bc/libmenu.a minix-sys bitcode
|
||||||
./usr/lib/bc/libminc.a minix-sys bitcode
|
./usr/lib/bc/libminc.a minix-sys bitcode
|
||||||
./usr/lib/bc/libminixfs.a minix-sys bitcode
|
./usr/lib/bc/libminixfs.a minix-sys bitcode
|
||||||
./usr/lib/bc/libminlib.a minix-sys bitcode
|
./usr/lib/bc/libminlib.a minix-sys bitcode obsolete
|
||||||
./usr/lib/bc/libmthread.a minix-sys bitcode
|
./usr/lib/bc/libmthread.a minix-sys bitcode
|
||||||
./usr/lib/bc/libnetdriver.a minix-sys bitcode
|
./usr/lib/bc/libnetdriver.a minix-sys bitcode
|
||||||
./usr/lib/bc/libnetsock.a minix-sys bitcode
|
./usr/lib/bc/libnetsock.a minix-sys bitcode
|
||||||
./usr/lib/bc/libopcodes.a minix-sys bitcode,binutils
|
./usr/lib/bc/libopcodes.a minix-sys bitcode,binutils
|
||||||
|
@ -2089,11 +2089,11 @@
|
||||||
./usr/lib/libminc.a minix-sys
|
./usr/lib/libminc.a minix-sys
|
||||||
./usr/lib/libminixfs.a minix-sys
|
./usr/lib/libminixfs.a minix-sys
|
||||||
./usr/lib/libminixfs_pic.a minix-sys
|
./usr/lib/libminixfs_pic.a minix-sys
|
||||||
./usr/lib/libminlib.a minix-sys
|
./usr/lib/libminlib.a minix-sys obsolete
|
||||||
./usr/lib/libminlib_pic.a minix-sys
|
./usr/lib/libminlib_pic.a minix-sys obsolete
|
||||||
./usr/lib/libminlib.so.0.0 minix-sys
|
./usr/lib/libminlib.so.0.0 minix-sys obsolete
|
||||||
./usr/lib/libminlib.so.0 minix-sys
|
./usr/lib/libminlib.so.0 minix-sys obsolete
|
||||||
./usr/lib/libminlib.so minix-sys
|
./usr/lib/libminlib.so minix-sys obsolete
|
||||||
./usr/lib/libm_pic.a minix-sys
|
./usr/lib/libm_pic.a minix-sys
|
||||||
./usr/lib/libm.so.0 minix-sys
|
./usr/lib/libm.so.0 minix-sys
|
||||||
./usr/lib/libm.so.0.10 minix-sys
|
./usr/lib/libm.so.0.10 minix-sys
|
||||||
|
@ -2184,7 +2184,7 @@
|
||||||
./usr/lib/lua/5.1/gpio.so 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/sqlite.so minix-sys
|
||||||
./usr/lib/lua/5.1/syslog.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 minix-sys
|
||||||
./usr/lib/pkgconfig/atf-c.pc minix-sys atf
|
./usr/lib/pkgconfig/atf-c.pc minix-sys atf
|
||||||
./usr/lib/pkgconfig/atf-c++.pc minix-sys atf
|
./usr/lib/pkgconfig/atf-c++.pc minix-sys atf
|
||||||
|
|
|
@ -21,9 +21,7 @@ SUBDIR+= ../external/gpl3/gcc/lib/libgcc .WAIT
|
||||||
|
|
||||||
.if defined(__MINIX)
|
.if defined(__MINIX)
|
||||||
#LSC MINIX libc depends on
|
#LSC MINIX libc depends on
|
||||||
# - libminlib because of minix/lib/libc/malloc-debug.c
|
|
||||||
# - libmthread because of sys/lib/libunwind
|
# - libmthread because of sys/lib/libunwind
|
||||||
SUBDIR+= ../minix/lib/libminlib
|
|
||||||
SUBDIR+= .WAIT
|
SUBDIR+= .WAIT
|
||||||
|
|
||||||
SUBDIR+= ../minix/lib/libsys
|
SUBDIR+= ../minix/lib/libsys
|
||||||
|
|
|
@ -4,6 +4,13 @@
|
||||||
# gen sources
|
# gen sources
|
||||||
.if defined(__MINIX)
|
.if defined(__MINIX)
|
||||||
.PATH: ${NETBSDSRCDIR}/minix/lib/libc/gen
|
.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)
|
.endif # defined(__MINIX)
|
||||||
.PATH: ${ARCHDIR}/gen ${.CURDIR}/gen
|
.PATH: ${ARCHDIR}/gen ${.CURDIR}/gen
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
Name: c
|
Name: c
|
||||||
Description: NetBSD C Library
|
Description: NetBSD C Library
|
||||||
Version: 1.0
|
Version: 1.0
|
||||||
Libs: -lc -lminlib
|
Libs: -lc
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Only include Minix-specific libraries when compiling
|
# Only include Minix-specific libraries when compiling
|
||||||
# for non-Minix, i.e. not natively in a crossbuild.
|
# for non-Minix, i.e. not natively in a crossbuild.
|
||||||
.if !defined(HOSTPROGNAME)
|
.if !defined(HOSTPROGNAME)
|
||||||
LDADD+= -lminlib -lasyn -lterminfo
|
LDADD+= -lasyn -lterminfo
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
BINDIR?=/usr/bin
|
BINDIR?=/usr/bin
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
BINDIR?= /service
|
BINDIR?= /service
|
||||||
MAN?=
|
MAN?=
|
||||||
|
|
||||||
LDADD+= -lminlib
|
|
||||||
DPADD+= ${LIBMINLIB}
|
|
||||||
|
|
||||||
.include "../Makefile.inc"
|
.include "../Makefile.inc"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
BINDIR?= /service
|
BINDIR?= /service
|
||||||
MAN?=
|
MAN?=
|
||||||
|
|
||||||
DPADD+= ${LIBAUDIODRIVER} ${LIBCHARDRIVER} ${LIBSYS} ${LIBMINLIB}
|
DPADD+= ${LIBAUDIODRIVER} ${LIBCHARDRIVER} ${LIBSYS}
|
||||||
LDADD+= -laudiodriver -lchardriver -lsys -lminlib
|
LDADD+= -laudiodriver -lchardriver -lsys
|
||||||
|
|
||||||
.include "../Makefile.inc"
|
.include "../Makefile.inc"
|
||||||
|
|
|
@ -98,7 +98,6 @@ dir.mmc:= minix/drivers/storage/mmc
|
||||||
RAMDISK_DYNAMIC= 1
|
RAMDISK_DYNAMIC= 1
|
||||||
PROGRAMS+= ld.elf_so
|
PROGRAMS+= ld.elf_so
|
||||||
PROG_LIBS+= libc
|
PROG_LIBS+= libc
|
||||||
PROG_MINIXLIBS+= libminlib
|
|
||||||
PROG_MINIXLIBS+= libterminfo
|
PROG_MINIXLIBS+= libterminfo
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
usr d--755 0 0
|
usr d--755 0 0
|
||||||
lib d--755 0 0
|
lib d--755 0 0
|
||||||
libc.so.0 ---755 0 0 libc.so.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
|
libterminfo.so.0 ---755 0 0 libterminfo.so.0
|
||||||
$
|
$
|
||||||
$
|
$
|
||||||
|
|
|
@ -6,8 +6,8 @@ FILES= $(PROG).conf
|
||||||
FILESNAME= $(PROG)
|
FILESNAME= $(PROG)
|
||||||
FILESDIR= /etc/system.conf.d
|
FILESDIR= /etc/system.conf.d
|
||||||
|
|
||||||
DPADD+= ${LIBBLOCKDRIVER} ${LIBDDEKIT_USB_CLIENT} ${LIBSYS} ${LIBMINLIB} ${LIBDDEKIT} ${LIBUSB}
|
DPADD+= ${LIBBLOCKDRIVER} ${LIBDDEKIT_USB_CLIENT} ${LIBSYS} ${LIBDDEKIT} ${LIBUSB}
|
||||||
LDADD+= -lblockdriver -lddekit_usb_client -lsys -lminlib -lddekit -lusb
|
LDADD+= -lblockdriver -lddekit_usb_client -lsys -lddekit -lusb
|
||||||
|
|
||||||
#For easier debugging, uncomment:
|
#For easier debugging, uncomment:
|
||||||
#LDADD+= -Wl,-Ttext=0x800000
|
#LDADD+= -Wl,-Ttext=0x800000
|
||||||
|
|
|
@ -9,7 +9,7 @@ BINDIR= /service
|
||||||
|
|
||||||
CPPFLAGS+= -I${.CURDIR}/../../include
|
CPPFLAGS+= -I${.CURDIR}/../../include
|
||||||
|
|
||||||
DPADD+= ${LIBDDEKIT} ${LIBDDEKIT_USB_SERVER} ${LIBDEVMAN} ${LIBUSB} ${LIBMINC} ${LIBCLKCONF} ${LIBSYS} ${LIBMINLIB}
|
DPADD+= ${LIBDDEKIT} ${LIBDDEKIT_USB_SERVER} ${LIBDEVMAN} ${LIBUSB} ${LIBMINC} ${LIBCLKCONF} ${LIBSYS}
|
||||||
LDADD+= -lddekit -lddekit_usb_server -ldevman -lusb -lminc -lclkconf -lsys -lminlib
|
LDADD+= -lddekit -lddekit_usb_server -ldevman -lusb -lminc -lclkconf -lsys
|
||||||
|
|
||||||
.include <minix.service.mk>
|
.include <minix.service.mk>
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
BINDIR?= /service
|
BINDIR?= /service
|
||||||
MAN?=
|
MAN?=
|
||||||
|
|
||||||
LDADD+= -lminlib
|
|
||||||
DPADD+= ${LIBMINLIB}
|
|
||||||
|
|
||||||
.include "../Makefile.inc"
|
.include "../Makefile.inc"
|
||||||
|
|
|
@ -5,8 +5,8 @@ SRCS= balloc.c link.c \
|
||||||
stadir.c table.c time.c utility.c \
|
stadir.c table.c time.c utility.c \
|
||||||
write.c ialloc.c inode.c main.c path.c \
|
write.c ialloc.c inode.c main.c path.c \
|
||||||
super.c
|
super.c
|
||||||
DPADD+= ${LIBMINIXFS} ${LIBBDEV} ${LIBSYS} ${LIBMINLIB}
|
DPADD+= ${LIBMINIXFS} ${LIBBDEV} ${LIBSYS}
|
||||||
LDADD+= -lminixfs -lbdev -lsys -lminlib
|
LDADD+= -lminixfs -lbdev -lsys
|
||||||
|
|
||||||
WARNS=3
|
WARNS=3
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,8 @@ PROG= isofs
|
||||||
SRCS= main.c table.c mount.c super.c inode.c \
|
SRCS= main.c table.c mount.c super.c inode.c \
|
||||||
utility.c misc.c path.c read.c stadir.c
|
utility.c misc.c path.c read.c stadir.c
|
||||||
|
|
||||||
DPADD+= ${LIBBDEV} ${LIBSYS} ${LIBMINLIB}
|
DPADD+= ${LIBBDEV} ${LIBSYS}
|
||||||
LDADD+= -lbdev -lsys -lc -lminixfs -lminlib
|
LDADD+= -lbdev -lsys -lc -lminixfs
|
||||||
|
|
||||||
CPPFLAGS+= -DNR_BUFS=100
|
CPPFLAGS+= -DNR_BUFS=100
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ CPPFLAGS+= -I${NETBSDSRCDIR}/minix
|
||||||
CPPFLAGS+= -I${NETBSDSRCDIR}/minix/fs
|
CPPFLAGS+= -I${NETBSDSRCDIR}/minix/fs
|
||||||
CPPFLAGS+= -I${NETBSDSRCDIR}/minix/servers
|
CPPFLAGS+= -I${NETBSDSRCDIR}/minix/servers
|
||||||
|
|
||||||
DPADD+= ${LIBVTREEFS} ${LIBMINLIB}
|
DPADD+= ${LIBVTREEFS} ${LIBMINIXFS}
|
||||||
LDADD+= -lvtreefs -lminlib
|
LDADD+= -lvtreefs -lminixfs
|
||||||
|
|
||||||
.include <minix.service.mk>
|
.include <minix.service.mk>
|
||||||
|
|
|
@ -10,7 +10,7 @@ MAN=
|
||||||
SRCS+= clock.c cpulocals.c interrupt.c main.c proc.c system.c \
|
SRCS+= clock.c cpulocals.c interrupt.c main.c proc.c system.c \
|
||||||
table.c utility.c usermapped_data.c
|
table.c utility.c usermapped_data.c
|
||||||
|
|
||||||
LDADD+= -ltimers -lsys -lexec -lminlib
|
LDADD+= -ltimers -lsys -lexec
|
||||||
|
|
||||||
LINKERSCRIPT= ${.CURDIR}/arch/${MACHINE_ARCH}/kernel.lds
|
LINKERSCRIPT= ${.CURDIR}/arch/${MACHINE_ARCH}/kernel.lds
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
HERE=${.CURDIR}/arch/${MACHINE_ARCH}
|
HERE=${.CURDIR}/arch/${MACHINE_ARCH}
|
||||||
.PATH: ${HERE}
|
.PATH: ${HERE}
|
||||||
|
|
||||||
# objects we want unpaged from -lminlib
|
# objects we want unpaged from -lc
|
||||||
MINLIB_OBJS_UNPAGED= get_bp.o
|
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
|
# objects we want unpaged from -lsys
|
||||||
SYS_OBJS_UNPAGED=assert.o stacktrace.o
|
SYS_OBJS_UNPAGED=assert.o stacktrace.o
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
HERE=${.CURDIR}/arch/${MACHINE_ARCH}
|
HERE=${.CURDIR}/arch/${MACHINE_ARCH}
|
||||||
.PATH: ${HERE}
|
.PATH: ${HERE}
|
||||||
|
|
||||||
# objects we want unpaged from -lminlib
|
# objects we want unpaged from -lc
|
||||||
MINLIB_OBJS_UNPAGED= _cpufeature.o _cpuid.o get_bp.o
|
MINLIB_OBJS_UNPAGED= _cpufeature.o _cpuid.o get_bp.o
|
||||||
_cpufeature.o: ${NETBSDSRCDIR}/minix/lib/libminlib/${MACHINE_ARCH}/_cpufeature.c
|
_cpufeature.o: ${NETBSDSRCDIR}/minix/lib/libc/arch/${MACHINE_ARCH}/_cpufeature.c
|
||||||
_cpuid.o: ${NETBSDSRCDIR}/minix/lib/libminlib/${MACHINE_ARCH}/_cpuid.S
|
_cpuid.o: ${NETBSDSRCDIR}/minix/lib/libc/arch/${MACHINE_ARCH}/_cpuid.S
|
||||||
get_bp.o: ${NETBSDSRCDIR}/minix/lib/libminlib/${MACHINE_ARCH}/get_bp.S
|
get_bp.o: ${NETBSDSRCDIR}/minix/lib/libc/arch/${MACHINE_ARCH}/get_bp.S
|
||||||
|
|
||||||
# objects we want unpaged from -lsys
|
# objects we want unpaged from -lsys
|
||||||
SYS_OBJS_UNPAGED=assert.o stacktrace.o
|
SYS_OBJS_UNPAGED=assert.o stacktrace.o
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
.include <bsd.own.mk>
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
SUBDIR+= libminlib
|
|
||||||
SUBDIR+= .WAIT
|
|
||||||
|
|
||||||
SUBDIR+= libsys
|
SUBDIR+= libsys
|
||||||
SUBDIR+= libmthread
|
SUBDIR+= libmthread
|
||||||
SUBDIR+= .WAIT
|
SUBDIR+= .WAIT
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
# MINIX Specifics sources
|
# MINIX Specifics sources
|
||||||
.PATH: ${NETBSDSRCDIR}/minix/lib/libc
|
.PATH: ${NETBSDSRCDIR}/minix/lib/libc
|
||||||
|
|
||||||
|
CPPFLAGS.fslib.c+= -I${NETBSDSRCDIR}/minix/fs
|
||||||
|
|
||||||
SRCS+= minix-malloc.c minix-calloc.c
|
SRCS+= minix-malloc.c minix-calloc.c
|
||||||
SRCS+= minix-malloc-debug.c
|
SRCS+= minix-malloc-debug.c
|
||||||
SRCS+= configfile.c mtab.c stderr.c
|
SRCS+= configfile.c mtab.c stderr.c
|
||||||
|
|
5
minix/lib/libc/arch/arm/Makefile.inc
Normal file
5
minix/lib/libc/arch/arm/Makefile.inc
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
C_HERE=${NETBSDSRCDIR}/minix/lib/libc/arch/${ARCHSUBDIR}
|
||||||
|
.PATH: ${C_HERE}
|
||||||
|
|
||||||
|
SRCS+= get_bp.S \
|
||||||
|
read_tsc.c
|
|
@ -1,4 +1,5 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#include <minix/minlib.h>
|
||||||
|
|
||||||
void
|
void
|
||||||
read_tsc(u32_t *hi, u32_t *lo)
|
read_tsc(u32_t *hi, u32_t *lo)
|
11
minix/lib/libc/arch/i386/Makefile.inc
Normal file
11
minix/lib/libc/arch/i386/Makefile.inc
Normal file
|
@ -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
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#include <minix/config.h> /* for unused stuff in <minix/type.h> :-( */
|
#include <minix/config.h> /* for unused stuff in <minix/type.h> :-( */
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
#include <assert.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <minix/const.h>
|
#include <minix/const.h>
|
||||||
#include <minix/type.h> /* for unshort :-( */
|
#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_ISFIFO(mode)) return DT_FIFO;
|
||||||
else if(S_ISSOCK(mode)) return DT_SOCK;
|
else if(S_ISSOCK(mode)) return DT_SOCK;
|
||||||
|
|
||||||
panic("unknown type, mode 0x%x", mode);
|
assert(0 && "unknown type");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 \
|
chdir.c chmod.c fchmod.c chown.c fchown.c chroot.c close.c \
|
||||||
clock_getres.c clock_gettime.c clock_settime.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 \
|
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 \
|
getegid.c getgid.c \
|
||||||
getgroups.c getitimer.c setitimer.c __getlogin.c getpeername.c \
|
getgroups.c getitimer.c setitimer.c __getlogin.c getpeername.c \
|
||||||
getpgrp.c getpid.c getppid.c priority.c getrlimit.c getsockname.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
|
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}/sys/Makefile.inc"
|
||||||
|
.include "${NETBSDSRCDIR}/minix/lib/libc/arch/${ARCHSUBDIR}/Makefile.inc"
|
||||||
|
|
|
@ -61,6 +61,8 @@ CLEANFILES+= ${f:C/\.o/.bc/}
|
||||||
.endif # ${USE_BITCODE:Uno} == "yes"
|
.endif # ${USE_BITCODE:Uno} == "yes"
|
||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
|
CPPFLAGS.fslib.c+= -I${NETBSDSRCDIR}/minix/fs
|
||||||
|
|
||||||
# LSC: I would like not to have to copy te file, but I can't
|
# 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
|
# have libsa appear first in the .PATH, for a lot of files
|
||||||
# would be taken from there, which is not the intention ATM.
|
# would be taken from there, which is not the intention ATM.
|
||||||
|
@ -181,7 +183,7 @@ CLEANFILES+= errlist.c
|
||||||
.for f in \
|
.for f in \
|
||||||
_errno.o \
|
_errno.o \
|
||||||
getprogname.o setprogname.o execle.o sleep.o time.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/}
|
${f} ${f:C/\.o/.bc/}: ${LIBCDIR}/gen/${f:C/\.o/.c/}
|
||||||
OBJS+= ${f}
|
OBJS+= ${f}
|
||||||
CLEANFILES+= ${f}
|
CLEANFILES+= ${f}
|
||||||
|
@ -198,7 +200,7 @@ CPPFLAGS.tolower_.c+= -I${LIBCDIR}/locale
|
||||||
CPPFLAGS.toupper_.c+= -I${LIBCDIR}/locale
|
CPPFLAGS.toupper_.c+= -I${LIBCDIR}/locale
|
||||||
|
|
||||||
.for f in \
|
.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/}
|
${f} ${f:C/\.o/.bc/}: ${LIBMINIXCDIR}/gen/${f:C/\.o/.c/}
|
||||||
OBJS+= ${f}
|
OBJS+= ${f}
|
||||||
CLEANFILES+= ${f}
|
CLEANFILES+= ${f}
|
||||||
|
@ -297,4 +299,7 @@ CLEANFILES+= ${f:C/\.o/.bc/}
|
||||||
.endif # ${USE_BITCODE:Uno} == "yes"
|
.endif # ${USE_BITCODE:Uno} == "yes"
|
||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
|
ARCHSUBDIR=${MACHINE_CPU}
|
||||||
|
.include "${NETBSDSRCDIR}/minix/lib/libc/arch/${MACHINE_CPU}/Makefile.inc"
|
||||||
|
|
||||||
.include <bsd.lib.mk>
|
.include <bsd.lib.mk>
|
||||||
|
|
|
@ -6,6 +6,6 @@ CPPFLAGS+= -D_MINIX_SYSTEM
|
||||||
.include <bsd.own.mk>
|
.include <bsd.own.mk>
|
||||||
LIB= minixfs
|
LIB= minixfs
|
||||||
|
|
||||||
SRCS= fetch_credentials.c cache.c
|
SRCS= fetch_credentials.c cache.c
|
||||||
|
|
||||||
.include <bsd.lib.mk>
|
.include <bsd.lib.mk>
|
||||||
|
|
|
@ -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>
|
|
|
@ -1 +0,0 @@
|
||||||
SRCS+= get_bp.S read_tsc.c
|
|
|
@ -1,2 +0,0 @@
|
||||||
SRCS+= _cpufeature.c _cpuid.S get_bp.S getprocessor.S \
|
|
||||||
read_tsc.S
|
|
|
@ -1,9 +0,0 @@
|
||||||
.include <bsd.own.mk>
|
|
||||||
|
|
||||||
NOOBJ= # defined
|
|
||||||
|
|
||||||
FILES=minlib.pc
|
|
||||||
FILESDIR=/usr/lib
|
|
||||||
FILESMODE=444
|
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
|
|
@ -1,6 +0,0 @@
|
||||||
Name: minlib
|
|
||||||
Description: Minix Compatibility Library
|
|
||||||
Version: 1.0
|
|
||||||
Libs: -lminlib
|
|
||||||
Cflags:
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
major=0
|
|
||||||
minor=0
|
|
|
@ -1,7 +1,4 @@
|
||||||
BINDIR?= /service
|
BINDIR?= /service
|
||||||
MAN?=
|
MAN?=
|
||||||
|
|
||||||
LDADD+= -lminlib
|
|
||||||
DPADD+= ${LIBMINLIB}
|
|
||||||
|
|
||||||
.include "../Makefile.inc"
|
.include "../Makefile.inc"
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
BINDIR?= /service
|
BINDIR?= /service
|
||||||
MAN?=
|
MAN?=
|
||||||
|
|
||||||
LDADD+= -lminlib
|
|
||||||
DPADD+= ${LIBMINLIB}
|
|
||||||
|
|
||||||
.include "../Makefile.inc"
|
.include "../Makefile.inc"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
PROG = devman
|
PROG = devman
|
||||||
SRCS = main.c device.c buf.c bind.c
|
SRCS = main.c device.c buf.c bind.c
|
||||||
|
|
||||||
DPADD+= ${LIBSYS} ${LIBMINLIB}
|
DPADD+= ${LIBSYS}
|
||||||
LDADD = -lvtreefs -lsys -lminlib
|
LDADD = -lvtreefs -lsys
|
||||||
|
|
||||||
.include <minix.service.mk>
|
.include <minix.service.mk>
|
||||||
|
|
|
@ -53,7 +53,7 @@ LDADD.test72+= -lminixfs
|
||||||
PROGS += testvm
|
PROGS += testvm
|
||||||
OBJS.testvm+= testcache.o
|
OBJS.testvm+= testcache.o
|
||||||
LDSTATIC.testvm= -static
|
LDSTATIC.testvm= -static
|
||||||
LDADD.testvm+= -lsys -ltimers -lminlib
|
LDADD.testvm+= -lsys -ltimers
|
||||||
|
|
||||||
FILES += testvm.conf
|
FILES += testvm.conf
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
# Copied from drivers/Makefile.inc, and slightly edited.
|
# Copied from drivers/Makefile.inc, and slightly edited.
|
||||||
LDADD+= -lminlib
|
|
||||||
DPADD+= ${LIBMINLIB}
|
|
||||||
BINDIR?=/usr/sbin
|
BINDIR?=/usr/sbin
|
||||||
|
|
|
@ -6,8 +6,8 @@ SCRIPTS= ddekittest.sh
|
||||||
#uncomment the following for proper debugging
|
#uncomment the following for proper debugging
|
||||||
#CFLAGS+=-g
|
#CFLAGS+=-g
|
||||||
#LDFLAGS+= -Ttext=0x4000000
|
#LDFLAGS+= -Ttext=0x4000000
|
||||||
LDADD+= -lsys -lddekit -lminlib
|
LDADD+= -lsys -lddekit
|
||||||
DPADD+= ${LIBSYS} ${LIBDDEKIT} ${LIBMINLIB}
|
DPADD+= ${LIBSYS} ${LIBDDEKIT}
|
||||||
|
|
||||||
MAN=
|
MAN=
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
# Copied from drivers/Makefile.inc
|
# Copied from drivers/Makefile.inc
|
||||||
LDADD+= -lminlib
|
|
||||||
DPADD+= ${LIBMINLIB}
|
|
||||||
BINDIR?=/usr/sbin
|
BINDIR?=/usr/sbin
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
# Copied from drivers/Makefile.inc
|
# Copied from drivers/Makefile.inc
|
||||||
LDADD+= -lminlib
|
|
||||||
DPADD+= ${LIBMINLIB}
|
|
||||||
BINDIR?=/usr/sbin
|
BINDIR?=/usr/sbin
|
||||||
|
|
|
@ -2,10 +2,10 @@ all: requestor grantor 1fifo 2fifo
|
||||||
chmod +x down run
|
chmod +x down run
|
||||||
|
|
||||||
requestor: requestor.c inc.h
|
requestor: requestor.c inc.h
|
||||||
cc -static -o $@ $< -lsys -lminlib
|
cc -static -o $@ $< -lsys
|
||||||
|
|
||||||
grantor: grantor.c inc.h
|
grantor: grantor.c inc.h
|
||||||
cc -static -o $@ $< -lsys -lminlib
|
cc -static -o $@ $< -lsys
|
||||||
|
|
||||||
1fifo 2fifo:
|
1fifo 2fifo:
|
||||||
mkfifo $@
|
mkfifo $@
|
||||||
|
|
|
@ -9,12 +9,6 @@ MAN?=
|
||||||
|
|
||||||
CPPFLAGS+= -I${.CURDIR}
|
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
|
NOGCCERROR?= yes
|
||||||
NOCLANGERROR?= yes
|
NOCLANGERROR?= yes
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
PROG= mkproto
|
PROG= mkproto
|
||||||
MAN=
|
MAN=
|
||||||
|
|
||||||
LDADD+= -lminlib
|
|
||||||
DPADD+= ${LIBMINLIB}
|
|
||||||
|
|
||||||
NOGCCERROR?= yes
|
NOGCCERROR?= yes
|
||||||
NOCLANGERROR?= yes
|
NOCLANGERROR?= yes
|
||||||
|
|
||||||
|
|
|
@ -628,7 +628,7 @@ DPLIBC ?= ${DESTDIR}${LIBC_SO}
|
||||||
.endif
|
.endif
|
||||||
.else
|
.else
|
||||||
.if ${LIB} != "c" && ${LIB:Mgcc*} == "" \
|
.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)
|
.if !empty(LIBC_SO)
|
||||||
DPLIBC ?= ${DESTDIR}${LIBC_SO}
|
DPLIBC ?= ${DESTDIR}${LIBC_SO}
|
||||||
.endif
|
.endif
|
||||||
|
|
|
@ -229,7 +229,6 @@ LIB${_lib:tu}= ${DESTDIR}/usr/lib/lib${_lib:S/xx/++/:S/atf_c/atf-c/}.a
|
||||||
lwip \
|
lwip \
|
||||||
minc \
|
minc \
|
||||||
minixfs \
|
minixfs \
|
||||||
minlib \
|
|
||||||
mthread \
|
mthread \
|
||||||
netdriver \
|
netdriver \
|
||||||
netsock \
|
netsock \
|
||||||
|
|
Loading…
Reference in a new issue