mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Build picobsd object files in /usr/obj/picobsd/${TYPE}.
This commit is contained in:
parent
caab6fc8a5
commit
be0d2a8f18
2 changed files with 5 additions and 1 deletions
|
|
@ -13,13 +13,14 @@ crunch:
|
|||
else \
|
||||
crunchgen -h ../../build/crunch.inc ./crunch1.conf ; \
|
||||
fi )
|
||||
@perl -pi -e 's#${OBJ}#${PICO_OBJ}#g' crunch1.mk ;
|
||||
../../build/munge_crunchmk.pl crunch1.mk ;
|
||||
@( if [ -f buildopts.inc ] ; then \
|
||||
echo '.include "buildopts.inc"' > crunch1.mk.tmp ; \
|
||||
cat crunch1.mk >> crunch1.mk.tmp ; \
|
||||
mv crunch1.mk.tmp crunch1.mk ; \
|
||||
fi )
|
||||
${MAKE} -f crunch1.mk $(CRUNCHFLAGS) all \
|
||||
@env MAKEOBJDIRPREFIX=${PICO_OBJ} ${MAKE} -f crunch1.mk $(CRUNCHFLAGS) all \
|
||||
"CFLAGS=${CFLAGS} ${CRUNCHFLAGS}" #2>&1 >/dev/null
|
||||
strip --remove-section=.note --remove-section=.comment crunch1
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,9 @@ MFS_NAME=fs.PICOBSD
|
|||
MFS_MOUNTPOINT=`mktemp -d "/tmp/picobsd.XXXXXXXXXX"`
|
||||
export MFS_MOUNTPOINT
|
||||
|
||||
PICO_OBJ=${OBJ}/picobsd/${TYPE}
|
||||
export PICO_OBJ
|
||||
|
||||
# fail errno errcode
|
||||
# This function is used to trap errors and print msgs
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in a new issue