diff --git a/distrib/shark/instkernel/instkernel/Makefile b/distrib/shark/instkernel/instkernel/Makefile index fefa63ce72e6..60b3f4310c55 100644 --- a/distrib/shark/instkernel/instkernel/Makefile +++ b/distrib/shark/instkernel/instkernel/Makefile @@ -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 .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 diff --git a/etc/etc.shark/Makefile.inc b/etc/etc.shark/Makefile.inc index eab0ed4d9aff..1ee6e866759d 100644 --- a/etc/etc.shark/Makefile.inc +++ b/etc/etc.shark/Makefile.inc @@ -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'