1 # $NetBSD: Makefile.liveimage,v 1.2 2012/01/22 16:50:00 tsutsui Exp $
3 # Common Makefile to create a bootable FS image for USB flash or emulators
9 # Basename of the liveimage
11 # See Makefile.bootimage for other variables.
14 .if !target(check_LIVEIMGBASE)
15 check_LIVEIMGBASE: .PHONY .NOTMAIN
16 .if !defined(LIVEIMGBASE)
17 @echo "Error: LIVEIMGBASE is not set"
24 IMGBASE= ${LIVEIMGBASE}
26 .include "${NETBSDSRCDIR}/distrib/common/bootimage/Makefile.bootimage"
28 # LIVEIMG_RELEASEDIR specifies where to install ${LIVEIMGBASE}.img.gz.
29 # This should be passed from etc/Makefile or etc/etc.${MACHINE}/Makefile.inc
30 # but also set default here for manual builds.
31 LIVEIMG_RELEASEDIR?= ${RELEASEMACHINEDIR}/installation/liveimage
33 # should be defined elsewhere?
36 live_image: check_LIVEIMGBASE check_RELEASEDIR ${IMGBASE}.img.gz
37 ${MKDIR} ${LIVEIMG_RELEASEDIR}
38 ${RELEASE_INSTALL} ${IMGBASE}.img.gz ${LIVEIMG_RELEASEDIR}
39 # note ${MAKESUM} will be calculated in src/etc/Makefile