Home | History | Annotate | Line # | Download | only in bootimage
Makefile.liveimage revision 1.1
      1 #	$NetBSD: Makefile.liveimage,v 1.1 2012/01/22 03:53:30 tsutsui Exp $
      2 #
      3 # Common Makefile to create a bootable FS image for USB flash or emulators
      4 #
      5 
      6 #
      7 # Required variables:
      8 #	LIVEIMGBASE
      9 #		Basename of the liveimage
     10 #
     11 # See Makefile.bootimage for other variables.
     12 #
     13 
     14 .if empty(LIVEIMGBASE)
     15 .BEGIN:
     16 	@echo "Error: LIVEIMGBASE is not set"
     17 	@false
     18 .endif
     19 .if empty(RELEASEDIR)
     20 .BEGIN:
     21 	@echo "Error: RELEASEDIR is not set"
     22 	@false
     23 .endif
     24 
     25 IMGBASE=	${LIVEIMGBASE}
     26 
     27 .include "${NETBSDSRCDIR}/distrib/common/bootimage/Makefile.bootimage"
     28 
     29 # LIVEIMG_RELEASEDIR specifies where to install ${LIVEIMGBASE}.img.gz.
     30 # This should be passed from etc/Makefile or etc/etc.${MACHINE}/Makefile.inc
     31 # but also set default here for manual builds.
     32 LIVEIMG_RELEASEDIR?=	${RELEASEMACHINEDIR}/installation/liveimage
     33 
     34 # should be defined elsewhere? 
     35 MKDIR?=		mkdir -p
     36 
     37 live_image: ${IMGBASE}.img.gz
     38 	${MKDIR} ${LIVEIMG_RELEASEDIR}
     39 	${RELEASE_INSTALL} ${IMGBASE}.img.gz ${LIVEIMG_RELEASEDIR}
     40 	# note ${MAKESUM} will be calculated in src/etc/Makefile
     41 
     42 release:
     43 
     44