Convert shark's installation kernel image (netbsd-INSTALL) to a.out format
so that it can be loaded by the machine's firmware. Put the resulting image inside the 'installation/instkernel' release subdirectory, as the installation instructions explain. Fixes port-shark/35563.
This commit is contained in:
parent
476933786a
commit
a9a41f6c67
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.14 2003/09/21 00:19:31 matt Exp $
|
||||
# $NetBSD: Makefile,v 1.15 2007/03/10 17:57:41 jmmv Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
|
||||
@ -9,10 +9,16 @@ RAMDISK= ${RAMDISKDIR}/ramdisk.fs
|
||||
MDSETTARGETS= INSTALL ${RAMDISK} -
|
||||
MDSET_RELEASEDIR= binary/kernel
|
||||
|
||||
MDSET_POST.-= \
|
||||
MDSET_POST= \
|
||||
${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs -R .comment \
|
||||
${.TARGET} ${.TARGET}
|
||||
${.TARGET} ${.TARGET}.aout; \
|
||||
gzip -9c ${.TARGET}.aout >${.TARGET}.aout.gz
|
||||
|
||||
.include "${DISTRIBDIR}/common/Makefile.mdset"
|
||||
|
||||
.PHONY: release-aout-instkernel
|
||||
release-aout-instkernel:
|
||||
${RELEASE_INSTALL} netbsd-INSTALL.aout.gz \
|
||||
${RELEASEDIR}/${MACHINE}/installation/instkernel/netbsd.gz
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile.inc,v 1.7 2003/01/03 15:34:39 lukem Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.8 2007/03/10 17:57:41 jmmv Exp $
|
||||
#
|
||||
# etc.shark/Makefile.inc -- shark-specific etc Makefile targets
|
||||
#
|
||||
@ -11,4 +11,6 @@ BUILD_KERNELS= INSTALL
|
||||
INSTALLATION_DIRS+= installation/instkernel
|
||||
|
||||
snap_md_post:
|
||||
cd ${NETBSDSRCDIR}/distrib/shark/instkernel/instkernel && \
|
||||
${MAKE} release-aout-instkernel
|
||||
${MAKESUMS} -t ${RELEASEDIR}/${MACHINE}/installation/instkernel '*.gz'
|
||||
|
Loading…
Reference in New Issue
Block a user