Makefile.liveimage revision 1.2
11.2Stsutsui# $NetBSD: Makefile.liveimage,v 1.2 2012/01/22 16:50:00 tsutsui Exp $ 21.1Stsutsui# 31.1Stsutsui# Common Makefile to create a bootable FS image for USB flash or emulators 41.1Stsutsui# 51.1Stsutsui 61.1Stsutsui# 71.1Stsutsui# Required variables: 81.1Stsutsui# LIVEIMGBASE 91.1Stsutsui# Basename of the liveimage 101.1Stsutsui# 111.1Stsutsui# See Makefile.bootimage for other variables. 121.1Stsutsui# 131.1Stsutsui 141.2Stsutsui.if !target(check_LIVEIMGBASE) 151.2Stsutsuicheck_LIVEIMGBASE: .PHONY .NOTMAIN 161.2Stsutsui.if !defined(LIVEIMGBASE) 171.1Stsutsui @echo "Error: LIVEIMGBASE is not set" 181.1Stsutsui @false 191.2Stsutsui.else 201.2Stsutsui @true 211.1Stsutsui.endif 221.1Stsutsui.endif 231.1Stsutsui 241.1StsutsuiIMGBASE= ${LIVEIMGBASE} 251.1Stsutsui 261.1Stsutsui.include "${NETBSDSRCDIR}/distrib/common/bootimage/Makefile.bootimage" 271.1Stsutsui 281.1Stsutsui# LIVEIMG_RELEASEDIR specifies where to install ${LIVEIMGBASE}.img.gz. 291.1Stsutsui# This should be passed from etc/Makefile or etc/etc.${MACHINE}/Makefile.inc 301.1Stsutsui# but also set default here for manual builds. 311.1StsutsuiLIVEIMG_RELEASEDIR?= ${RELEASEMACHINEDIR}/installation/liveimage 321.1Stsutsui 331.1Stsutsui# should be defined elsewhere? 341.1StsutsuiMKDIR?= mkdir -p 351.1Stsutsui 361.2Stsutsuilive_image: check_LIVEIMGBASE check_RELEASEDIR ${IMGBASE}.img.gz 371.1Stsutsui ${MKDIR} ${LIVEIMG_RELEASEDIR} 381.1Stsutsui ${RELEASE_INSTALL} ${IMGBASE}.img.gz ${LIVEIMG_RELEASEDIR} 391.1Stsutsui # note ${MAKESUM} will be calculated in src/etc/Makefile 401.1Stsutsui 411.1Stsutsuirelease: 421.1Stsutsui 43