summaryrefslogtreecommitdiffstats
path: root/release/picobsd/build/Makefile.crunch
diff options
context:
space:
mode:
Diffstat (limited to 'release/picobsd/build/Makefile.crunch')
-rw-r--r--release/picobsd/build/Makefile.crunch3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/picobsd/build/Makefile.crunch b/release/picobsd/build/Makefile.crunch
index 96ceb15..a473956 100644
--- a/release/picobsd/build/Makefile.crunch
+++ b/release/picobsd/build/Makefile.crunch
@@ -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
OpenPOWER on IntegriCloud