Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/evbarm/instkernel/instkernel Don't keep two list of ...
details: https://anonhg.NetBSD.org/src/rev/136c81078393
branches: trunk
changeset: 338215:136c81078393
user: matt <matt%NetBSD.org@localhost>
date: Fri May 15 06:50:41 2015 +0000
description:
Don't keep two list of build kernels. include etc/etc.evbarm/Makefile.inc
and use it to generate list of MDSETTARGETS.
diffstat:
distrib/evbarm/instkernel/instkernel/Makefile | 66 +++-----------------------
1 files changed, 9 insertions(+), 57 deletions(-)
diffs (89 lines):
diff -r b8675827a03f -r 136c81078393 distrib/evbarm/instkernel/instkernel/Makefile
--- a/distrib/evbarm/instkernel/instkernel/Makefile Fri May 15 06:27:48 2015 +0000
+++ b/distrib/evbarm/instkernel/instkernel/Makefile Fri May 15 06:50:41 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2015/05/15 06:27:48 matt Exp $
+# $NetBSD: Makefile,v 1.27 2015/05/15 06:50:41 matt Exp $
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
@@ -8,63 +8,16 @@
SSHRAMDISKDIR!= cd ${.CURDIR}/../sshramdisk && ${PRINTOBJDIR}
SSHRAMDISK= ${SSHRAMDISKDIR}/sshramdisk.fs
-.if ${MACHINE_ARCH} == "arm"
-# Little endian platforms.
-MDSETTARGETS= ADI_BRH_INSTALL ${RAMDISK} - \
- CP3100_INSTALL ${RAMDISK} - \
- GEMINI_INSTALL ${RAMDISK} - \
- GUMSTIX_INSTALL ${RAMDISK} - \
- INTEGRATOR_INSTALL ${RAMDISK} - \
- IQ80310_INSTALL ${RAMDISK} - \
- IQ80321_INSTALL ${RAMDISK} - \
- MINI2440_INSTALL ${RAMDISK} - \
- OPENRD_INSTALL ${RAMDISK} - \
- TS7200_INSTALL ${RAMDISK} - \
- TEAMASA_NPWR_INSTALL ${RAMDISK} - \
- KUROBOX_PRO_INSTALL ${RAMDISK} -
-.elif ${MACHINE_ARCH} == "armeb"
-# Big endian platforms.
-MDSETTARGETS= ADI_BRH_INSTALL ${RAMDISK} -
-.endif
-
-.if \
- ${MACHINE_ARCH} == "arm" || \
- ${MACHINE_ARCH} == "earm" || \
- ${MACHINE_ARCH} == "earmhf" || \
- ${MACHINE_ARCH} == "earmv6" || \
- ${MACHINE_ARCH} == "earmv6hf"
-# Little endian (any ABI) ARMv6 platforms.
-MDSETTARGETS+= RPI_INSTALL ${SSHRAMDISK} -
-.endif
+.include "${NETBSDSRCDIR}/etc/etc.evbarm/Makefile.inc"
-.if \
- ${MACHINE_ARCH} == "arm" || \
- ${MACHINE_ARCH} == "earm" || \
- ${MACHINE_ARCH} == "earmhf" || \
- ${MACHINE_ARCH} == "earmv7" || \
- ${MACHINE_ARCH} == "earmv7hf"
-# Little endian (any ABI) ARMv7 platforms.
-MDSETTARGETS+= \
- ALLWINNER_A80_INSTALL ${RAMDISK} - \
- ARMADAXP_INSTALL ${RAMDISK} - \
- BCM5301X_INSTALL ${RAMDISK} - \
- BEAGLEBONE_INSTALL ${RAMDISK} - \
- BEAGLEBOARD_INSTALL ${RAMDISK} - \
- BEAGLEBOARDXM_INSTALL ${RAMDISK} - \
- BPI_INSTALL ${RAMDISK} - \
- CUBIEBOARD_INSTALL ${RAMDISK} - \
- CUBIETRUCK_INSTALL ${RAMDISK} - \
- HUMMINGBIRD_A31_INSTALL ${RAMDISK} - \
- JETSONTK1_INSTALL ${RAMDISK} - \
- KOBO_INSTALL ${RAMDISK} - \
- MIRABOX_INSTALL ${RAMDISK} - \
- NETWALKER_INSTALL ${RAMDISK} - \
- ODROID-C1_INSTALL ${RAMDISK} - \
- OMAP5EVM_INSTALL ${RAMDISK} - \
- OVERO_INSTALL ${RAMDISK} - \
- PANDABOARD_INSTALL ${RAMDISK} - \
- RPI2_INSTALL ${SSHRAMDISK} -
+MDSETTARGETS=
+.for i in ${BUILD_KERNELS:M*_INSTALL}
+.if ${i} == "RPI_INSTALL" || ${i} == "RPI2_INSTALL"
+MDSETTARGETS+= ${i} ${SSHRAMDISK} -
+.else
+MDSETTARGETS+= ${i} ${RAMDISK} -
.endif
+.endfor
MDSET_RELEASEDIR= installation/instkernel
@@ -72,7 +25,6 @@
create-srec= ${OBJCOPY} -O srec ${.TARGET:R} ${.TARGET}
create-bin= ${OBJCOPY} -O binary ${.TARGET:R} ${.TARGET}
-
.include "${DISTRIBDIR}/common/Makefile.mdset"
.include <bsd.prog.mk>
Home |
Main Index |
Thread Index |
Old Index