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