diff options
author | ru <ru@FreeBSD.org> | 2005-06-16 18:16:14 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-06-16 18:16:14 +0000 |
commit | 73ab2fc036124d8b8ca662ced3919e56265959b7 (patch) | |
tree | 45d1addfe5c2606789a40380e44946682e84ad9c /release | |
parent | b4f8c168e5947e8b62b512b2f35968a73f925633 (diff) | |
download | FreeBSD-src-73ab2fc036124d8b8ca662ced3919e56265959b7.zip FreeBSD-src-73ab2fc036124d8b8ca662ced3919e56265959b7.tar.gz |
Provide 32-bit runtime support on amd64 as a separate distribution, lib32.
Prodded by: obrien
Nodded by: peter
Approved by: re
Diffstat (limited to 'release')
-rw-r--r-- | release/Makefile | 13 | ||||
-rw-r--r-- | release/scripts/lib32-make.sh | 8 |
2 files changed, 17 insertions, 4 deletions
diff --git a/release/Makefile b/release/Makefile index 67d81a3..f8e462e 100644 --- a/release/Makefile +++ b/release/Makefile @@ -162,8 +162,11 @@ DIST_DOCS_ARCH_DEP= installation relnotes hardware # Things which without too much trouble can be considered variables # BASE_DISTS are special in that they get full /etc installation sets. # -OTHER_DISTS?= catpages manpages games proflibs dict info doc +OTHER_DISTS?= catpages manpages games proflibs dict info doc ${ARCH_DISTS} BASE_DISTS?= base +.if ${TARGET_ARCH} == "amd64" +ARCH_DISTS?= lib32 +.endif DISTRIBUTIONS?= ${BASE_DISTS} ${OTHER_DISTS} # mountpoint for filesystems. @@ -351,8 +354,9 @@ release rerelease: .endif mkdir -p ${CHROOTDIR} @echo ">>> make release for ${TARGET} started on `LC_ALL=C TZ=GMT date`" - cd ${WORLDDIR} && ${NATIVEMAKE} -DNO_GAMES -DNO_HTML -DNO_INFO -DNO_MAN \ - -DNO_NLS -DNO_PROFILE installworld DESTDIR=${CHROOTDIR} + cd ${WORLDDIR} && ${NATIVEMAKE} -DNO_GAMES -DNO_HTML -DNO_INFO \ + -DNO_LIB32 -DNO_MAN -DNO_NLS -DNO_PROFILE installworld \ + DESTDIR=${CHROOTDIR} cd ${WORLDDIR} && ${NATIVEMAKE} distribution DESTDIR=${CHROOTDIR} if [ -f /etc/resolv.conf ]; then \ cp -p /etc/resolv.conf ${CHROOTDIR}/etc; \ @@ -623,7 +627,8 @@ release.5: # Remove all the directories we don't need. -cd ${RD}/trees && \ - find ${OTHER_DISTS} -depth -type d -print | xargs rmdir + (find ${OTHER_DISTS} -path '*/var/empty' | xargs chflags noschg; \ + find ${OTHER_DISTS} -depth -type d -print | xargs rmdir) touch ${.TARGET} # diff --git a/release/scripts/lib32-make.sh b/release/scripts/lib32-make.sh new file mode 100644 index 0000000..37e16d4 --- /dev/null +++ b/release/scripts/lib32-make.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# Clean the dust. +cd ${RD}/trees/lib32 && \ + find . ! -path '*/libexec/*' ! -path '*/usr/lib32/*' -delete |