Home | History | Annotate | Line # | Download | only in etc.evbarm
Makefile.inc revision 1.48
      1 #	$NetBSD: Makefile.inc,v 1.48 2013/03/17 12:19:57 mlelstv 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 .if empty(ALL_KERNELS) || !empty(ALL_KERNELS:MBEAGLEBOARD)
     42 SNAP_MD_POST_DEPS+=	smp_beagleboard
     43 .endif
     44 .endif
     45 .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "earm"
     46 # Little endian platforms (armv5t+)
     47 EVBARM_BOARDS+=		OPENRD SHEEVAPLUG
     48 .endif
     49 
     50 .if ${MACHINE_ARCH} == "armeb"
     51 # Big endian platforms
     52 EVBARM_BOARDS+=		ADI_BRH
     53 .endif
     54 
     55 .for board in ${EVBARM_BOARDS}
     56 KERNEL_SETS+=		${board}
     57 BUILD_KERNELS+=		${board}_INSTALL
     58 .endfor
     59 
     60 .if ${MACHINE_ARCH} == "arm"
     61 # Little endian platforms.
     62 KERNEL_SETS+=		HDL_G INTEGRATOR_CP IXM1200
     63 .endif
     64 
     65 .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "earm" \
     66     || ${MACHINE_ARCH} == "earmhf"
     67 EXTRA_KERNELS+=		RPI
     68 smp_rpi: ${IMAGE.kern}/netbsd-RPI.bin.gz __mkimage
     69 .if empty(ALL_KERNELS) || !empty(ALL_KERNELS:MRPI)
     70 SNAP_MD_POST_DEPS+=	smp_rpi
     71 .endif
     72 .endif
     73 
     74 .if ${MACHINE_ARCH} == "armeb"
     75 # Big endian platforms.
     76 KERNEL_SETS+=		IXM1200 NSLU2
     77 .endif
     78 
     79 snap_md_post: check_DESTDIR check_RELEASEDIR snap_post .WAIT ${SNAP_MD_POST_DEPS}
     80 
     81 KERNEL_SUFFIXES=	bin srec ub
     82 
     83 INSTALLATION_DIRS+=	binary/gzimg		\
     84 			installation/instkernel
     85