Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/etc.evbarm add beagleboard
details: https://anonhg.NetBSD.org/src/rev/4d39e4acfc3c
branches: trunk
changeset: 784819:4d39e4acfc3c
user: christos <christos%NetBSD.org@localhost>
date: Sun Feb 10 16:40:21 2013 +0000
description:
add beagleboard
diffstat:
etc/etc.evbarm/Makefile.inc | 37 +++++++++++++++++++++++--------------
1 files changed, 23 insertions(+), 14 deletions(-)
diffs (69 lines):
diff -r 063b187e952b -r 4d39e4acfc3c etc/etc.evbarm/Makefile.inc
--- a/etc/etc.evbarm/Makefile.inc Sun Feb 10 16:13:23 2013 +0000
+++ b/etc/etc.evbarm/Makefile.inc Sun Feb 10 16:40:21 2013 +0000
@@ -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 @@
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 @@
.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 @@
KERNEL_SETS+= IXM1200 NSLU2
.endif
+snap_md_post: ${SNAP_MD_POST_DEPS}
+
KERNEL_SUFFIXES= bin srec ub
INSTALLATION_DIRS+= binary/gzimg \
Home |
Main Index |
Thread Index |
Old Index