1 1.31.2.3 tls # $NetBSD: Makefile.inc,v 1.31.2.3 2013/06/23 06:26:21 tls Exp $ 2 1.1 thorpej # 3 1.1 thorpej # etc.evbarm/Makefile.inc -- evbarm-specific etc Makefile targets 4 1.1 thorpej # 5 1.1 thorpej 6 1.31.2.2 tls MKIMAGE= ${NETBSDSRCDIR}/distrib/utils/embedded/mkimage 7 1.31.2.2 tls 8 1.21 pavel # If you change the list of distributed kernels, don't forget 9 1.21 pavel # to update the release documentation in distrib/notes/common/contents 10 1.30 matt EVBARM_BOARDS= 11 1.21 pavel 12 1.13 thorpej .if ${MACHINE_ARCH} == "arm" 13 1.30 matt # Little endian platforms (armv4 or pre-armv5t) 14 1.31.2.2 tls EVBARM_BOARDS+= ADI_BRH CP3100 GEMINI GUMSTIX INTEGRATOR \ 15 1.30 matt IQ80310 IQ80321 MINI2440 MV2120 SMDK2410 \ 16 1.31.2.3 tls SMDK2800 TEAMASA_NPWR TS7200 TWINTAIL KUROBOX_PRO 17 1.30 matt .endif 18 1.30 matt 19 1.31.2.2 tls 20 1.31.2.2 tls IMAGE.rel= ${RELEASEDIR}/${RELEASEMACHINEDIR} 21 1.31.2.2 tls IMAGE.dir= ${IMAGE.rel}/binary/gzimg 22 1.31.2.2 tls IMAGE.kern= ${IMAGE.rel}/binary/kernel 23 1.31.2.3 tls IMAGE.instk= ${IMAGE.rel}/installation/instkernel 24 1.31.2.2 tls 25 1.31.2.2 tls __mkimage: .USE 26 1.31.2.2 tls TOOL_MAKEFS=${TOOL_MAKEFS} \ 27 1.31.2.2 tls TOOL_DISKLABEL=${TOOL_DISKLABEL} \ 28 1.31.2.2 tls TOOL_FDISK=${TOOL_FDISK} \ 29 1.31.2.3 tls TOOL_GZIP=${TOOL_GZIP} \ 30 1.31.2.2 tls TOOL_MKNOD=${TOOL_MKNOD} \ 31 1.31.2.2 tls TOOL_PAX=${TOOL_PAX} \ 32 1.31.2.2 tls TOOL_MTREE=${TOOL_MTREE} \ 33 1.31.2.2 tls HOST_SH=${HOST_SH} \ 34 1.31.2.2 tls ${HOST_SH} ${MKIMAGE} -x -h ${.TARGET:S/smp_//} -D ${DESTDIR} \ 35 1.31.2.3 tls -K ${.ALLSRC} -S ${NETBSDSRCDIR} ${MKI_OPTS.${.TARGET}} \ 36 1.31.2.2 tls ${IMAGE.dir}/${.TARGET:S/smp_//}.img.gz 37 1.31.2.2 tls 38 1.31.2.2 tls .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "earm" \ 39 1.31.2.2 tls || ${MACHINE_ARCH} == "earmhf" 40 1.31.2.2 tls # Little endian platforms with VFP 41 1.31.2.2 tls EVBARM_BOARDS+= BCM5301X BEAGLEBOARD BEAGLEBOARDXM BEAGLEBONE TISDP2420 42 1.31.2.2 tls smp_beagleboard: ${IMAGE.kern}/netbsd-BEAGLEBOARD.ub.gz __mkimage 43 1.31.2.3 tls .if empty(ALL_KERNELS) || !empty(ALL_KERNELS:MBEAGLEBOARD) 44 1.31.2.2 tls SNAP_MD_POST_DEPS+= smp_beagleboard 45 1.31.2.2 tls .endif 46 1.31.2.3 tls .endif 47 1.30 matt .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "earm" 48 1.30 matt # Little endian platforms (armv5t+) 49 1.31.2.2 tls EVBARM_BOARDS+= OPENRD SHEEVAPLUG 50 1.30 matt .endif 51 1.30 matt 52 1.30 matt .if ${MACHINE_ARCH} == "armeb" 53 1.13 thorpej # Big endian platforms 54 1.30 matt EVBARM_BOARDS+= ADI_BRH 55 1.13 thorpej .endif 56 1.13 thorpej 57 1.13 thorpej .for board in ${EVBARM_BOARDS} 58 1.12 thorpej KERNEL_SETS+= ${board} 59 1.12 thorpej BUILD_KERNELS+= ${board}_INSTALL 60 1.12 thorpej .endfor 61 1.12 thorpej 62 1.13 thorpej .if ${MACHINE_ARCH} == "arm" 63 1.13 thorpej # Little endian platforms. 64 1.31.2.2 tls KERNEL_SETS+= HDL_G INTEGRATOR_CP IXM1200 65 1.30 matt .endif 66 1.30 matt 67 1.31.2.2 tls .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "earm" \ 68 1.31.2.2 tls || ${MACHINE_ARCH} == "earmhf" 69 1.31.2.3 tls KERNEL_SETS+= RPI 70 1.31.2.3 tls BUILD_KERNELS+= RPI_INSTALL 71 1.31.2.2 tls smp_rpi: ${IMAGE.kern}/netbsd-RPI.bin.gz __mkimage 72 1.31.2.3 tls .if empty(ALL_KERNELS) || !empty(ALL_KERNELS:MRPI) 73 1.31.2.2 tls SNAP_MD_POST_DEPS+= smp_rpi 74 1.30 matt .endif 75 1.31.2.3 tls MKI_OPTS.smp_rpi_inst="-b" 76 1.31.2.3 tls smp_rpi_inst: ${IMAGE.instk}/netbsd-RPI_INSTALL.bin.gz __mkimage 77 1.31.2.3 tls .if empty(ALL_KERNELS) || !empty(ALL_KERNELS:MRPI_INSTALL) 78 1.31.2.3 tls SNAP_MD_POST_DEPS+= smp_rpi_inst 79 1.31.2.3 tls .endif 80 1.31.2.3 tls .endif 81 1.30 matt 82 1.30 matt .if ${MACHINE_ARCH} == "armeb" 83 1.13 thorpej # Big endian platforms. 84 1.17 scw KERNEL_SETS+= IXM1200 NSLU2 85 1.13 thorpej .endif 86 1.12 thorpej 87 1.31.2.2 tls snap_md_post: check_DESTDIR check_RELEASEDIR snap_post .WAIT ${SNAP_MD_POST_DEPS} 88 1.31.2.2 tls 89 1.29 kiyohara KERNEL_SUFFIXES= bin srec ub 90 1.6 thorpej 91 1.9 lukem INSTALLATION_DIRS+= binary/gzimg \ 92 1.7 thorpej installation/instkernel 93