84d9c625bf
- Fix for possible unset uid/gid in toproto - Fix for default mtree style - Update libelf - Importing libexecinfo - Resynchronize GCC, mpc, gmp, mpfr - build.sh: Replace params with show-params. This has been done as the make target has been renamed in the same way, while a new target named params has been added. This new target generates a file containing all the parameters, instead of printing it on the console. - Update test48 with new etc/services (Fix by Ben Gras <ben@minix3.org) get getservbyport() out of the inner loop Change-Id: Ie6ad5226fa2621ff9f0dee8782ea48f9443d2091
51 lines
1.2 KiB
Text
51 lines
1.2 KiB
Text
# $NetBSD: Makefile.liveimage,v 1.3 2012/11/03 14:25:32 tsutsui Exp $
|
|
#
|
|
# Common Makefile to create a bootable FS image for USB flash or emulators
|
|
#
|
|
|
|
#
|
|
# Required variables:
|
|
# LIVEIMGBASE
|
|
# Basename of the liveimage
|
|
#
|
|
# Optional variables:
|
|
# LIVEIMAGEMB
|
|
# target image size in MB
|
|
# (if empty default IMAGEMB in Makefile.bootimage is used)
|
|
#
|
|
# See Makefile.bootimage for other variables.
|
|
#
|
|
|
|
.if !target(check_LIVEIMGBASE)
|
|
check_LIVEIMGBASE: .PHONY .NOTMAIN
|
|
.if !defined(LIVEIMGBASE)
|
|
@echo "Error: LIVEIMGBASE is not set"
|
|
@false
|
|
.else
|
|
@true
|
|
.endif
|
|
.endif
|
|
|
|
.if defined(LIVEIMAGEMB)
|
|
IMAGEMB= ${LIVEIMAGEMB}
|
|
.endif
|
|
|
|
IMGBASE= ${LIVEIMGBASE}
|
|
|
|
.include "${NETBSDSRCDIR}/distrib/common/bootimage/Makefile.bootimage"
|
|
|
|
# LIVEIMG_RELEASEDIR specifies where to install ${LIVEIMGBASE}.img.gz.
|
|
# This should be passed from etc/Makefile or etc/etc.${MACHINE}/Makefile.inc
|
|
# but also set default here for manual builds.
|
|
LIVEIMG_RELEASEDIR?= ${RELEASEMACHINEDIR}/installation/liveimage
|
|
|
|
# should be defined elsewhere?
|
|
MKDIR?= mkdir -p
|
|
|
|
live_image: check_LIVEIMGBASE check_RELEASEDIR ${IMGBASE}.img.gz
|
|
${MKDIR} ${LIVEIMG_RELEASEDIR}
|
|
${RELEASE_INSTALL} ${IMGBASE}.img.gz ${LIVEIMG_RELEASEDIR}
|
|
# note ${MAKESUM} will be calculated in src/etc/Makefile
|
|
|
|
release:
|
|
|