aboutsummaryrefslogtreecommitdiff
path: root/release/Makefile
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2013-11-07 18:53:55 +0000
committerGlen Barber <gjb@FreeBSD.org>2013-11-07 18:53:55 +0000
commita9da1707e5e63b4e367cd946199d17972116295d (patch)
tree8b973f0572f47ba9beb5c6da183fd0f2be4e3558 /release/Makefile
parentde72f4e54b794d7e90f41e6d6ace02e6cb13d009 (diff)
downloadsrc-a9da1707e5e63b4e367cd946199d17972116295d.tar.gz
src-a9da1707e5e63b4e367cd946199d17972116295d.zip
Add a 'mini-memstick.img' release target, which will use the
'bootonly.iso' components to create a smaller memory stick image. This is useful for system recovery, where a full memstick.img image is not necessarily needed (or wanted). In addition, it is possible to do bootonly-style installation, where the base.txz, kernel.txz, etc. are fetched from a remote source. Provide backwards-compatible target (mini-memstick), to keep in sync with the targets documented in release/Makefile. Prompted by: wblock MFC after: 1 week X-MFC-after: 10.0-RELEASE Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=257805
Diffstat (limited to 'release/Makefile')
-rw-r--r--release/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/release/Makefile b/release/Makefile
index 847dda9d8b76..a48f4cabf30b 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -5,6 +5,7 @@
# User-driven targets:
# cdrom: Builds release CD-ROM media (disc1.iso)
# memstick: Builds memory stick image (memstick.img)
+# mini-memstick: Builds minimal memory stick image (mini-memstick.img)
# ftp: Sets up FTP distribution area (ftp)
# release: Build all media and FTP distribution area
# install: Copies all release media into ${DESTDIR}
@@ -74,7 +75,9 @@ IMAGES+= disc1.iso bootonly.iso
.endif
.if exists(${.CURDIR}/${TARGET}/make-memstick.sh)
RELEASE_TARGETS+= memstick.img
+RELEASE_TARGETS+= mini-memstick.img
IMAGES+= memstick.img
+IMAGES+= mini-memstick.img
.endif
.include <bsd.obj.mk>
@@ -168,10 +171,14 @@ disc1.iso: system
bootonly.iso: bootonly
sh ${.CURDIR}/${TARGET}/mkisoimages.sh -b FreeBSD_Install ${.TARGET} bootonly
-memstick: memstick.img
+memstick: memstick.img mini-memstick.img
memstick.img: system
sh ${.CURDIR}/${TARGET}/make-memstick.sh release ${.TARGET}
+mini-memstick: mini-memstick.img
+mini-memstick.img: system
+ sh ${.CURDIR}/${TARGET}/make-memstick.sh bootonly ${.TARGET}
+
packagesystem: base.txz kernel.txz ${EXTRA_PACKAGES}
sh ${.CURDIR}/scripts/make-manifest.sh *.txz > MANIFEST
touch ${.TARGET}