Makefile.inc revision 1.43 1 # $NetBSD: Makefile.inc,v 1.43 2013/02/10 22:03:49 jmcneill 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 ${MKIMAGE} -x -h ${.TARGET:S/smp_//} -D ${DESTDIR} \
32 -K ${.ALLSRC} -S ${NETBSDSRCDIR} \
33 ${IMAGE.dir}/${.TARGET:S/smp_//}.img.gz
34
35 .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "earm" \
36 || ${MACHINE_ARCH} == "earmhf"
37 # Little endian platforms with VFP
38 EVBARM_BOARDS+= BCM5301X BEAGLEBOARD BEAGLEBOARDXM BEAGLEBONE TISDP2420
39 smp_beagleboard: ${IMAGE.kern}/netbsd-BEAGLEBOARD.ub.gz __mkimage
40 SNAP_MD_POST_DEPS+= smp_beagleboard
41 .endif
42 .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "earm"
43 # Little endian platforms (armv5t+)
44 EVBARM_BOARDS+= OPENRD SHEEVAPLUG
45 .endif
46
47 .if ${MACHINE_ARCH} == "armeb"
48 # Big endian platforms
49 EVBARM_BOARDS+= ADI_BRH
50 .endif
51
52 .for board in ${EVBARM_BOARDS}
53 KERNEL_SETS+= ${board}
54 BUILD_KERNELS+= ${board}_INSTALL
55 .endfor
56
57 .if ${MACHINE_ARCH} == "arm"
58 # Little endian platforms.
59 KERNEL_SETS+= IXM1200 HDL_G
60 .endif
61
62 .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "earm" \
63 || ${MACHINE_ARCH} == "earmhf"
64 EXTRA_KERNELS+= RPI
65 smp_rpi: ${IMAGE.kern}/netbsd-RPI.bin.gz __mkimage
66 SNAP_MD_POST_DEPS+= smp_rpi
67 .endif
68
69 .if ${MACHINE_ARCH} == "armeb"
70 # Big endian platforms.
71 KERNEL_SETS+= IXM1200 NSLU2
72 .endif
73
74 snap_md_post: check_DESTDIR check_RELEASEDIR snap_post .WAIT ${SNAP_MD_POST_DEPS}
75
76 KERNEL_SUFFIXES= bin srec ub
77
78 INSTALLATION_DIRS+= binary/gzimg \
79 installation/instkernel
80