Replace NetBSD source dir references with MINIXSRCDIR
This commit is contained in:
parent
8e9767528a
commit
7174a0cda0
6
Makefile
6
Makefile
|
|
@ -59,7 +59,7 @@
|
||||||
# Populate ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/sets
|
# Populate ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/sets
|
||||||
# from ${DESTDIR}
|
# from ${DESTDIR}
|
||||||
# sourcesets:
|
# sourcesets:
|
||||||
# Populate ${RELEASEDIR}/source/sets from ${NETBSDSRCDIR}
|
# Populate ${RELEASEDIR}/source/sets from ${MINIXSRCDIR}
|
||||||
# syspkgs:
|
# syspkgs:
|
||||||
# Populate ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/syspkgs
|
# Populate ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/syspkgs
|
||||||
# from ${DESTDIR}
|
# from ${DESTDIR}
|
||||||
|
|
@ -274,7 +274,7 @@ includes-gnu: .PHONY includes-lib
|
||||||
#
|
#
|
||||||
# This is referenced by _NETBSD_VERSION_DEPENDS in <bsd.own.mk>.
|
# This is referenced by _NETBSD_VERSION_DEPENDS in <bsd.own.mk>.
|
||||||
#
|
#
|
||||||
.include "${NETBSDSRCDIR}/etc/Makefile.params"
|
.include "${MINIXSRCDIR}/etc/Makefile.params"
|
||||||
CLEANDIRFILES+= params
|
CLEANDIRFILES+= params
|
||||||
params: .EXEC
|
params: .EXEC
|
||||||
${_MKMSG_CREATE} params
|
${_MKMSG_CREATE} params
|
||||||
|
|
@ -411,7 +411,7 @@ installmodules: .PHONY .MAKE
|
||||||
@printf "make ${.TARGET} finished at: " && date
|
@printf "make ${.TARGET} finished at: " && date
|
||||||
|
|
||||||
#
|
#
|
||||||
# Create sets from $DESTDIR or $NETBSDSRCDIR into $RELEASEDIR
|
# Create sets from $DESTDIR or $MINIXSRCDIR into $RELEASEDIR
|
||||||
#
|
#
|
||||||
|
|
||||||
.for tgt in sets sourcesets syspkgs
|
.for tgt in sets sourcesets syspkgs
|
||||||
|
|
|
||||||
16
build.sh
16
build.sh
|
|
@ -571,7 +571,10 @@ initdefaults()
|
||||||
|
|
||||||
# Set source directories
|
# Set source directories
|
||||||
#
|
#
|
||||||
setmakeenv NETBSDSRCDIR "${TOP}"
|
# Define source tree location
|
||||||
|
setmakeenv MINIXSRCDIR "${TOP}"
|
||||||
|
# Legacy variable for compatibility with NetBSD build scripts
|
||||||
|
setmakeenv NETBSDSRCDIR "${MINIXSRCDIR}"
|
||||||
|
|
||||||
# Make sure KERNOBJDIR is an absolute path if defined
|
# Make sure KERNOBJDIR is an absolute path if defined
|
||||||
#
|
#
|
||||||
|
|
@ -1971,7 +1974,8 @@ diskimage()
|
||||||
kernel="${kerneldir}/netbsd-${ARG}.gz"
|
kernel="${kerneldir}/netbsd-${ARG}.gz"
|
||||||
[ -f "${kernel}" ] ||
|
[ -f "${kernel}" ] ||
|
||||||
bomb "The kernel ${kernel} must be built first"
|
bomb "The kernel ${kernel} must be built first"
|
||||||
make_in_dir "${NETBSDSRCDIR}/etc" "smp_${1}"
|
# Build disk image using source tree paths
|
||||||
|
make_in_dir "${MINIXSRCDIR}/etc" "smp_${1}"
|
||||||
}
|
}
|
||||||
|
|
||||||
buildkernel()
|
buildkernel()
|
||||||
|
|
@ -2123,8 +2127,8 @@ dorump()
|
||||||
export RUMPKERN_ONLY=1
|
export RUMPKERN_ONLY=1
|
||||||
# create obj and distrib dirs
|
# create obj and distrib dirs
|
||||||
if [ "${MKOBJDIRS}" != "no" ]; then
|
if [ "${MKOBJDIRS}" != "no" ]; then
|
||||||
make_in_dir "${NETBSDSRCDIR}/etc/mtree" obj
|
make_in_dir "${MINIXSRCDIR}/etc/mtree" obj
|
||||||
make_in_dir "${NETBSDSRCDIR}/sys/rump" obj
|
make_in_dir "${MINIXSRCDIR}/sys/rump" obj
|
||||||
fi
|
fi
|
||||||
${runcmd} "${makewrapper}" ${parallel} do-distrib-dirs \
|
${runcmd} "${makewrapper}" ${parallel} do-distrib-dirs \
|
||||||
|| bomb 'could not create distrib-dirs'
|
|| bomb 'could not create distrib-dirs'
|
||||||
|
|
@ -2137,13 +2141,13 @@ dorump()
|
||||||
setmakeenv NOPROFILE 1
|
setmakeenv NOPROFILE 1
|
||||||
fi
|
fi
|
||||||
for cmd in ${targlist} ; do
|
for cmd in ${targlist} ; do
|
||||||
make_in_dir "${NETBSDSRCDIR}/sys/rump" ${cmd}
|
make_in_dir "${MINIXSRCDIR}/sys/rump" ${cmd}
|
||||||
done
|
done
|
||||||
|
|
||||||
# if we just wanted to build & install rump, we're done
|
# if we just wanted to build & install rump, we're done
|
||||||
[ "${1}" != "rumptest" ] && return
|
[ "${1}" != "rumptest" ] && return
|
||||||
|
|
||||||
${runcmd} cd "${NETBSDSRCDIR}/sys/rump/librump/rumpkern" \
|
${runcmd} cd "${MINIXSRCDIR}/sys/rump/librump/rumpkern" \
|
||||||
|| bomb "cd to rumpkern failed"
|
|| bomb "cd to rumpkern failed"
|
||||||
md_quirks=`${runcmd} "${makewrapper}" -V '${_SYMQUIRK}'`
|
md_quirks=`${runcmd} "${makewrapper}" -V '${_SYMQUIRK}'`
|
||||||
# one little, two little, three little backslashes ...
|
# one little, two little, three little backslashes ...
|
||||||
|
|
|
||||||
|
|
@ -544,11 +544,11 @@ is included. These files may define any of the variables described below.
|
||||||
<bsd.own.mk> sets the following variables, if they are not already defined
|
<bsd.own.mk> sets the following variables, if they are not already defined
|
||||||
(defaults are in brackets):
|
(defaults are in brackets):
|
||||||
|
|
||||||
NETBSDSRCDIR Top of the NetBSD source tree.
|
MINIXSRCDIR Top of the Minix source tree.
|
||||||
If _SRC_TOP_ != "", that will be used as the default,
|
If _SRC_TOP_ != "", that will be used as the default,
|
||||||
otherwise BSDSRCDIR will be used as the default.
|
otherwise BSDSRCDIR will be used as the default.
|
||||||
Various makefiles within the NetBSD source tree will
|
Various makefiles within the source tree will
|
||||||
use this to reference the top level of the source tree.
|
use this to reference the top level of the source tree.
|
||||||
|
|
||||||
_SRC_TOP_ Top of the system source tree, as determined by <bsd.own.mk>
|
_SRC_TOP_ Top of the system source tree, as determined by <bsd.own.mk>
|
||||||
based on the presence of tools/ and build.sh. This variable
|
based on the presence of tools/ and build.sh. This variable
|
||||||
|
|
@ -560,10 +560,10 @@ _NETBSD_VERSION_DEPENDS
|
||||||
the version of the NetBSD being built. This is
|
the version of the NetBSD being built. This is
|
||||||
defined only if the current directory appears
|
defined only if the current directory appears
|
||||||
to be inside a NetBSD source tree. The list of
|
to be inside a NetBSD source tree. The list of
|
||||||
files includes ${NETBSDSRCDIR}/sys/sys/param.h
|
files includes ${MINIXSRCDIR}/sys/sys/param.h
|
||||||
(which contains the kernel version number),
|
(which contains the kernel version number),
|
||||||
${NETBSDSRCDIR}/sys/conf/newvers.sh and
|
${MINIXSRCDIR}/sys/conf/newvers.sh and
|
||||||
${NETBSDSRCDIR}/sys/conf/osrelease.sh (which
|
${MINIXSRCDIR}/sys/conf/osrelease.sh (which
|
||||||
interpret the information in sys/sys/param.h), and
|
interpret the information in sys/sys/param.h), and
|
||||||
${_SRC_TOP_OBJ_}/params (which is an optional file,
|
${_SRC_TOP_OBJ_}/params (which is an optional file,
|
||||||
created by "make build" in ${_SRC_TOP_}/Makefile,
|
created by "make build" in ${_SRC_TOP_}/Makefile,
|
||||||
|
|
@ -639,7 +639,7 @@ NLSOWN Native Language Support files owner. [root]
|
||||||
|
|
||||||
NLSMODE Native Language Support files mode. [${NONBINMODE}]
|
NLSMODE Native Language Support files mode. [${NONBINMODE}]
|
||||||
|
|
||||||
X11SRCDIR The path to the xsrc tree. [${NETBSDSRCDIR}/../xsrc,
|
X11SRCDIR The path to the xsrc tree. [${MINIXSRCDIR}/../xsrc,
|
||||||
if that exists; otherwise /usr/xsrc]
|
if that exists; otherwise /usr/xsrc]
|
||||||
|
|
||||||
X11SRCDIR.local The path to the local X11 src tree. [${X11SRCDIR}/local]
|
X11SRCDIR.local The path to the local X11 src tree. [${X11SRCDIR}/local]
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ ${HOSTPROG}: ${OBJS} ${DPADD}
|
||||||
${_MKTARGET_LINK}
|
${_MKTARGET_LINK}
|
||||||
${HOST_LINK.c} ${HOST_LDSTATIC} -o ${.TARGET} ${OBJS} ${LDADD}
|
${HOST_LINK.c} ${HOST_LDSTATIC} -o ${.TARGET} ${OBJS} ${LDADD}
|
||||||
.if !empty(.MAKE.OS:M*CYGWIN*)
|
.if !empty(.MAKE.OS:M*CYGWIN*)
|
||||||
${HOST_SH} ${NETBSDSRCDIR}/tools/binstall/mkmanifest ${HOSTPROG}
|
${HOST_SH} ${MINIXSRCDIR}/tools/binstall/mkmanifest ${HOSTPROG}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# $NetBSD: bsd.kernobj.mk,v 1.14 2013/06/03 07:39:07 mrg Exp $
|
# $NetBSD: bsd.kernobj.mk,v 1.14 2013/06/03 07:39:07 mrg Exp $
|
||||||
|
|
||||||
# KERNSRCDIR Is the location of the top of the kernel src.
|
# KERNSRCDIR Is the location of the top of the kernel src.
|
||||||
# It defaults to `${NETBSDSRCDIR}/sys'.
|
# It defaults to `${MINIXSRCDIR}/sys'.
|
||||||
#
|
#
|
||||||
# KERNARCHDIR Is the location of the machine dependent kernel sources.
|
# KERNARCHDIR Is the location of the machine dependent kernel sources.
|
||||||
# It defaults to `arch/${MACHINE}', but may be overridden
|
# It defaults to `arch/${MACHINE}', but may be overridden
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
.include <bsd.own.mk>
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
KERNSRCDIR?= ${NETBSDSRCDIR}/sys
|
KERNSRCDIR?= ${MINIXSRCDIR}/sys
|
||||||
KERNARCHDIR?= arch/${MACHINE}
|
KERNARCHDIR?= arch/${MACHINE}
|
||||||
KERNCONFDIRDEFAULT?= ${KERNSRCDIR}/${KERNARCHDIR}/conf
|
KERNCONFDIRDEFAULT?= ${KERNSRCDIR}/${KERNARCHDIR}/conf
|
||||||
KERNCONFDIR?= ${KERNCONFDIRDEFAULT}
|
KERNCONFDIR?= ${KERNCONFDIRDEFAULT}
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ KLINK_MACHINE?= ${MACHINE}
|
||||||
|
|
||||||
##### Default values
|
##### Default values
|
||||||
.if !defined(S)
|
.if !defined(S)
|
||||||
.if defined(NETBSDSRCDIR)
|
.if defined(MINIXSRCDIR)
|
||||||
S= ${NETBSDSRCDIR}/sys
|
S= ${MINIXSRCDIR}/sys
|
||||||
.elif defined(BSDSRCDIR)
|
.elif defined(BSDSRCDIR)
|
||||||
S= ${BSDSRCDIR}/sys
|
S= ${BSDSRCDIR}/sys
|
||||||
.else
|
.else
|
||||||
|
|
|
||||||
|
|
@ -75,11 +75,11 @@ DPADD+= ${SHLIB_VERSION_FILE}
|
||||||
|
|
||||||
# Check for higher installed library versions.
|
# Check for higher installed library versions.
|
||||||
.if !defined(NOCHECKVER) && !defined(NOCHECKVER_${LIB}) && \
|
.if !defined(NOCHECKVER) && !defined(NOCHECKVER_${LIB}) && \
|
||||||
exists(${NETBSDSRCDIR}/lib/checkver)
|
exists(${MINIXSRCDIR}/lib/checkver)
|
||||||
checkver:
|
checkver:
|
||||||
@(cd "${.CURDIR}" && \
|
@(cd "${.CURDIR}" && \
|
||||||
HOST_SH=${HOST_SH:Q} AWK=${TOOL_AWK:Q} \
|
HOST_SH=${HOST_SH:Q} AWK=${TOOL_AWK:Q} \
|
||||||
${HOST_SH} ${NETBSDSRCDIR}/lib/checkver -v ${SHLIB_VERSION_FILE} \
|
${HOST_SH} ${MINIXSRCDIR}/lib/checkver -v ${SHLIB_VERSION_FILE} \
|
||||||
-d ${_DEST.OBJ} ${LIB})
|
-d ${_DEST.OBJ} ${LIB})
|
||||||
.endif
|
.endif
|
||||||
.endif # }
|
.endif # }
|
||||||
|
|
@ -212,7 +212,7 @@ SHLIB_SHFLAGS+= -L ${DESTDIR}/usr/lib
|
||||||
SHLIB_SHFLAGS+= -Wl,-plugin=${GOLD_PLUGIN} \
|
SHLIB_SHFLAGS+= -Wl,-plugin=${GOLD_PLUGIN} \
|
||||||
-Wl,-plugin-opt=-disable-opt
|
-Wl,-plugin-opt=-disable-opt
|
||||||
|
|
||||||
SECTIONIFYPASS?=${NETBSDSRCDIR}/minix/llvm/bin/sectionify.so
|
SECTIONIFYPASS?=${MINIXSRCDIR}/minix/llvm/bin/sectionify.so
|
||||||
# dcvmoole: the following construction is a hack for libmagicrt. For reasons
|
# dcvmoole: the following construction is a hack for libmagicrt. For reasons
|
||||||
# not entirely under our control, clang refuses to take .bc objects even when
|
# not entirely under our control, clang refuses to take .bc objects even when
|
||||||
# using the gold linker, saying that LLVM IR code cannot be linked. In order
|
# using the gold linker, saying that LLVM IR code cannot be linked. In order
|
||||||
|
|
|
||||||
|
|
@ -55,8 +55,8 @@ MKSKEY:= no
|
||||||
MKYP:= no
|
MKYP:= no
|
||||||
MKCROSSGDB:= no
|
MKCROSSGDB:= no
|
||||||
|
|
||||||
WEAKALIASOVERRIDEPASS?=${NETBSDSRCDIR}/minix/llvm/bin/weak-alias-module-override.so
|
WEAKALIASOVERRIDEPASS?=${MINIXSRCDIR}/minix/llvm/bin/weak-alias-module-override.so
|
||||||
GOLD_PLUGIN?=${NETBSDSRCDIR}/minix/llvm/bin/LLVMgold.so
|
GOLD_PLUGIN?=${MINIXSRCDIR}/minix/llvm/bin/LLVMgold.so
|
||||||
|
|
||||||
# By default when running LLVM passes:
|
# By default when running LLVM passes:
|
||||||
# - do not run optimization while running LLVM passes
|
# - do not run optimization while running LLVM passes
|
||||||
|
|
@ -334,7 +334,8 @@ _SRC_TOP_!= cd "${.CURDIR}"; while :; do \
|
||||||
#
|
#
|
||||||
.if (${_SRC_TOP_} != "") # {
|
.if (${_SRC_TOP_} != "") # {
|
||||||
|
|
||||||
NETBSDSRCDIR?= ${_SRC_TOP_}
|
MINIXSRCDIR?= ${_SRC_TOP_}
|
||||||
|
NETBSDSRCDIR?= ${MINIXSRCDIR}
|
||||||
|
|
||||||
.if !defined(_SRC_TOP_OBJ_)
|
.if !defined(_SRC_TOP_OBJ_)
|
||||||
_SRC_TOP_OBJ_!= cd "${_SRC_TOP_}" && ${PRINTOBJDIR}
|
_SRC_TOP_OBJ_!= cd "${_SRC_TOP_}" && ${PRINTOBJDIR}
|
||||||
|
|
@ -342,9 +343,9 @@ _SRC_TOP_OBJ_!= cd "${_SRC_TOP_}" && ${PRINTOBJDIR}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
_NETBSD_VERSION_DEPENDS= ${_SRC_TOP_OBJ_}/params
|
_NETBSD_VERSION_DEPENDS= ${_SRC_TOP_OBJ_}/params
|
||||||
_NETBSD_VERSION_DEPENDS+= ${NETBSDSRCDIR}/sys/sys/param.h
|
_NETBSD_VERSION_DEPENDS+= ${MINIXSRCDIR}/sys/sys/param.h
|
||||||
_NETBSD_VERSION_DEPENDS+= ${NETBSDSRCDIR}/sys/conf/newvers.sh
|
_NETBSD_VERSION_DEPENDS+= ${MINIXSRCDIR}/sys/conf/newvers.sh
|
||||||
_NETBSD_VERSION_DEPENDS+= ${NETBSDSRCDIR}/sys/conf/osrelease.sh
|
_NETBSD_VERSION_DEPENDS+= ${MINIXSRCDIR}/sys/conf/osrelease.sh
|
||||||
${_SRC_TOP_OBJ_}/params: .NOTMAIN .OPTIONAL # created by top level "make build"
|
${_SRC_TOP_OBJ_}/params: .NOTMAIN .OPTIONAL # created by top level "make build"
|
||||||
|
|
||||||
.endif # _SRC_TOP_ != "" # }
|
.endif # _SRC_TOP_ != "" # }
|
||||||
|
|
@ -863,7 +864,8 @@ MKDYNAMICROOT?= yes
|
||||||
#
|
#
|
||||||
BSDSRCDIR?= /usr/src
|
BSDSRCDIR?= /usr/src
|
||||||
BSDOBJDIR?= /usr/obj
|
BSDOBJDIR?= /usr/obj
|
||||||
NETBSDSRCDIR?= ${BSDSRCDIR}
|
MINIXSRCDIR?= ${BSDSRCDIR}
|
||||||
|
NETBSDSRCDIR?= ${MINIXSRCDIR}
|
||||||
|
|
||||||
BINGRP?= wheel
|
BINGRP?= wheel
|
||||||
BINOWN?= root
|
BINOWN?= root
|
||||||
|
|
@ -1448,13 +1450,13 @@ SYMLINK?= -l s
|
||||||
|
|
||||||
METALOG?= ${DESTDIR}/METALOG
|
METALOG?= ${DESTDIR}/METALOG
|
||||||
METALOG.add?= ${TOOL_CAT} -l >> ${METALOG}
|
METALOG.add?= ${TOOL_CAT} -l >> ${METALOG}
|
||||||
.if (${_SRC_TOP_} != "") # only set INSTPRIV if inside ${NETBSDSRCDIR}
|
.if (${_SRC_TOP_} != "") # only set INSTPRIV if inside ${MINIXSRCDIR}
|
||||||
.if ${MKUNPRIVED} != "no"
|
.if ${MKUNPRIVED} != "no"
|
||||||
INSTPRIV.unpriv=-U -M ${METALOG} -D ${DESTDIR} -h sha256
|
INSTPRIV.unpriv=-U -M ${METALOG} -D ${DESTDIR} -h sha256
|
||||||
.else
|
.else
|
||||||
INSTPRIV.unpriv=
|
INSTPRIV.unpriv=
|
||||||
.endif
|
.endif
|
||||||
INSTPRIV?= ${INSTPRIV.unpriv} -N ${NETBSDSRCDIR}/etc
|
INSTPRIV?= ${INSTPRIV.unpriv} -N ${MINIXSRCDIR}/etc
|
||||||
.endif
|
.endif
|
||||||
STRIPFLAG?=
|
STRIPFLAG?=
|
||||||
|
|
||||||
|
|
@ -1535,8 +1537,8 @@ TOOL_GZIP_N= ${TOOL_GZIP} ${GZIP_N_FLAG}
|
||||||
# Where X11 sources are and where it is installed to.
|
# Where X11 sources are and where it is installed to.
|
||||||
#
|
#
|
||||||
.if !defined(X11SRCDIR)
|
.if !defined(X11SRCDIR)
|
||||||
.if exists(${NETBSDSRCDIR}/../xsrc)
|
.if exists(${MINIXSRCDIR}/../xsrc)
|
||||||
X11SRCDIR!= cd "${NETBSDSRCDIR}/../xsrc" && pwd
|
X11SRCDIR!= cd "${MINIXSRCDIR}/../xsrc" && pwd
|
||||||
.else
|
.else
|
||||||
X11SRCDIR= /usr/xsrc
|
X11SRCDIR= /usr/xsrc
|
||||||
.endif
|
.endif
|
||||||
|
|
@ -1634,8 +1636,8 @@ X11LOADABLE?= yes
|
||||||
# Where extsrc sources are and where it is installed to.
|
# Where extsrc sources are and where it is installed to.
|
||||||
#
|
#
|
||||||
.if !defined(EXTSRCSRCDIR)
|
.if !defined(EXTSRCSRCDIR)
|
||||||
.if exists(${NETBSDSRCDIR}/../extsrc)
|
.if exists(${MINIXSRCDIR}/../extsrc)
|
||||||
EXTSRCSRCDIR!= cd "${NETBSDSRCDIR}/../extsrc" && pwd
|
EXTSRCSRCDIR!= cd "${MINIXSRCDIR}/../extsrc" && pwd
|
||||||
.else
|
.else
|
||||||
EXTSRCSRCDIR= /usr/extsrc
|
EXTSRCSRCDIR= /usr/extsrc
|
||||||
.endif
|
.endif
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ MKDEPCXX?= CC=${CXX:Q} mkdep
|
||||||
.endif # defined(__MINIX)
|
.endif # defined(__MINIX)
|
||||||
|
|
||||||
.if ${MKREPRO:Uno} == "yes"
|
.if ${MKREPRO:Uno} == "yes"
|
||||||
CPPFLAGS+= -Wp,-iremap,${NETBSDSRCDIR}:/usr/src
|
CPPFLAGS+= -Wp,-iremap,${MINIXSRCDIR}:/usr/src
|
||||||
CPPFLAGS+= -Wp,-iremap,${DESTDIR}/:/
|
CPPFLAGS+= -Wp,-iremap,${DESTDIR}/:/
|
||||||
CPPFLAGS+= -Wp,-iremap,${X11SRCDIR}:/usr/xsrc
|
CPPFLAGS+= -Wp,-iremap,${X11SRCDIR}:/usr/xsrc
|
||||||
.endif
|
.endif
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
SYSCALL_OBJS?= ${SYSCALL_PREFIX}_sysent.c ${SYSCALL_PREFIX}_syscalls.c \
|
SYSCALL_OBJS?= ${SYSCALL_PREFIX}_sysent.c ${SYSCALL_PREFIX}_syscalls.c \
|
||||||
${SYSCALL_PREFIX}_syscall.h ${SYSCALL_PREFIX}_syscallargs.h
|
${SYSCALL_PREFIX}_syscall.h ${SYSCALL_PREFIX}_syscallargs.h
|
||||||
|
|
||||||
SYSCALL_DEPS?= ${NETBSDSRCDIR}/sys/kern/makesyscalls.sh \
|
SYSCALL_DEPS?= ${MINIXSRCDIR}/sys/kern/makesyscalls.sh \
|
||||||
syscalls.conf syscalls.master
|
syscalls.conf syscalls.master
|
||||||
|
|
||||||
all: ${SYSCALL_OBJS}
|
all: ${SYSCALL_OBJS}
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ CPPFLAGS += -D_MINIX_SYSTEM=1
|
||||||
# on them, unless they have specifically requested to be built without bitcode.
|
# on them, unless they have specifically requested to be built without bitcode.
|
||||||
.if ${USE_BITCODE:Uno} == "yes" && ${USE_MAGIC:Uno} == "yes"
|
.if ${USE_BITCODE:Uno} == "yes" && ${USE_MAGIC:Uno} == "yes"
|
||||||
LIBMAGICST?= ${DESTDIR}${LIBDIR}/libmagicrt.bcc
|
LIBMAGICST?= ${DESTDIR}${LIBDIR}/libmagicrt.bcc
|
||||||
MAGICPASS?= ${NETBSDSRCDIR}/minix/llvm/bin/magic.so
|
MAGICPASS?= ${MINIXSRCDIR}/minix/llvm/bin/magic.so
|
||||||
|
|
||||||
DPADD+= ${LIBMAGICST} ${MAGICPASS}
|
DPADD+= ${LIBMAGICST} ${MAGICPASS}
|
||||||
|
|
||||||
|
|
@ -61,7 +61,7 @@ OPTFLAGS+= -load ${MAGICPASS} -magic ${MAGICFLAGS}
|
||||||
# For MKASR builds, generate an additional set of rerandomized service
|
# For MKASR builds, generate an additional set of rerandomized service
|
||||||
# binaries.
|
# binaries.
|
||||||
.if ${USE_ASR:Uno} == "yes"
|
.if ${USE_ASR:Uno} == "yes"
|
||||||
ASRPASS?= ${NETBSDSRCDIR}/minix/llvm/bin/asr.so
|
ASRPASS?= ${MINIXSRCDIR}/minix/llvm/bin/asr.so
|
||||||
ASRCOUNT?= 3
|
ASRCOUNT?= 3
|
||||||
ASRDIR?= /usr/service/asr
|
ASRDIR?= /usr/service/asr
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@ CXXFLAGS?= ${CFLAGS:N-Wno-traditional:N-Wstrict-prototypes:N-Wmissing-prototypes
|
||||||
|
|
||||||
__ALLSRC1= ${empty(DESTDIR):?${.ALLSRC}:${.ALLSRC:S|^${DESTDIR}|^destdir|}}
|
__ALLSRC1= ${empty(DESTDIR):?${.ALLSRC}:${.ALLSRC:S|^${DESTDIR}|^destdir|}}
|
||||||
__ALLSRC2= ${empty(MAKEOBJDIR):?${__ALLSRC1}:${__ALLSRC1:S|^${MAKEOBJDIR}|^obj|}}
|
__ALLSRC2= ${empty(MAKEOBJDIR):?${__ALLSRC1}:${__ALLSRC1:S|^${MAKEOBJDIR}|^obj|}}
|
||||||
__ALLSRC3= ${empty(NETBSDSRCDIR):?${__ALLSRC2}:${__ALLSRC2:S|^${NETBSDSRCDIR}|^src|}}
|
__ALLSRC3= ${empty(MINIXSRCDIR):?${__ALLSRC2}:${__ALLSRC2:S|^${MINIXSRCDIR}|^src|}}
|
||||||
__BUILDSEED= ${BUILDSEED}/${__ALLSRC3:O}/${.TARGET}
|
__BUILDSEED= ${BUILDSEED}/${__ALLSRC3:O}/${.TARGET}
|
||||||
_CXXSEED?= ${BUILDSEED:D-frandom-seed=${__BUILDSEED:hash}}
|
_CXXSEED?= ${BUILDSEED:D-frandom-seed=${__BUILDSEED:hash}}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user