diff options
| author | tsutsui <tsutsui@NetBSD.org> | 2012-01-22 03:53:29 +0000 |
|---|---|---|
| committer | tsutsui <tsutsui@NetBSD.org> | 2012-01-22 03:53:29 +0000 |
| commit | d92415487b0e17f406f2c590dd065cfc4c95ca61 (patch) | |
| tree | 8100308ac84bcb099c9e7f475a645d9f64f81253 /Makefile | |
| parent | a97ca8f64f2c439295863310a4d303648def72fc (diff) | |
Add "live-image" and "install-image" target support to build.sh.
"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
msdosfs or partitioning MD label structures) support this target.
"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.
For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html
No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.
Closes PR toolchain/45153 and PR misc/45155.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 30 |
1 files changed, 29 insertions, 1 deletions
@@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.289 2011/09/09 14:23:37 apb Exp $ +# $NetBSD: Makefile,v 1.290 2012/01/22 03:53:32 tsutsui Exp $ # # This is the top-level makefile for building NetBSD. For an outline of @@ -71,6 +71,16 @@ # Create CD-ROM image with source in RELEASEDIR/iso. # RELEASEDIR must already have been populated by # `make release sourcesets' or equivalent. +# live-image: +# Create bootable live image for emulators or USB stick etc. +# in RELEASEDIR/liveimage. +# RELEASEDIR must already have been populated by `make release' +# or equivalent. +# install-image: +# Create bootable installation image for USB stick etc. +# in RELEASEDIR/installimage. +# RELEASEDIR must already have been populated by `make release' +# or equivalent. # # Targets invoked by `make build,' in order: # cleandir: cleans the tree. @@ -402,6 +412,24 @@ iso-image-source: .PHONY @printf "make ${.TARGET} finished at: " && date # +# Create bootable live images. +# + +live-image: .PHONY + ${MAKEDIRTARGET} etc live-image + @echo "make ${.TARGET} started at: ${START_TIME}" + @printf "make ${.TARGET} finished at: " && date + +# +# Create bootable installation images. +# + +install-image: .PHONY + ${MAKEDIRTARGET} etc install-image + @echo "make ${.TARGET} started at: ${START_TIME}" + @printf "make ${.TARGET} finished at: " && date + +# # Special components of the "make build" process. # |
