summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2003-08-06 08:09:40 +0000
committerru <ru@FreeBSD.org>2003-08-06 08:09:40 +0000
commit7da34893087a086403ecad1f03d077b2696d834c (patch)
tree9759e51418a17ec9307e2cf582e5f108b4668422 /release
parent093de35e66b5ff8aa3193d0db2812abc85351597 (diff)
downloadFreeBSD-src-7da34893087a086403ecad1f03d077b2696d834c.zip
FreeBSD-src-7da34893087a086403ecad1f03d077b2696d834c.tar.gz
- Unbreak Alpha snapshots (we were still attempting to build a
no longer existing "fixit" crunched binary). - Simplify the CRUNCH_TARGETS variable's initialization. - Simplify the release.5 logic a bit by accounting for the fact that release/*_crunch.conf files were removed two years ago.
Diffstat (limited to 'release')
-rw-r--r--release/Makefile22
1 files changed, 8 insertions, 14 deletions
diff --git a/release/Makefile b/release/Makefile
index 18f59ea..e210582 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -255,17 +255,13 @@ DOFS_SH= ${.CURDIR}/scripts/doFS.sh ${DISKLABEL} ${TARGET}
DOFS_SH= ${.CURDIR}/scripts/doFS.sh ${DISKLABEL} ""
.endif
-.if ${TARGET_ARCH} == "sparc64"
-CRUNCH_TARGETS= boot
-.elif ${TARGET_ARCH} == "ia64"
-CRUNCH_TARGETS= boot
-.elif ${TARGET} == "pc98"
-CRUNCH_TARGETS= boot fixit fixit-small
-.elif ${TARGET_ARCH} == "amd64"
-CRUNCH_TARGETS= boot
+CRUNCH_TARGETS= boot
+.if ${TARGET_ARCH} == "i386"
+CRUNCH_TARGETS+=fixit
+.if ${TARGET} == "pc98"
+CRUNCH_TARGETS+=fixit-small
+.endif
.endif
-
-CRUNCH_TARGETS?=boot fixit
EXTRAS= ftp.1
.if !defined(NOCDROM)
@@ -553,19 +549,17 @@ release.5:
rm -rf ${RD}/crunch
mkdir -p ${RD}/crunch
.for j in ${CRUNCH_TARGETS}
+.if exists(${.CURDIR}/${TARGET}/${j}_crunch.conf)
rm -rf ${j}_crunch
mkdir ${j}_crunch
-.if exists(${.CURDIR}/${TARGET}/${j}_crunch.conf)
cd ${j}_crunch; ${WMAKEENV} crunchgen -o ${.CURDIR}/${TARGET}/${j}_crunch.conf
-.else
- cd ${j}_crunch; ${WMAKEENV} crunchgen -o ${.CURDIR}/${j}_crunch.conf
-.endif
cd ${j}_crunch; ${WMAKE} -f ${j}_crunch.mk subclean
cd ${.CURDIR}/..; ${BINMAKE} -f Makefile.inc1 _build-tools
cd ${j}_crunch; ${WMAKE} -f ${j}_crunch.mk \
CFLAGS="-Os -pipe" -DNO_CPU_CFLAGS all
${WMAKEENV} strip -R .comment ${j}_crunch/${j}_crunch
mv ${j}_crunch/${j}_crunch ${RD}/crunch/${j}
+.endif
.endfor
touch ${.TARGET}
OpenPOWER on IntegriCloud