diff options
author | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2000-06-29 13:34:54 +0000 |
---|---|---|
committer | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2000-06-29 13:34:54 +0000 |
commit | 7ec62217f0c6ae4f93d175270f44d6e6b7c3aa10 (patch) | |
tree | 9fc6b2319905a6eb34a25ff8678c29bdedacf239 | |
parent | dba11ce52b112feba5d093b06f628a76174b7131 (diff) | |
download | src-7ec62217f0c6ae4f93d175270f44d6e6b7c3aa10.tar.gz src-7ec62217f0c6ae4f93d175270f44d6e6b7c3aa10.zip |
Notes
-rw-r--r-- | release/Makefile | 20 | ||||
-rw-r--r-- | release/alpha/boot_crunch.conf | 2 | ||||
-rw-r--r-- | release/alpha/fixit_crunch.conf | 3 | ||||
-rw-r--r-- | release/amd64/boot_crunch.conf | 2 | ||||
-rw-r--r-- | release/amd64/fixit_crunch.conf | 38 | ||||
-rw-r--r-- | release/boot_crunch.conf | 2 | ||||
-rw-r--r-- | release/fixit_crunch.conf | 3 | ||||
-rw-r--r-- | release/i386/boot_crunch.conf | 2 | ||||
-rw-r--r-- | release/i386/fixit_crunch.conf | 38 | ||||
-rw-r--r-- | release/pc98/boot_crunch.conf | 2 | ||||
-rw-r--r-- | release/pc98/fixit_crunch.conf | 38 |
11 files changed, 133 insertions, 17 deletions
diff --git a/release/Makefile b/release/Makefile index 28077f66c7ca..5eff560b7018 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} ##==-- diff --git a/release/alpha/boot_crunch.conf b/release/alpha/boot_crunch.conf index 6e9446bef304..e81fbae443d4 100644 --- a/release/alpha/boot_crunch.conf +++ b/release/alpha/boot_crunch.conf @@ -1,7 +1,7 @@ # $FreeBSD$ srcdirs /usr/src/bin /usr/src/sbin /usr/src/release /usr/src/usr.bin -srcdirs /usr/src/gnu/usr.bin /usr/src/usr.sbin /usr/src/sbin/MACHINE +srcdirs /usr/src/gnu/usr.bin /usr/src/usr.sbin srcdirs /usr/src/usr.sbin/pccard progs sh find sed test rm diff --git a/release/alpha/fixit_crunch.conf b/release/alpha/fixit_crunch.conf index 156d670c6695..e8bd0ed6bd83 100644 --- a/release/alpha/fixit_crunch.conf +++ b/release/alpha/fixit_crunch.conf @@ -5,7 +5,6 @@ srcdirs /usr/src/bin /usr/src/sbin /usr/src/usr.bin /usr/src/usr.sbin srcdirs /usr/src/gnu/usr.bin /usr/src/usr.bin/vi -srcdirs /usr/src/sbin/MACHINE # second, we list all the programs we want to include in our crunched binary. # The order doesn't matter. Any program that needs hard links to it gets an @@ -18,7 +17,7 @@ progs mv rm rmdir sleep sync # /sbin stuff -progs chown clri disklabel dmesg fdisk +progs chown clri disklabel dmesg progs mknod mount reboot restore swapon umount progs mount_msdos mount_cd9660 diff --git a/release/amd64/boot_crunch.conf b/release/amd64/boot_crunch.conf index 6e9446bef304..e81fbae443d4 100644 --- a/release/amd64/boot_crunch.conf +++ b/release/amd64/boot_crunch.conf @@ -1,7 +1,7 @@ # $FreeBSD$ srcdirs /usr/src/bin /usr/src/sbin /usr/src/release /usr/src/usr.bin -srcdirs /usr/src/gnu/usr.bin /usr/src/usr.sbin /usr/src/sbin/MACHINE +srcdirs /usr/src/gnu/usr.bin /usr/src/usr.sbin srcdirs /usr/src/usr.sbin/pccard progs sh find sed test rm diff --git a/release/amd64/fixit_crunch.conf b/release/amd64/fixit_crunch.conf new file mode 100644 index 000000000000..7dca73777999 --- /dev/null +++ b/release/amd64/fixit_crunch.conf @@ -0,0 +1,38 @@ +# $FreeBSD$ + +# first, we list the source dirs that our programs reside in. These are +# searched in order listed to find the dir containing each program. + +srcdirs /usr/src/bin /usr/src/sbin /usr/src/usr.bin /usr/src/usr.sbin +srcdirs /usr/src/gnu/usr.bin /usr/src/usr.bin/vi +srcdirs /usr/src/sbin/i386 + +# second, we list all the programs we want to include in our crunched binary. +# The order doesn't matter. Any program that needs hard links to it gets an +# `ln' directive. + +# /bin stuff + +progs cat chmod chroot cp dd df echo expr kill ln ls mkdir +progs mv rm rmdir sleep sync + +# /sbin stuff + +progs chown clri disklabel dmesg fdisk +progs mknod mount reboot restore swapon umount + +progs mount_msdos mount_cd9660 + +ln restore rrestore +ln chown chgrp + +# /usr/bin stuff + +progs ftp telnet vi grep +ln vi view +ln vi ex + +# finally, we specify the libraries to link in with our binary + +libs -lcrypt -ltelnet -lutil -ll -lm +libs -lcurses -ltermcap -ledit -lgnuregex -lkvm -lz diff --git a/release/boot_crunch.conf b/release/boot_crunch.conf index 6e9446bef304..e81fbae443d4 100644 --- a/release/boot_crunch.conf +++ b/release/boot_crunch.conf @@ -1,7 +1,7 @@ # $FreeBSD$ srcdirs /usr/src/bin /usr/src/sbin /usr/src/release /usr/src/usr.bin -srcdirs /usr/src/gnu/usr.bin /usr/src/usr.sbin /usr/src/sbin/MACHINE +srcdirs /usr/src/gnu/usr.bin /usr/src/usr.sbin srcdirs /usr/src/usr.sbin/pccard progs sh find sed test rm diff --git a/release/fixit_crunch.conf b/release/fixit_crunch.conf index 156d670c6695..e8bd0ed6bd83 100644 --- a/release/fixit_crunch.conf +++ b/release/fixit_crunch.conf @@ -5,7 +5,6 @@ srcdirs /usr/src/bin /usr/src/sbin /usr/src/usr.bin /usr/src/usr.sbin srcdirs /usr/src/gnu/usr.bin /usr/src/usr.bin/vi -srcdirs /usr/src/sbin/MACHINE # second, we list all the programs we want to include in our crunched binary. # The order doesn't matter. Any program that needs hard links to it gets an @@ -18,7 +17,7 @@ progs mv rm rmdir sleep sync # /sbin stuff -progs chown clri disklabel dmesg fdisk +progs chown clri disklabel dmesg progs mknod mount reboot restore swapon umount progs mount_msdos mount_cd9660 diff --git a/release/i386/boot_crunch.conf b/release/i386/boot_crunch.conf index 6e9446bef304..e81fbae443d4 100644 --- a/release/i386/boot_crunch.conf +++ b/release/i386/boot_crunch.conf @@ -1,7 +1,7 @@ # $FreeBSD$ srcdirs /usr/src/bin /usr/src/sbin /usr/src/release /usr/src/usr.bin -srcdirs /usr/src/gnu/usr.bin /usr/src/usr.sbin /usr/src/sbin/MACHINE +srcdirs /usr/src/gnu/usr.bin /usr/src/usr.sbin srcdirs /usr/src/usr.sbin/pccard progs sh find sed test rm diff --git a/release/i386/fixit_crunch.conf b/release/i386/fixit_crunch.conf new file mode 100644 index 000000000000..7dca73777999 --- /dev/null +++ b/release/i386/fixit_crunch.conf @@ -0,0 +1,38 @@ +# $FreeBSD$ + +# first, we list the source dirs that our programs reside in. These are +# searched in order listed to find the dir containing each program. + +srcdirs /usr/src/bin /usr/src/sbin /usr/src/usr.bin /usr/src/usr.sbin +srcdirs /usr/src/gnu/usr.bin /usr/src/usr.bin/vi +srcdirs /usr/src/sbin/i386 + +# second, we list all the programs we want to include in our crunched binary. +# The order doesn't matter. Any program that needs hard links to it gets an +# `ln' directive. + +# /bin stuff + +progs cat chmod chroot cp dd df echo expr kill ln ls mkdir +progs mv rm rmdir sleep sync + +# /sbin stuff + +progs chown clri disklabel dmesg fdisk +progs mknod mount reboot restore swapon umount + +progs mount_msdos mount_cd9660 + +ln restore rrestore +ln chown chgrp + +# /usr/bin stuff + +progs ftp telnet vi grep +ln vi view +ln vi ex + +# finally, we specify the libraries to link in with our binary + +libs -lcrypt -ltelnet -lutil -ll -lm +libs -lcurses -ltermcap -ledit -lgnuregex -lkvm -lz diff --git a/release/pc98/boot_crunch.conf b/release/pc98/boot_crunch.conf index 6e9446bef304..e81fbae443d4 100644 --- a/release/pc98/boot_crunch.conf +++ b/release/pc98/boot_crunch.conf @@ -1,7 +1,7 @@ # $FreeBSD$ srcdirs /usr/src/bin /usr/src/sbin /usr/src/release /usr/src/usr.bin -srcdirs /usr/src/gnu/usr.bin /usr/src/usr.sbin /usr/src/sbin/MACHINE +srcdirs /usr/src/gnu/usr.bin /usr/src/usr.sbin srcdirs /usr/src/usr.sbin/pccard progs sh find sed test rm diff --git a/release/pc98/fixit_crunch.conf b/release/pc98/fixit_crunch.conf new file mode 100644 index 000000000000..29a0b0128d13 --- /dev/null +++ b/release/pc98/fixit_crunch.conf @@ -0,0 +1,38 @@ +# $FreeBSD$ + +# first, we list the source dirs that our programs reside in. These are +# searched in order listed to find the dir containing each program. + +srcdirs /usr/src/bin /usr/src/sbin /usr/src/usr.bin /usr/src/usr.sbin +srcdirs /usr/src/gnu/usr.bin /usr/src/usr.bin/vi +srcdirs /usr/src/sbin/pc98 + +# second, we list all the programs we want to include in our crunched binary. +# The order doesn't matter. Any program that needs hard links to it gets an +# `ln' directive. + +# /bin stuff + +progs cat chmod chroot cp dd df echo expr kill ln ls mkdir +progs mv rm rmdir sleep sync + +# /sbin stuff + +progs chown clri disklabel dmesg fdisk +progs mknod mount reboot restore swapon umount + +progs mount_msdos mount_cd9660 + +ln restore rrestore +ln chown chgrp + +# /usr/bin stuff + +progs ftp telnet vi grep +ln vi view +ln vi ex + +# finally, we specify the libraries to link in with our binary + +libs -lcrypt -ltelnet -lutil -ll -lm +libs -lcurses -ltermcap -ledit -lgnuregex -lkvm -lz |