summaryrefslogtreecommitdiffstats
path: root/release/Makefile
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2000-06-29 13:34:54 +0000
committernyan <nyan@FreeBSD.org>2000-06-29 13:34:54 +0000
commit4a257138c569056daa386e82e59dfa83e19504a3 (patch)
tree5efdf451bff12d7544aea2c87834de11ab78c089 /release/Makefile
parentb878e64d535c8ad5e68d6b68041052151f3313af (diff)
downloadFreeBSD-src-4a257138c569056daa386e82e59dfa83e19504a3.zip
FreeBSD-src-4a257138c569056daa386e82e59dfa83e19504a3.tar.gz
- Removed machine dependent directory and command from
src/release/{boot,fixit}_crunch.conf. - Added machine specific fixit_crunch.conf for PC/AT and PC-98 to src/release/$MACHINE. - Use config file in src/release/$MACHINE if exist. If it does not exist, use in src/release.
Diffstat (limited to 'release/Makefile')
-rw-r--r--release/Makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/release/Makefile b/release/Makefile
index 28077f66..5eff560 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -303,7 +303,6 @@ rerelease release:
clean:
rm -rf boot_crunch release.[0-9]
- rm -rf ${.OBJDIR}/boot_crunch.conf ${.OBJDIR}/fixit_crunch.conf
# Clean out ${_R} and make the directory structure.
release.1:
@@ -376,13 +375,12 @@ release.4:
mkdir -p ${RD}/crunch
export RELEASE_BUILD_FIXIT=noway ; \
for j in ${CRUNCH_TARGETS} ; do \
- sed -e "s:MACHINE:${MACHINE}:" \
- ${.CURDIR}/$${j}_crunch.conf > \
- ${.OBJDIR}/$${j}_crunch.conf && \
rm -rf $${j}_crunch && \
mkdir $${j}_crunch && \
( cd $${j}_crunch && \
- crunchgen ${.OBJDIR}/$${j}_crunch.conf && \
+ ( ( [ -f ${.CURDIR}/${MACHINE}/$${j}_crunch.conf ] && \
+ crunchgen ${.CURDIR}/${MACHINE}/$${j}_crunch.conf ) || \
+ ( crunchgen ${.CURDIR}/$${j}_crunch.conf ) ) && \
${MAKE} -DRELEASE_CRUNCH -f $${j}_crunch.mk subclean all \
NOCRYPT=yes "CFLAGS=${CFLAGS} -DCRUNCHED_BINARY") && \
mv $${j}_crunch/$${j}_crunch ${RD}/crunch/$${j} && \
@@ -731,9 +729,15 @@ installCRUNCH:
ln -f ${RD}/crunch/${CRUNCH} ${DIR}/${CRUNCH}_crunch ; \
fi
@chmod 555 ${DIR}/${CRUNCH}_crunch
- @for i in `crunchgen -l ${.OBJDIR}/${CRUNCH}_crunch.conf` ; do \
- ln -f ${DIR}/${CRUNCH}_crunch ${DIR}/$$i ; \
- done
+ @if [ -f ${.CURDIR}/${MACHINE}/${CRUNCH}_crunch.conf ] ; then \
+ for i in `crunchgen -l ${.CURDIR}/${MACHINE}/${CRUNCH}_crunch.conf` ; do \
+ ln -f ${DIR}/${CRUNCH}_crunch ${DIR}/$$i ; \
+ done \
+ else \
+ for i in `crunchgen -l ${.CURDIR}/${CRUNCH}_crunch.conf` ; do \
+ ln -f ${DIR}/${CRUNCH}_crunch ${DIR}/$$i ; \
+ done \
+ fi
#
# --==## Compile a kernel by name ${KERNEL} ##==--
OpenPOWER on IntegriCloud