convert to distrib/common/Makefile.mdset
This commit is contained in:
parent
49df0c927f
commit
e940426c29
@ -1,48 +1,16 @@
|
||||
# $NetBSD: Makefile,v 1.1 2002/04/11 16:33:59 skrll Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2002/04/11 22:53:02 lukem Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
.include "${_SRC_TOP_}/distrib/Makefile.inc"
|
||||
|
||||
.include <bsd.kernobj.mk>
|
||||
|
||||
CLEANFILES= netbsd.tmp netbsd.tmp.gz
|
||||
|
||||
RAMDISKS= RAMDISK ramdisk
|
||||
|
||||
.for V F in ${RAMDISKS}
|
||||
${V}DIR!= cd ${.CURDIR}/../${F} && ${PRINTOBJDIR}
|
||||
${V}= ${${V}DIR}/${F}.fs
|
||||
.endfor
|
||||
|
||||
# create netbsd.*.gz targets
|
||||
#
|
||||
# TARGETS is a list of:
|
||||
# KERNEL_name fs-image
|
||||
#
|
||||
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
|
||||
RAMDISK= ${RAMDISKDIR}/ramdisk.fs
|
||||
TARGETS= INSTALL ${RAMDISK}
|
||||
|
||||
.for K R in ${TARGETS}
|
||||
KERNELS+= netbsd.${K}.gz
|
||||
KERNELSYMS+= netbsd.${K}.symbols
|
||||
CLEANFILES+= netbsd.${K}.gz netbsd.${K}.symbols
|
||||
netbsd.${K}.gz: .NOTMAIN ${KERNOBJDIR}/${K}/netbsd ${R}
|
||||
@echo "Populating ${.TARGET} with ${R}"
|
||||
cp ${KERNOBJDIR}/${K}/netbsd netbsd.tmp
|
||||
${MDSETIMAGE} -v netbsd.tmp ${R}
|
||||
${NM} netbsd.tmp > netbsd.${K}.symbols
|
||||
${STRIP} netbsd.tmp
|
||||
OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
|
||||
${_SRC_TOP_}/sys/arch/arm/conf/elf2aout.sh netbsd.tmp netbsd.tmp
|
||||
gzip -9 netbsd.tmp
|
||||
mv netbsd.tmp.gz ${.TARGET}
|
||||
.endfor
|
||||
INSTALL.post= OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
|
||||
${KERNSRCDIR}/arch/arm/conf/elf2aout.sh \
|
||||
netbsd.tmp netbsd.tmp
|
||||
|
||||
# do the work
|
||||
#
|
||||
realall: ${KERNELS}
|
||||
MDSETDIR= binary/kernel
|
||||
|
||||
release:
|
||||
-mkdir -p ${RELEASEDIR}/binary/kernel
|
||||
cp -p ${KERNELS} ${KERNELSYMS} ${RELEASEDIR}/binary/kernel
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
.include "${DISTRIBDIR}/common/Makefile.mdset"
|
||||
|
Loading…
Reference in New Issue
Block a user