NetBSD/etc/etc.evbarm/Makefile.inc

170 lines
4.6 KiB
PHP
Raw Normal View History

2020-05-24 17:44:11 +03:00
# $NetBSD: Makefile.inc,v 1.119 2020/05/24 14:44:11 jmcneill Exp $
#
# etc.evbarm/Makefile.inc -- evbarm-specific etc Makefile targets
#
2013-02-09 22:49:55 +04:00
MKIMAGE= ${NETBSDSRCDIR}/distrib/utils/embedded/mkimage
# 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=
.for i in armv4 xscale armv5t armv6 armv7 arm64
EVBARM_BOARDS.${i}=
.endfor
.if !empty(MACHINE_ARCH:M*eb)
IMAGEENDIAN= be
# big endian boards
2013-08-07 10:09:32 +04:00
KERNEL_SETS.armv4+= IXM1200
2018-10-21 10:08:40 +03:00
EVBARM_BOARDS.xscale+= ADI_BRH
KERNEL_SETS.xscale+= NSLU2
2018-10-21 10:08:40 +03:00
KERNEL_SETS.armv7+= GENERIC
KERNEL_SETS.armv7hf+= GENERIC
.else
IMAGEENDIAN= le
# 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
#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
2018-10-21 10:08:40 +03:00
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
2018-10-21 10:08:40 +03:00
#EVBARM_BOARDS.armv5t+= DNS323
#EVBARM_BOARDS.armv5t+= HPT5325
#EVBARM_BOARDS.armv5t+= IMX23_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
2018-10-21 10:08:40 +03:00
#EVBARM_BOARDS.armv6+= IMX31LITE
#EVBARM_BOARDS.armv6hf+= IMX31LITE
EVBARM_BOARDS.armv6+= RPI
EVBARM_BOARDS.armv6hf+= RPI
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
2018-10-21 10:08:40 +03:00
KERNEL_SETS.armv7+= GENERIC
KERNEL_SETS.armv7hf+= GENERIC
KERNEL_SETS.arm64+= GENERIC64
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
IMAGE.instk= ${IMAGE.rel}/installation/instkernel
2013-02-10 20:40:21 +04:00
__mkimage: .USE
TOOL_MAKE=${MAKE} \
2013-02-10 20:40:21 +04:00
TOOL_MAKEFS=${TOOL_MAKEFS} \
TOOL_DISKLABEL=${TOOL_DISKLABEL} \
TOOL_FDISK=${TOOL_FDISK} \
2020-05-24 17:44:11 +03:00
TOOL_GPT=${TOOL_GPT} \
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} \
HOST_SH=${HOST_SH} \
KERNOBJDIR=${KERNOBJDIR} \
MACHINE=${MACHINE} \
MKDTB=${MKDTB} \
${HOST_SH} ${MKIMAGE} -x -h ${.TARGET:S/smp_//} -D ${DESTDIR} \
-S ${NETBSDSRCDIR} -B ${IMAGEENDIAN} ${MKI_OPTS.${.TARGET}} \
${IMAGE.dir}/${.TARGET:S/smp_//}.img.gz
2013-02-10 20:40:21 +04:00
ARCHES.earmv4= armv4
ARCHES.earmv4eb= armv4
ARCHES.earmv5= xscale armv5t
ARCHES.earmv5eb= xscale armv5t
ARCHES.earmv6= armv6
ARCHES.earmv6hf= armv6hf
ARCHES.earmv6eb= armv6
ARCHES.earmv6hfeb= armv6hf
ARCHES.earmv7= armv7
ARCHES.earmv7hf= armv7hf
ARCHES.earmv7eb= armv7
ARCHES.earmv7hfeb= armv7hf
ARCHES.aarch64= arm64
.for arch in ${ARCHES.${MACHINE_ARCH}}
.for board in ${EVBARM_BOARDS.${arch}}
2003-04-10 06:22:06 +04:00
KERNEL_SETS+= ${board}
BUILD_KERNELS+= ${board}_INSTALL
.endfor
KERNEL_SETS+= ${KERNEL_SETS.${arch}}
.endfor
2003-04-10 06:22:06 +04:00
2018-08-28 01:41:56 +03:00
.if !empty(MACHINE_ARCH:Maarch64)
smp_efibootaa64:
cd ${KERNSRCDIR}/stand/efiboot/bootaa64 && ${MAKE} release
SNAP_MD_POST_DEPS+= smp_efibootaa64
INSTALLATION_DIRS+= installation/misc
.endif
.if !empty(MACHINE_ARCH:Mearmv7hf)
2019-03-30 16:05:24 +03:00
smp_efibootarm:
cd ${KERNSRCDIR}/stand/efiboot/bootarm && ${MAKE} release
SNAP_MD_POST_DEPS+= smp_efibootarm
INSTALLATION_DIRS+= installation/misc
.endif
.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
.if !empty(MACHINE_ARCH:Maarch64) && empty(ALL_KERNELS)
smp_arm64: __mkimage
MKI_OPTS.smp_arm64= -K ${IMAGE.kern}
SNAP_MD_POST_DEPS+= smp_arm64
.endif
.if !empty(KERNEL_SETS:MRPI)
smp_rpi: __mkimage
2013-03-21 19:16:43 +04:00
.if empty(ALL_KERNELS) || !empty(ALL_KERNELS:MRPI)
MKI_OPTS.smp_rpi= -K ${IMAGE.kern}/netbsd-RPI.img.gz
2013-03-21 19:16:43 +04:00
SNAP_MD_POST_DEPS+= smp_rpi
.endif
smp_rpi_inst: ${IMAGE.instk}/netbsd-RPI_INSTALL.img.gz __mkimage
2013-03-21 19:16:43 +04:00
.if empty(ALL_KERNELS) || !empty(ALL_KERNELS:MRPI_INSTALL)
MKI_OPTS.smp_rpi_inst= -b -K ${IMAGE.instk}/netbsd-RPI_INSTALL.img.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
snap_md_post: check_DESTDIR check_RELEASEDIR snap_post .WAIT ${SNAP_MD_POST_DEPS}
2013-02-10 20:40:21 +04:00
KERNEL_SUFFIXES= bin img srec ub
INSTALLATION_DIRS+= binary/gzimg \
installation/instkernel