Module Name:    src
Committed By:   christos
Date:           Sun Feb 10 16:40:21 UTC 2013

Modified Files:
        src/etc/etc.evbarm: Makefile.inc

Log Message:
add beagleboard


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/etc/etc.evbarm/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/etc/etc.evbarm/Makefile.inc
diff -u src/etc/etc.evbarm/Makefile.inc:1.39 src/etc/etc.evbarm/Makefile.inc:1.40
--- src/etc/etc.evbarm/Makefile.inc:1.39	Sun Feb 10 09:26:32 2013
+++ src/etc/etc.evbarm/Makefile.inc	Sun Feb 10 11:40:21 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.39 2013/02/10 14:26:32 christos Exp $
+#	$NetBSD: Makefile.inc,v 1.40 2013/02/10 16:40:21 christos Exp $
 #
 #	etc.evbarm/Makefile.inc -- evbarm-specific etc Makefile targets
 #
@@ -16,10 +16,28 @@ EVBARM_BOARDS+=		ADI_BRH CP3100 GEMINI G
 			SMDK2800 TEAMASA_NPWR TS7200 TWINTAIL
 .endif
 
+
+IMAGE.rel=	${RELEASEDIR}/${RELEASEMACHINEDIR}
+IMAGE.dir=	${IMAGE.rel}/binary/gzimg/
+IMAGE.kern=	${IMAGE.rel}/binary/kernel
+
+__mkimage: .USE
+	TOOL_MAKEFS=${TOOL_MAKEFS} \
+	TOOL_DISKLABEL=${TOOL_DISKLABEL} \
+	TOOL_FDISK=${TOOL_FDISK} \
+	TOOL_MKNOD=${TOOL_MKNOD} \
+	TOOL_PAX=${TOOL_PAX} \
+	TOOL_MTREE=${TOOL_MTREE} \
+	${MKIMAGE} -x -h ${.TARGET:S/smp_//} -D ${DESTDIR} \
+	    -K ${.ALLSRC} -S ${NETBSDSRCDIR} \
+	    ${IMAGE.dir}/${.TARGET:/smp_//}.img.gz
+
 .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "earm" \
     || ${MACHINE_ARCH} == "earmhf"
 # Little endian platforms with VFP
 EVBARM_BOARDS+=		BCM5301X BEAGLEBOARD BEAGLEBOARDXM BEAGLEBONE TISDP2420
+smp_beagleboard: ${IMAGE.kern}/kernel/netbsd-BEAGLEBOARD.ub.gz __mkimage
+SNAP_MD_POST_DEPS+=	smp_beagleboard
 .endif
 .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "earm"
 # Little endian platforms (armv5t+)
@@ -44,19 +62,8 @@ KERNEL_SETS+=		IXM1200 HDL_G
 .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "earm" \
     || ${MACHINE_ARCH} == "earmhf"
 EXTRA_KERNELS+=		RPI
-RPI.rel=		${RELEASEDIR}/${RELEASEMACHINEDIR}
-RPI.kernel=		${RPI.rel}/binary/kernel/netbsd-RPI.bin.gz
-RPI.img=		${RPI.rel}/binary/gzimg/rpi.img.gz
-# The first 3 tools are for mkimage, the last 3 for MAKEDEV
-snap_md_post:
-	TOOL_MAKEFS=${TOOL_MAKEFS} \
-	TOOL_DISKLABEL=${TOOL_DISKLABEL} \
-	TOOL_FDISK=${TOOL_FDISK} \
-	TOOL_MKNOD=${TOOL_MKNOD} \
-	TOOL_PAX=${TOOL_PAX} \
-	TOOL_MTREE=${TOOL_MTREE} \
-	${MKIMAGE} -x -h rpi -D ${DESTDIR} -K ${RPI.kernel} \
-	    -S ${NETBSDSRCDIR} ${RPI.img}
+smp_rpi: ${IMAGE.kern}/kernel/netbsd-RPI.bin.gz __mkimage
+SNAP_MD_POST_DEPS+=	smp_rpi
 .endif
 
 .if ${MACHINE_ARCH} == "armeb"
@@ -64,6 +71,8 @@ snap_md_post:
 KERNEL_SETS+=		IXM1200 NSLU2
 .endif
 
+snap_md_post: ${SNAP_MD_POST_DEPS}
+
 KERNEL_SUFFIXES=	bin srec ub
 
 INSTALLATION_DIRS+=	binary/gzimg		\

Reply via email to