Home | History | Annotate | Line # | Download | only in etc.evbarm
Makefile.inc revision 1.31.2.2
      1 #	$NetBSD: Makefile.inc,v 1.31.2.2 2013/02/25 00:24:51 tls 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
     17 .endif
     18 
     19 
     20 IMAGE.rel=	${RELEASEDIR}/${RELEASEMACHINEDIR}
     21 IMAGE.dir=	${IMAGE.rel}/binary/gzimg
     22 IMAGE.kern=	${IMAGE.rel}/binary/kernel
     23 
     24 __mkimage: .USE
     25 	TOOL_MAKEFS=${TOOL_MAKEFS} \
     26 	TOOL_DISKLABEL=${TOOL_DISKLABEL} \
     27 	TOOL_FDISK=${TOOL_FDISK} \
     28 	TOOL_MKNOD=${TOOL_MKNOD} \
     29 	TOOL_PAX=${TOOL_PAX} \
     30 	TOOL_MTREE=${TOOL_MTREE} \
     31 	HOST_SH=${HOST_SH} \
     32 	${HOST_SH} ${MKIMAGE} -x -h ${.TARGET:S/smp_//} -D ${DESTDIR} \
     33 	    -K ${.ALLSRC} -S ${NETBSDSRCDIR} \
     34 	    ${IMAGE.dir}/${.TARGET:S/smp_//}.img.gz
     35 
     36 .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "earm" \
     37     || ${MACHINE_ARCH} == "earmhf"
     38 # Little endian platforms with VFP
     39 EVBARM_BOARDS+=		BCM5301X BEAGLEBOARD BEAGLEBOARDXM BEAGLEBONE TISDP2420
     40 smp_beagleboard: ${IMAGE.kern}/netbsd-BEAGLEBOARD.ub.gz __mkimage
     41 SNAP_MD_POST_DEPS+=	smp_beagleboard
     42 .endif
     43 .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "earm"
     44 # Little endian platforms (armv5t+)
     45 EVBARM_BOARDS+=		OPENRD SHEEVAPLUG
     46 .endif
     47 
     48 .if ${MACHINE_ARCH} == "armeb"
     49 # Big endian platforms
     50 EVBARM_BOARDS+=		ADI_BRH
     51 .endif
     52 
     53 .for board in ${EVBARM_BOARDS}
     54 KERNEL_SETS+=		${board}
     55 BUILD_KERNELS+=		${board}_INSTALL
     56 .endfor
     57 
     58 .if ${MACHINE_ARCH} == "arm"
     59 # Little endian platforms.
     60 KERNEL_SETS+=		HDL_G INTEGRATOR_CP IXM1200
     61 .endif
     62 
     63 .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "earm" \
     64     || ${MACHINE_ARCH} == "earmhf"
     65 EXTRA_KERNELS+=		RPI
     66 smp_rpi: ${IMAGE.kern}/netbsd-RPI.bin.gz __mkimage
     67 SNAP_MD_POST_DEPS+=	smp_rpi
     68 .endif
     69 
     70 .if ${MACHINE_ARCH} == "armeb"
     71 # Big endian platforms.
     72 KERNEL_SETS+=		IXM1200 NSLU2
     73 .endif
     74 
     75 snap_md_post: check_DESTDIR check_RELEASEDIR snap_post .WAIT ${SNAP_MD_POST_DEPS}
     76 
     77 KERNEL_SUFFIXES=	bin srec ub
     78 
     79 INSTALLATION_DIRS+=	binary/gzimg		\
     80 			installation/instkernel
     81