- 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.
This commit is contained in:
Ruslan Ermilov 2003-08-06 08:09:40 +00:00
parent 7df14ae5de
commit 3cd22041ce
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118525

View File

@ -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}