Add CROSS_TOOLCHAIN for arm builds.

Remove a BOARDS entry left in while testing.
Add build-arm-ports${BOARD} target as a prerequisite when
ARMPORTS is set.
Add build-arm-KERNCONF and build-arm-ports to CLEANFILES.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Glen Barber 2015-02-11 20:50:25 +00:00
parent d8d0f3dc20
commit 879c1339e2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/release-arm-redux/; revision=278596
4 changed files with 23 additions and 8 deletions

View File

@ -6,14 +6,15 @@ BOARDS?= BEAGLEBONE \
RPI-B \
PANDABOARD \
WANDBOARD-QUAD \
ZEDBOARD \
NUCLEUS
ZEDBOARD
ARMTARGETS?=
ARMSIZE?= 1G
ARM_WFLAGS?= CROSS_TOOLCHAIN=armv6-gcc
ARMPORTS?=
CLEANFILES+= arm-all
WITH_ARM_IMAGES?=1
CLEANFILES+= arm-all
.if defined(WITH_ARM_IMAGES) && !empty(WITH_ARM_IMAGES) && !empty(BOARDS)
. for BOARD in ${BOARDS}
@ -21,7 +22,8 @@ ARMTARGETS+= arm-${BOARD:tl}
CLEANDIRS+= arm-${BOARD:tl}
CLEANFILES+= arm-${BOARD:tu}.img \
arm-${BOARD:tu}.raw \
build-arm-${BOARD:tl}
build-arm-${BOARD:tl} \
build-arm-ports${BOARD:tl}
. if exists(${.CURDIR}/arm/Makefile.${BOARD})
. include "${.CURDIR}/arm/Makefile.${BOARD}"
. endif
@ -31,6 +33,16 @@ arm-${BOARD:tl}:
. endfor
.endif # !WITH_ARM_IMAGES
arm-all: ${ARMTARGETS}
touch ${.TARGET}
build-arm-ports${BOARD:tl}:
.if defined(ARMPORTS) && !empty(ARMPORTS)
. if !exists(${PORTSDIR}/Makefile)
. error "Ports tree (${PORTSDIR}) is required."
. endif
. for AP in ${ARMPORTS}
@echo ${MAKE} -C ${PORTSDIR}/${AP} all install clean distclean
. endfor
.endif
touch ${.TARGET}

View File

@ -3,6 +3,7 @@
#
BOARD= BEAGLEBONE
ARMPORTS= sysutils/u-boot-beaglebone
build-arm-${BOARD:tl}:
build-arm-${BOARD:tl}: build-arm-ports${BOARD:tl}
touch ${.TARGET}

View File

@ -3,6 +3,7 @@
#
BOARD= RPI-B
ARMPORTS= sysutils/u-boot-rpi
build-arm-${BOARD:tl}:
build-arm-${BOARD:tl}: build-arm-ports${BOARD:tl}
touch ${.TARGET}

View File

@ -3,6 +3,7 @@
#
BOARD= WANDBOARD-QUAD
ARMPORTS= sysutils/u-boot-wandboard
build-arm-${BOARD:tl}:
build-arm-${BOARD:tl}: build-arm-ports
touch ${.TARGET}