Downgrading to netbsd zlib version

Change-Id: I83cf73d8357ea34ab5e49fe15bd4c45ce54cac01
This commit is contained in:
2013-04-09 16:43:13 +02:00
parent dd6b239665
commit 435f2b0095
44 changed files with 2169 additions and 12951 deletions
-7
View File
@@ -36,9 +36,6 @@ BINMODE=444
LDFLAGS+= -nostdlib -Wl,-N -Wl,-e,boot_start
CPPFLAGS+= -I ${.CURDIR}/.. -I ${.CURDIR}/../../lib -I ${S}/lib/libsa
CPPFLAGS+= -I ${.OBJDIR}
.if defined(__MINIX)
CPPFLAGS+=-isystem ${DESTDIR}/usr/include
.endif # defined(__MINIX)
# Make sure we override any optimization options specified by the user
COPTS= -Os
@@ -172,8 +169,4 @@ ${PROG}: ${OBJS} ${LIBLIST} ${.CURDIR}/../Makefile.boot
-Wl,-Map,${PROG}.map -Wl,-cref ${OBJS} $$bb ${LIBLIST}
${OBJCOPY} -O binary ${PROG}.syms ${PROG}
.ifndef __MINIX
.include <bsd.prog.mk>
.else
.include <minix.service.mk>
.endif
@@ -115,7 +115,6 @@ SA_AS= library
SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
.if defined(__MINIX)
SAMISCMAKEFLAGS+="SA_INCLUDE_NET=no"
CPPFLAGS+= -isystem ${DESTDIR}/usr/include
AFLAGS+= -Wa,--divide
.endif
.include "${S}/lib/libsa/Makefile.inc"
@@ -159,8 +158,4 @@ ${PROG}: ${OBJS} ${LIBLIST}
echo "${PROG} size $$sz, $$((${BOOTXX_MAXSIZE} - $$sz)) free"; \
fi
.ifndef __MINIX
.include <bsd.prog.mk>
.else
.include <minix.service.mk>
.endif
+6
View File
@@ -29,6 +29,12 @@ CPPFLAGS+= -I. -I${.CURDIR}/../../lib -I${S}
.if defined(__MINIX)
CPPFLAGS+= -DLOADADDR=${LOADADDR}
AFLAGS+= -Wa,--divide
BUILDSYMLINKS+= \
${NETBSDSRCDIR}/include/arch/i386/include/stackframe.h machine/stackframe.h \
${NETBSDSRCDIR}/include/arch/i386/include/fpu.h machine/fpu.h
DPSRCS+= machine/stackframe.h machine/fpu.h
.endif
.if ${MACHINE_ARCH} == "x86_64"
+1 -3
View File
@@ -22,9 +22,6 @@ CPPFLAGS= -I${SADIR} ${SACPPFLAGS} ${SAMISCCPPFLAGS} \
.include <bsd.own.mk>
.PATH.c: ${SADIR} ${.PARSEDIR}/../../../common/lib/libc/string
.ifdef __MINIX
.PATH.c: ${SADIR} ${.PARSEDIR}/../../../common/lib/libc/md
.endif
# stand routines
SRCS+= alloc.c errno.c exit.c files.c \
@@ -96,6 +93,7 @@ SRCS+= xlat_mbr_fstype.c
# NetBSD has it in libkern, MINIX has it in libc but not libminc...
SRCS+= md5c.c
.PATH.c: ${.PARSEDIR}/../../../common/lib/libc/md
.endif
# only needed during build
-4
View File
@@ -3,11 +3,7 @@
LIB= z
LIBISPRIVATE= yes
.ifndef __MINIX
ZDISTDIR:=${.PARSEDIR}/../../../common/dist/zlib
.else
ZDISTDIR:=${.PARSEDIR}/../../../lib/libz
.endif
CPPFLAGS+= -I${ZDISTDIR} ${ZCPPFLAGS} ${ZMISCCPPFLAGS}
-8
View File
@@ -19,17 +19,9 @@
# Default values:
ZDST?= ${.OBJDIR}/lib/z
Z_AS?= library
.ifndef __MINIX
ZDOTDIR?= ../../.
ZDIR= ${S:S@^.@${ZDOTDIR}@:Q}/lib/libz
.else
ZDOTDIR?= ../../../../../.
ZDIR= ${.CURDIR}/${ZDOTDIR}/lib/libz
.endif
.if (${Z_AS} == "obj")
ZLIB= ${ZDST}/libz.o
ZLIB_PROF= ${ZDST}/libz.po
+3
View File
@@ -467,7 +467,10 @@ __END_DECLS
#endif /* _KERNEL */
#endif /* !_STANDALONE */
#if defined(__minix) && !defined(_STANDALONE)
#include <sys/statvfs.h>
#include <minix/mount.h>
#endif /* defined(__minix) && !defined(_STANDALONE) */
#endif /* !_SYS_MOUNT_H_ */
+2
View File
@@ -204,7 +204,9 @@ typedef __uid_t uid_t; /* user id */
#define uid_t __uid_t
#endif
#if defined(__minix) && !defined(_STANDALONE)
#include <sys/ucred.h>
#endif
/*
* Structure used by kernel to store most
+5
View File
@@ -37,6 +37,11 @@
#if defined(__minix)
#define __MINIX_OPEN_MAX 255 /* a process may have 255 files open */
#define __MINIX_PATH_MAX 1024/* a pathname may contain 1023 chars (+ '\0')*/
#if defined(_STANDALONE)
/* LSC: In NetBSD this gets pulled in through libkern.h */
#include <sys/null.h>
#endif /* defined(_STANDALONE) */
#endif /* defined(__minix) */
#include <sys/featuretest.h>