Allow the name of the gzboot image to be different from the name
of the kernel configuration.
This commit is contained in:
parent
a29c20f490
commit
f897638a44
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.4 2002/04/24 21:09:57 thorpej Exp $
|
||||
# $NetBSD: Makefile,v 1.5 2002/04/24 21:17:31 thorpej Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
.include "${_SRC_TOP_}/distrib/Makefile.inc"
|
||||
|
@ -7,27 +7,28 @@
|
|||
|
||||
|
||||
# TARGETS is a list of:
|
||||
# KERNEL_name RELOC_ADDR WHICH_kernel
|
||||
# KERNEL_name GZBOOT_name RELOC_ADDR WHICH_kernel
|
||||
#
|
||||
TARGETS= IQ80310 0x00080000 netbsd \
|
||||
IQ80321 0xf0080000 netbsd
|
||||
TARGETS= IQ80310 IQ80310 0x00080000 netbsd \
|
||||
IQ80321 IQ80321 0xf0080000 netbsd
|
||||
|
||||
.for K R W in ${TARGETS} # {
|
||||
.for K G R W in ${TARGETS} # {
|
||||
|
||||
GZB${K}DIR!= cd ${.CURDIR}/../gzboot_${K}_flash_${R} && ${PRINTOBJDIR}
|
||||
GZB${K}= ${GZB${K}DIR}/gzboot_${K}_${R}.sym
|
||||
GZB${G}DIR!= cd ${.CURDIR}/../gzboot_${G}_flash_${R} && ${PRINTOBJDIR}
|
||||
GZB${G}= ${GZB${K}DIR}/gzboot_${G}_${R}.sym
|
||||
|
||||
GZIMGS+= gzimg_${K}_flash_${R}.gz
|
||||
GZIMGS+= gzimg_${G}_flash_${R}.gz
|
||||
|
||||
gzimg_${K}_flash_${R}.gz: .NOTMAIN ${GZB${K}} ${KERNOBJDIR}/${K}/${W}.bin
|
||||
gzimg_${G}_flash_${R}.gz: .NOTMAIN ${GZB${G}} ${KERNOBJDIR}/${K}/${W}.bin
|
||||
@echo "Populating ${.TARGET}"
|
||||
cp ${KERNOBJDIR}/${K}/${W}.bin netbsd.tmp
|
||||
gzip -9f netbsd.tmp
|
||||
cp ${GZB${K}} gzboot.sym
|
||||
cp ${GZB${G}} gzboot.sym
|
||||
${MDSETIMAGE} -v -s gzboot.sym netbsd.tmp.gz
|
||||
${OBJCOPY} -O binary gzboot.sym gzboot.bin
|
||||
gzip -9f gzboot.bin
|
||||
mv gzboot.bin.gz ${.TARGET}
|
||||
rm gzboot.sym netbsd.tmp.gz
|
||||
|
||||
.endfor # }
|
||||
|
||||
|
|
Loading…
Reference in New Issue