native-xtools: Replace common path with NXBDESTDIR.
Also combine some mkdir calls. Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
5eedd0c0e4
commit
c9ec6256cb
@ -1620,12 +1620,13 @@ cross-tools: .MAKE .PHONY
|
|||||||
${MAKE} DIRPRFX=${_tool}/ DESTDIR=${MAKEOBJDIRPREFIX} install
|
${MAKE} DIRPRFX=${_tool}/ DESTDIR=${MAKEOBJDIRPREFIX} install
|
||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
|
NXBDESTDIR= ${OBJTREE}/nxb-bin
|
||||||
NXBENV= MAKEOBJDIRPREFIX=${OBJTREE}/nxb \
|
NXBENV= MAKEOBJDIRPREFIX=${OBJTREE}/nxb \
|
||||||
INSTALL="sh ${.CURDIR}/tools/install.sh" \
|
INSTALL="sh ${.CURDIR}/tools/install.sh" \
|
||||||
PATH=${PATH}:${OBJTREE}/gperf_for_gcc/usr/bin
|
PATH=${PATH}:${OBJTREE}/gperf_for_gcc/usr/bin
|
||||||
NXBMAKE= ${NXBENV} ${MAKE} \
|
NXBMAKE= ${NXBENV} ${MAKE} \
|
||||||
TBLGEN=${OBJTREE}/nxb-bin/usr/bin/tblgen \
|
TBLGEN=${NXBDESTDIR}/usr/bin/tblgen \
|
||||||
CLANG_TBLGEN=${OBJTREE}/nxb-bin/usr/bin/clang-tblgen \
|
CLANG_TBLGEN=${NXBDESTDIR}/usr/bin/clang-tblgen \
|
||||||
MACHINE=${TARGET} MACHINE_ARCH=${TARGET_ARCH} \
|
MACHINE=${TARGET} MACHINE_ARCH=${TARGET_ARCH} \
|
||||||
MK_GDB=no MK_TESTS=no \
|
MK_GDB=no MK_TESTS=no \
|
||||||
SSP_CFLAGS= \
|
SSP_CFLAGS= \
|
||||||
@ -1650,16 +1651,14 @@ native-xtools: .PHONY
|
|||||||
${NXBMAKE} DIRPRFX=${_gperf}/ all && \
|
${NXBMAKE} DIRPRFX=${_gperf}/ all && \
|
||||||
${NXBMAKE} DIRPRFX=${_gperf}/ DESTDIR=${OBJTREE}/gperf_for_gcc install
|
${NXBMAKE} DIRPRFX=${_gperf}/ DESTDIR=${OBJTREE}/gperf_for_gcc install
|
||||||
.endif
|
.endif
|
||||||
mkdir -p ${OBJTREE}/nxb-bin/bin
|
mkdir -p ${NXBDESTDIR}/bin ${NXBDESTDIR}/sbin ${NXBDESTDIR}/usr
|
||||||
mkdir -p ${OBJTREE}/nxb-bin/sbin
|
|
||||||
mkdir -p ${OBJTREE}/nxb-bin/usr
|
|
||||||
mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \
|
mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \
|
||||||
-p ${OBJTREE}/nxb-bin/usr >/dev/null
|
-p ${NXBDESTDIR}/usr >/dev/null
|
||||||
mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \
|
mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \
|
||||||
-p ${OBJTREE}/nxb-bin/usr/include >/dev/null
|
-p ${NXBDESTDIR}/usr/include >/dev/null
|
||||||
.if ${MK_DEBUG_FILES} != "no"
|
.if ${MK_DEBUG_FILES} != "no"
|
||||||
mtree -deU -f ${.CURDIR}/etc/mtree/BSD.debug.dist \
|
mtree -deU -f ${.CURDIR}/etc/mtree/BSD.debug.dist \
|
||||||
-p ${OBJTREE}/nxb-bin/usr/lib >/dev/null
|
-p ${NXBDESTDIR}/usr/lib >/dev/null
|
||||||
.endif
|
.endif
|
||||||
.for _tool in \
|
.for _tool in \
|
||||||
bin/cat \
|
bin/cat \
|
||||||
@ -1725,7 +1724,7 @@ native-xtools: .PHONY
|
|||||||
${NXBMAKE} DIRPRFX=${_tool}/ obj && \
|
${NXBMAKE} DIRPRFX=${_tool}/ obj && \
|
||||||
${NXBMAKE} DIRPRFX=${_tool}/ depend && \
|
${NXBMAKE} DIRPRFX=${_tool}/ depend && \
|
||||||
${NXBMAKE} DIRPRFX=${_tool}/ all && \
|
${NXBMAKE} DIRPRFX=${_tool}/ all && \
|
||||||
${NXBMAKE} DIRPRFX=${_tool}/ DESTDIR=${OBJTREE}/nxb-bin install
|
${NXBMAKE} DIRPRFX=${_tool}/ DESTDIR=${NXBDESTDIR} install
|
||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user