1 1.50 mlelstv # $NetBSD: Makefile.inc,v 1.50 2013/03/21 15:16:43 mlelstv 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.35 christos MKIMAGE= ${NETBSDSRCDIR}/distrib/utils/embedded/mkimage 7 1.35 christos 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.36 christos EVBARM_BOARDS+= ADI_BRH CP3100 GEMINI GUMSTIX INTEGRATOR \ 15 1.46 skrll IQ80310 IQ80321 MINI2440 MV2120 SMDK2410 \ 16 1.46 skrll SMDK2800 TEAMASA_NPWR TS7200 TWINTAIL 17 1.30 matt .endif 18 1.30 matt 19 1.40 christos 20 1.40 christos IMAGE.rel= ${RELEASEDIR}/${RELEASEMACHINEDIR} 21 1.44 christos IMAGE.dir= ${IMAGE.rel}/binary/gzimg 22 1.40 christos IMAGE.kern= ${IMAGE.rel}/binary/kernel 23 1.49 garbled IMAGE.instk= ${IMAGE.rel}/installation/instkernel 24 1.40 christos 25 1.40 christos __mkimage: .USE 26 1.40 christos TOOL_MAKEFS=${TOOL_MAKEFS} \ 27 1.40 christos TOOL_DISKLABEL=${TOOL_DISKLABEL} \ 28 1.40 christos TOOL_FDISK=${TOOL_FDISK} \ 29 1.40 christos TOOL_MKNOD=${TOOL_MKNOD} \ 30 1.40 christos TOOL_PAX=${TOOL_PAX} \ 31 1.40 christos TOOL_MTREE=${TOOL_MTREE} \ 32 1.47 hans HOST_SH=${HOST_SH} \ 33 1.47 hans ${HOST_SH} ${MKIMAGE} -x -h ${.TARGET:S/smp_//} -D ${DESTDIR} \ 34 1.49 garbled -K ${.ALLSRC} -S ${NETBSDSRCDIR} ${MKI_OPTS.${.TARGET}} \ 35 1.43 jmcneill ${IMAGE.dir}/${.TARGET:S/smp_//}.img.gz 36 1.40 christos 37 1.36 christos .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "earm" \ 38 1.36 christos || ${MACHINE_ARCH} == "earmhf" 39 1.36 christos # Little endian platforms with VFP 40 1.36 christos EVBARM_BOARDS+= BCM5301X BEAGLEBOARD BEAGLEBOARDXM BEAGLEBONE TISDP2420 41 1.41 christos smp_beagleboard: ${IMAGE.kern}/netbsd-BEAGLEBOARD.ub.gz __mkimage 42 1.48 mlelstv .if empty(ALL_KERNELS) || !empty(ALL_KERNELS:MBEAGLEBOARD) 43 1.40 christos SNAP_MD_POST_DEPS+= smp_beagleboard 44 1.36 christos .endif 45 1.48 mlelstv .endif 46 1.34 matt .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "earm" 47 1.30 matt # Little endian platforms (armv5t+) 48 1.36 christos EVBARM_BOARDS+= OPENRD SHEEVAPLUG 49 1.30 matt .endif 50 1.30 matt 51 1.30 matt .if ${MACHINE_ARCH} == "armeb" 52 1.13 thorpej # Big endian platforms 53 1.30 matt EVBARM_BOARDS+= ADI_BRH 54 1.13 thorpej .endif 55 1.13 thorpej 56 1.13 thorpej .for board in ${EVBARM_BOARDS} 57 1.12 thorpej KERNEL_SETS+= ${board} 58 1.12 thorpej BUILD_KERNELS+= ${board}_INSTALL 59 1.12 thorpej .endfor 60 1.12 thorpej 61 1.13 thorpej .if ${MACHINE_ARCH} == "arm" 62 1.13 thorpej # Little endian platforms. 63 1.46 skrll KERNEL_SETS+= HDL_G INTEGRATOR_CP IXM1200 64 1.30 matt .endif 65 1.30 matt 66 1.36 christos .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "earm" \ 67 1.36 christos || ${MACHINE_ARCH} == "earmhf" 68 1.50 mlelstv KERNEL_SETS+= RPI 69 1.49 garbled BUILD_KERNELS+= RPI_INSTALL 70 1.42 jmcneill smp_rpi: ${IMAGE.kern}/netbsd-RPI.bin.gz __mkimage 71 1.50 mlelstv .if empty(ALL_KERNELS) || !empty(ALL_KERNELS:MRPI) 72 1.50 mlelstv SNAP_MD_POST_DEPS+= smp_rpi 73 1.50 mlelstv .endif 74 1.49 garbled MKI_OPTS.smp_rpi_inst="-b" 75 1.49 garbled smp_rpi_inst: ${IMAGE.instk}/netbsd-RPI_INSTALL.bin.gz __mkimage 76 1.50 mlelstv .if empty(ALL_KERNELS) || !empty(ALL_KERNELS:MRPI_INSTALL) 77 1.50 mlelstv SNAP_MD_POST_DEPS+= smp_rpi_inst 78 1.30 matt .endif 79 1.48 mlelstv .endif 80 1.30 matt 81 1.30 matt .if ${MACHINE_ARCH} == "armeb" 82 1.13 thorpej # Big endian platforms. 83 1.17 scw KERNEL_SETS+= IXM1200 NSLU2 84 1.13 thorpej .endif 85 1.12 thorpej 86 1.42 jmcneill snap_md_post: check_DESTDIR check_RELEASEDIR snap_post .WAIT ${SNAP_MD_POST_DEPS} 87 1.40 christos 88 1.29 kiyohara KERNEL_SUFFIXES= bin srec ub 89 1.6 thorpej 90 1.9 lukem INSTALLATION_DIRS+= binary/gzimg \ 91 1.7 thorpej installation/instkernel 92