Home | History | Annotate | Line # | Download | only in etc.evbarm
Makefile.inc revision 1.37
      1 #	$NetBSD: Makefile.inc,v 1.37 2013/02/09 20:47:06 christos 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 .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "earm" \
     20     || ${MACHINE_ARCH} == "earmhf"
     21 # Little endian platforms with VFP
     22 EVBARM_BOARDS+=		BCM5301X BEAGLEBOARD BEAGLEBOARDXM BEAGLEBONE TISDP2420
     23 .endif
     24 .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "earm"
     25 # Little endian platforms (armv5t+)
     26 EVBARM_BOARDS+=		OPENRD SHEEVAPLUG
     27 .endif
     28 
     29 .if ${MACHINE_ARCH} == "armeb"
     30 # Big endian platforms
     31 EVBARM_BOARDS+=		ADI_BRH
     32 .endif
     33 
     34 .for board in ${EVBARM_BOARDS}
     35 KERNEL_SETS+=		${board}
     36 BUILD_KERNELS+=		${board}_INSTALL
     37 .endfor
     38 
     39 .if ${MACHINE_ARCH} == "arm"
     40 # Little endian platforms.
     41 KERNEL_SETS+=		IXM1200 HDL_G
     42 .endif
     43 
     44 .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "earm" \
     45     || ${MACHINE_ARCH} == "earmhf"
     46 KERNEL_SETS+=		RPI
     47 RPI.rel=		${RELEASEDIR}/${RELEASEMACHINEDIR}
     48 RPI.kernel=		${RPI.rel}/installation/instkernel/netbsd-RPI.bin.gz
     49 RPI.img=		${RPI.rel}/binary/gzimg/rpi.img
     50 snap_md_post:
     51 	TOOL_MAKEFS=${TOOL_MAKEFS} \
     52 	TOOL_DISKLABEL=${TOOL_DISKLABEL} \
     53 	TOOL_FDISK=${TOOL_FDISK} \
     54 	${MKIMAGE} -x -h rpi -D ${DESTDIR} -K ${RPI.kernel} \
     55 	    -S ${NETBSDSRCDIR} ${RPI.img}
     56 .endif
     57 
     58 .if ${MACHINE_ARCH} == "armeb"
     59 # Big endian platforms.
     60 KERNEL_SETS+=		IXM1200 NSLU2
     61 .endif
     62 
     63 KERNEL_SUFFIXES=	bin srec ub
     64 
     65 INSTALLATION_DIRS+=	binary/gzimg		\
     66 			installation/instkernel
     67