2017-01-07 19:29:04 +03:00
|
|
|
# $NetBSD: Makefile.inc,v 1.81 2017/01/07 16:29:04 kiyohara Exp $
|
2001-11-30 01:46:42 +03:00
|
|
|
#
|
|
|
|
# etc.evbarm/Makefile.inc -- evbarm-specific etc Makefile targets
|
|
|
|
#
|
|
|
|
|
2013-02-09 22:49:55 +04:00
|
|
|
MKIMAGE= ${NETBSDSRCDIR}/distrib/utils/embedded/mkimage
|
|
|
|
|
2007-07-24 14:49:23 +04:00
|
|
|
# If you change the list of distributed kernels, don't forget
|
|
|
|
# to update the release documentation in distrib/notes/common/contents
|
2012-08-06 11:51:13 +04:00
|
|
|
EVBARM_BOARDS=
|
2013-08-06 09:57:37 +04:00
|
|
|
.for i in armv4 xscale armv5t armv6 armv7
|
|
|
|
EVBARM_BOARDS.${i}=
|
|
|
|
.endfor
|
2007-07-24 14:49:23 +04:00
|
|
|
|
2013-08-06 09:57:37 +04:00
|
|
|
.if !empty(MACHINE_ARCH:M*eb)
|
2015-07-15 14:27:13 +03:00
|
|
|
IMAGEENDIAN= be
|
2013-08-06 09:57:37 +04:00
|
|
|
# big endian boards
|
2013-08-07 10:09:32 +04:00
|
|
|
KERNEL_SETS.armv4+= IXM1200
|
2013-08-06 09:57:37 +04:00
|
|
|
EVBARM_BOARDS.xscale+= ADI_BRH
|
|
|
|
KERNEL_SETS.xscale+= NSLU2
|
2015-05-15 09:51:24 +03:00
|
|
|
EVBARM_BOARDS.armv7+= ALLWINNER_A80
|
|
|
|
EVBARM_BOARDS.armv7hf+= ALLWINNER_A80
|
2013-08-06 09:57:37 +04:00
|
|
|
EVBARM_BOARDS.armv7+= BCM5301X
|
2014-03-01 05:51:01 +04:00
|
|
|
EVBARM_BOARDS.armv7hf+= BCM5301X
|
2014-03-30 20:00:48 +04:00
|
|
|
#EVBARM_BOARDS.armv7+= BCM56340
|
|
|
|
#EVBARM_BOARDS.armv7hf+= BCM56340
|
2014-09-08 00:17:57 +04:00
|
|
|
EVBARM_BOARDS.armv7+= BPI
|
|
|
|
EVBARM_BOARDS.armv7hf+= BPI
|
2014-03-01 05:51:01 +04:00
|
|
|
EVBARM_BOARDS.armv7+= CUBIEBOARD
|
|
|
|
EVBARM_BOARDS.armv7hf+= CUBIEBOARD
|
2014-09-10 09:03:50 +04:00
|
|
|
EVBARM_BOARDS.armv7+= CUBIETRUCK
|
|
|
|
EVBARM_BOARDS.armv7hf+= CUBIETRUCK
|
2014-10-13 18:01:49 +04:00
|
|
|
EVBARM_BOARDS.armv7+= HUMMINGBIRD_A31
|
|
|
|
EVBARM_BOARDS.armv7hf+= HUMMINGBIRD_A31
|
2013-08-06 09:57:37 +04:00
|
|
|
.else
|
2015-07-15 14:27:13 +03:00
|
|
|
IMAGEENDIAN= le
|
2013-08-06 09:57:37 +04:00
|
|
|
# little endian boards
|
|
|
|
#EVBARM_BOARDS.armv4+= ARMADILLO210
|
|
|
|
#EVBARM_BOARDS.armv4+= ARMADILLO9
|
|
|
|
EVBARM_BOARDS.armv4+= GEMINI
|
|
|
|
EVBARM_BOARDS.armv4+= INTEGRATOR
|
2015-01-27 23:26:34 +03:00
|
|
|
EVBARM_BOARDS.armv4+= INTEGRATOR_CP
|
2013-08-07 10:09:32 +04:00
|
|
|
KERNEL_SETS.armv4+= IXM1200
|
2013-08-06 09:57:37 +04:00
|
|
|
#EVBARM_BOARDS.armv4+= MINI2440
|
|
|
|
#EVBARM_BOARDS.armv4+= MPCSA_GENERIC
|
|
|
|
#EVBARM_BOARDS.armv4+= NAPPI
|
|
|
|
EVBARM_BOARDS.armv4+= SMDK2410
|
|
|
|
EVBARM_BOARDS.armv4+= SMDK2800
|
|
|
|
EVBARM_BOARDS.armv4+= TS7200
|
|
|
|
EVBARM_BOARDS.xscale+= ADI_BRH
|
|
|
|
EVBARM_BOARDS.xscale+= CP3100
|
|
|
|
EVBARM_BOARDS.xscale+= GUMSTIX
|
|
|
|
KERNEL_SETS.xscale+= HDL_G
|
|
|
|
EVBARM_BOARDS.xscale+= IQ80310
|
|
|
|
EVBARM_BOARDS.xscale+= IQ80321
|
|
|
|
#EVBARM_BOARDS.xscale+= LUBBOCK
|
|
|
|
EVBARM_BOARDS.xscale+= TEAMASA_NPWR
|
|
|
|
EVBARM_BOARDS.xscale+= TWINTAIL
|
|
|
|
#EVBARM_BOARDS.xscale+= VIPER
|
|
|
|
#EVBARM_BOARDS.xscale+= ZAO425
|
|
|
|
#EVBARM_BOARDS.armv5t+= DNS323
|
|
|
|
#EVBARM_BOARDS.armv5t+= HPT5325
|
|
|
|
#EVBARM_BOARDS.armv5t+= IMX21_OLINUXINO
|
|
|
|
EVBARM_BOARDS.armv5t+= KUROBOX_PRO
|
|
|
|
#EVBARM_BOARDS.armv5t+= MARVELL_NAS
|
|
|
|
#EVBARM_BOARDS.armv5t+= MMNET_GENERIC
|
|
|
|
EVBARM_BOARDS.armv5t+= MV2120
|
|
|
|
#EVBARM_BOARDS.armv5t+= OPENBLOCKS_A6
|
|
|
|
EVBARM_BOARDS.armv5t+= OPENRD
|
|
|
|
#EVBARM_BOARDS.armv5t+= OSK5912
|
|
|
|
EVBARM_BOARDS.armv5t+= SHEEVAPLUG
|
|
|
|
#EVBARM_BOARDS.armv6+= IMX31LITE
|
|
|
|
#EVBARM_BOARDS.armv6hf+= IMX31LITE
|
|
|
|
EVBARM_BOARDS.armv6+= RPI
|
|
|
|
EVBARM_BOARDS.armv6hf+= RPI
|
2015-03-06 14:11:55 +03:00
|
|
|
KERNEL_SETS.armv6+= RPI2
|
|
|
|
KERNEL_SETS.armv6hf+= RPI2
|
2013-08-08 00:57:22 +04:00
|
|
|
EVBARM_BOARDS.armv6+= TISDP2420
|
|
|
|
EVBARM_BOARDS.armv6hf+= TISDP2420
|
|
|
|
#EVBARM_BOARDS.armv6+= TISDP2430
|
2015-05-15 09:11:06 +03:00
|
|
|
EVBARM_BOARDS.armv7+= ALLWINNER_A80
|
|
|
|
EVBARM_BOARDS.armv7hf+= ALLWINNER_A80
|
2013-08-06 09:57:37 +04:00
|
|
|
EVBARM_BOARDS.armv7+= ARMADAXP
|
2014-03-30 20:00:48 +04:00
|
|
|
EVBARM_BOARDS.armv7hf+= ARMADAXP
|
2013-08-06 09:57:37 +04:00
|
|
|
EVBARM_BOARDS.armv7+= BCM5301X
|
|
|
|
EVBARM_BOARDS.armv7hf+= BCM5301X
|
2014-03-30 20:00:48 +04:00
|
|
|
#EVBARM_BOARDS.armv7+= BCM56340
|
|
|
|
#EVBARM_BOARDS.armv7hf+= BCM56340
|
2013-08-06 09:57:37 +04:00
|
|
|
EVBARM_BOARDS.armv7+= BEAGLEBOARD
|
|
|
|
EVBARM_BOARDS.armv7hf+= BEAGLEBOARD
|
|
|
|
EVBARM_BOARDS.armv7+= BEAGLEBOARDXM
|
|
|
|
EVBARM_BOARDS.armv7hf+= BEAGLEBOARDXM
|
|
|
|
EVBARM_BOARDS.armv7+= BEAGLEBONE
|
|
|
|
EVBARM_BOARDS.armv7hf+= BEAGLEBONE
|
2014-09-08 00:17:57 +04:00
|
|
|
EVBARM_BOARDS.armv7+= BPI
|
|
|
|
EVBARM_BOARDS.armv7hf+= BPI
|
2013-09-08 20:34:06 +04:00
|
|
|
EVBARM_BOARDS.armv7+= CUBIEBOARD
|
|
|
|
EVBARM_BOARDS.armv7hf+= CUBIEBOARD
|
2014-09-10 09:03:50 +04:00
|
|
|
EVBARM_BOARDS.armv7+= CUBIETRUCK
|
|
|
|
EVBARM_BOARDS.armv7hf+= CUBIETRUCK
|
2017-01-07 19:29:04 +03:00
|
|
|
EVBARM_BOARDS.armv7+= CUBOX
|
|
|
|
EVBARM_BOARDS.armv7hf+= CUBOX
|
2015-07-18 03:57:35 +03:00
|
|
|
EVBARM_BOARDS.armv7+= CUBOX-I
|
|
|
|
EVBARM_BOARDS.armv7hf+= CUBOX-I
|
2014-10-13 18:01:49 +04:00
|
|
|
EVBARM_BOARDS.armv7+= HUMMINGBIRD_A31
|
|
|
|
EVBARM_BOARDS.armv7hf+= HUMMINGBIRD_A31
|
2013-08-06 09:57:37 +04:00
|
|
|
#EVBARM_BOARDS.armv7+= IGEPV2
|
2015-12-14 02:02:56 +03:00
|
|
|
EVBARM_BOARDS.armv7+= TEGRA
|
|
|
|
EVBARM_BOARDS.armv7hf+= TEGRA
|
2016-05-17 09:44:45 +03:00
|
|
|
EVBARM_BOARDS.armv7+= ARMADILLO-IOT-G3
|
|
|
|
EVBARM_BOARDS.armv7hf+= ARMADILLO-IOT-G3
|
2015-05-15 09:11:06 +03:00
|
|
|
EVBARM_BOARDS.armv7+= KOBO
|
|
|
|
EVBARM_BOARDS.armv7hf+= KOBO
|
2014-03-30 20:00:48 +04:00
|
|
|
EVBARM_BOARDS.armv7+= MIRABOX
|
|
|
|
EVBARM_BOARDS.armv7hf+= MIRABOX
|
2013-08-06 09:57:37 +04:00
|
|
|
#EVBARM_BOARDS.armv7+= N900
|
2014-03-07 16:35:14 +04:00
|
|
|
EVBARM_BOARDS.armv7+= NETWALKER
|
|
|
|
EVBARM_BOARDS.armv7hf+= NETWALKER
|
2015-03-17 01:18:14 +03:00
|
|
|
EVBARM_BOARDS.armv7+= ODROID-C1
|
|
|
|
EVBARM_BOARDS.armv7hf+= ODROID-C1
|
2014-03-30 20:00:48 +04:00
|
|
|
EVBARM_BOARDS.armv7+= OMAP5EVM
|
|
|
|
EVBARM_BOARDS.armv7hf+= OMAP5EVM
|
2015-02-26 17:00:17 +03:00
|
|
|
EVBARM_BOARDS.armv7+= OVERO
|
|
|
|
EVBARM_BOARDS.armv7hf+= OVERO
|
2014-03-30 20:00:48 +04:00
|
|
|
EVBARM_BOARDS.armv7+= PANDABOARD
|
|
|
|
EVBARM_BOARDS.armv7hf+= PANDABOARD
|
2015-03-06 14:11:55 +03:00
|
|
|
EVBARM_BOARDS.armv7+= RPI2
|
|
|
|
EVBARM_BOARDS.armv7hf+= RPI2
|
2012-08-06 11:51:13 +04:00
|
|
|
.endif
|
|
|
|
|
2013-02-10 20:40:21 +04:00
|
|
|
IMAGE.rel= ${RELEASEDIR}/${RELEASEMACHINEDIR}
|
2013-02-13 08:22:36 +04:00
|
|
|
IMAGE.dir= ${IMAGE.rel}/binary/gzimg
|
2013-02-10 20:40:21 +04:00
|
|
|
IMAGE.kern= ${IMAGE.rel}/binary/kernel
|
2013-03-20 02:16:52 +04:00
|
|
|
IMAGE.instk= ${IMAGE.rel}/installation/instkernel
|
2013-02-10 20:40:21 +04:00
|
|
|
|
|
|
|
__mkimage: .USE
|
|
|
|
TOOL_MAKEFS=${TOOL_MAKEFS} \
|
|
|
|
TOOL_DISKLABEL=${TOOL_DISKLABEL} \
|
|
|
|
TOOL_FDISK=${TOOL_FDISK} \
|
2013-06-16 17:47:42 +04:00
|
|
|
TOOL_GZIP=${TOOL_GZIP} \
|
2013-02-10 20:40:21 +04:00
|
|
|
TOOL_MKNOD=${TOOL_MKNOD} \
|
|
|
|
TOOL_PAX=${TOOL_PAX} \
|
2015-05-22 04:18:05 +03:00
|
|
|
TOOL_MKUBOOTIMAGE=${TOOL_MKUBOOTIMAGE} \
|
2013-02-10 20:40:21 +04:00
|
|
|
TOOL_MTREE=${TOOL_MTREE} \
|
2013-02-21 19:13:10 +04:00
|
|
|
HOST_SH=${HOST_SH} \
|
|
|
|
${HOST_SH} ${MKIMAGE} -x -h ${.TARGET:S/smp_//} -D ${DESTDIR} \
|
2015-07-15 14:27:13 +03:00
|
|
|
-S ${NETBSDSRCDIR} -B ${IMAGEENDIAN} ${MKI_OPTS.${.TARGET}} \
|
2013-02-11 02:03:49 +04:00
|
|
|
${IMAGE.dir}/${.TARGET:S/smp_//}.img.gz
|
2013-02-10 20:40:21 +04:00
|
|
|
|
2013-08-06 09:57:37 +04:00
|
|
|
ARCHES.arm= armv4 xscale armv5t armv6 armv7
|
2013-08-06 21:53:55 +04:00
|
|
|
ARCHES.armeb= armv4 xscale armv5t armv6
|
2013-08-06 09:57:37 +04:00
|
|
|
ARCHES.earm= xscale armv5t armv6 armv7
|
2013-08-06 21:53:55 +04:00
|
|
|
ARCHES.earmeb= xscale armv5t armv6
|
2013-08-06 09:57:37 +04:00
|
|
|
ARCHES.earmhf= armv6hf armv7hf
|
2013-08-06 21:53:55 +04:00
|
|
|
ARCHES.earmhfeb= armv6hf
|
2013-08-06 09:57:37 +04:00
|
|
|
ARCHES.earmv4= armv4
|
2013-08-06 21:53:55 +04:00
|
|
|
ARCHES.earmv4eb= armv4
|
|
|
|
ARCHES.earmv5= xscale armv5t
|
|
|
|
ARCHES.earmv5eb= xscale armv5t
|
2013-08-06 09:57:37 +04:00
|
|
|
ARCHES.earmv6= armv6
|
|
|
|
ARCHES.earmv6hf= armv6hf
|
2013-08-06 21:53:55 +04:00
|
|
|
ARCHES.earmv6eb= armv6
|
|
|
|
ARCHES.earmv6hfeb= armv6hf
|
2013-08-06 09:57:37 +04:00
|
|
|
ARCHES.earmv7= armv7
|
|
|
|
ARCHES.earmv7hf= armv7hf
|
2013-08-06 21:53:55 +04:00
|
|
|
ARCHES.earmv7eb= armv7
|
|
|
|
ARCHES.earmv7hfeb= armv7hf
|
|
|
|
.for arch in ${ARCHES.${MACHINE_ARCH}}
|
2013-08-06 09:57:37 +04:00
|
|
|
.for board in ${EVBARM_BOARDS.${arch}}
|
2003-04-10 06:22:06 +04:00
|
|
|
KERNEL_SETS+= ${board}
|
|
|
|
BUILD_KERNELS+= ${board}_INSTALL
|
|
|
|
.endfor
|
2013-08-06 09:57:37 +04:00
|
|
|
KERNEL_SETS+= ${KERNEL_SETS.${arch}}
|
|
|
|
.endfor
|
2003-04-10 06:22:06 +04:00
|
|
|
|
2015-04-09 13:55:23 +03:00
|
|
|
.if !empty(MACHINE_ARCH:M*armv7*) && empty(ALL_KERNELS)
|
|
|
|
smp_armv7: __mkimage
|
|
|
|
MKI_OPTS.smp_armv7= -K ${IMAGE.kern}
|
|
|
|
SNAP_MD_POST_DEPS+= smp_armv7
|
2012-08-06 11:51:13 +04:00
|
|
|
.endif
|
|
|
|
|
2013-08-06 09:57:37 +04:00
|
|
|
.if !empty(KERNEL_SETS:MRPI)
|
2015-04-09 13:55:23 +03:00
|
|
|
smp_rpi: __mkimage
|
2013-03-21 19:16:43 +04:00
|
|
|
.if empty(ALL_KERNELS) || !empty(ALL_KERNELS:MRPI)
|
2015-04-09 13:55:23 +03:00
|
|
|
MKI_OPTS.smp_rpi= -K ${IMAGE.kern}/netbsd-RPI.bin.gz
|
2013-03-21 19:16:43 +04:00
|
|
|
SNAP_MD_POST_DEPS+= smp_rpi
|
|
|
|
.endif
|
2013-03-20 02:16:52 +04:00
|
|
|
smp_rpi_inst: ${IMAGE.instk}/netbsd-RPI_INSTALL.bin.gz __mkimage
|
2013-03-21 19:16:43 +04:00
|
|
|
.if empty(ALL_KERNELS) || !empty(ALL_KERNELS:MRPI_INSTALL)
|
2015-04-09 13:55:23 +03:00
|
|
|
MKI_OPTS.smp_rpi_inst= -b -K ${IMAGE.instk}/netbsd-RPI_INSTALL.bin.gz
|
2013-03-21 19:16:43 +04:00
|
|
|
SNAP_MD_POST_DEPS+= smp_rpi_inst
|
2012-08-06 11:51:13 +04:00
|
|
|
.endif
|
2013-03-17 16:19:57 +04:00
|
|
|
.endif
|
2012-08-06 11:51:13 +04:00
|
|
|
|
2013-02-11 01:36:31 +04:00
|
|
|
snap_md_post: check_DESTDIR check_RELEASEDIR snap_post .WAIT ${SNAP_MD_POST_DEPS}
|
2013-02-10 20:40:21 +04:00
|
|
|
|
2012-08-03 13:11:31 +04:00
|
|
|
KERNEL_SUFFIXES= bin srec ub
|
2002-04-13 04:51:57 +04:00
|
|
|
|
2002-05-02 19:09:40 +04:00
|
|
|
INSTALLATION_DIRS+= binary/gzimg \
|
2002-04-13 02:10:21 +04:00
|
|
|
installation/instkernel
|