Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/cats/instkernel convert to distrib/common/Makefile.m...



details:   https://anonhg.NetBSD.org/src/rev/2c5269d8c757
branches:  trunk
changeset: 525460:2c5269d8c757
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu Apr 11 22:53:02 2002 +0000

description:
convert to distrib/common/Makefile.mdset

diffstat:

 distrib/cats/instkernel/Makefile |  50 +++++++--------------------------------
 1 files changed, 9 insertions(+), 41 deletions(-)

diffs (61 lines):

diff -r 6b929e393eab -r 2c5269d8c757 distrib/cats/instkernel/Makefile
--- a/distrib/cats/instkernel/Makefile  Thu Apr 11 21:47:36 2002 +0000
+++ b/distrib/cats/instkernel/Makefile  Thu Apr 11 22:53:02 2002 +0000
@@ -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
-#
-TARGETS=       INSTALL         ${RAMDISK}
+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"



Home | Main Index | Thread Index | Old Index