Module Name: src Committed By: matt Date: Fri May 15 06:50:41 UTC 2015
Modified Files: src/distrib/evbarm/instkernel/instkernel: Makefile Log Message: Don't keep two list of build kernels. include etc/etc.evbarm/Makefile.inc and use it to generate list of MDSETTARGETS. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/distrib/evbarm/instkernel/instkernel/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/distrib/evbarm/instkernel/instkernel/Makefile diff -u src/distrib/evbarm/instkernel/instkernel/Makefile:1.26 src/distrib/evbarm/instkernel/instkernel/Makefile:1.27 --- src/distrib/evbarm/instkernel/instkernel/Makefile:1.26 Fri May 15 06:27:48 2015 +++ src/distrib/evbarm/instkernel/instkernel/Makefile Fri May 15 06:50:41 2015 @@ -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 @@ RAMDISK= ${RAMDISKDIR}/ramdisk.fs 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 @@ MDSET_SUFFIXES.-= srec create-srec bin 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>