From 4d8cef17d0260097b887a9425dcdf12dc03e90e5 Mon Sep 17 00:00:00 2001 From: Kees Jongenburger Date: Wed, 22 May 2013 11:25:59 +0200 Subject: [PATCH] arm:add DDM37XX cflag We are planning on using the NetBSD config system to perform build system configuration when targetting different hardware variants. This functionality however is not integrated yet and we currently rely on using ifdef's in the code. this commit add DDM37XX flag. --- releasetools/arm_sdimage.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/releasetools/arm_sdimage.sh b/releasetools/arm_sdimage.sh index 28a9479e1..9f4eb5cc8 100755 --- a/releasetools/arm_sdimage.sh +++ b/releasetools/arm_sdimage.sh @@ -16,6 +16,8 @@ set -e : ${IMG=minix_arm_sd.img} : ${MLO=MLO} : ${UBOOT=u-boot.img} +: ${BASE_URL=http://www.minix3.org/arm/beagleboard-xm} +#: ${BASE_URL=http://www.minix3.org/arm/beaglebone} BUILDSH=build.sh @@ -47,7 +49,7 @@ for i in ${MLO} ${UBOOT} do if [ ! -f ${IMG_DIR}/${i} ] then - if ! wget -O ${IMG_DIR}/$i http://www.minix3.org/arm/beagleboard-xm/$i + if ! wget -O ${IMG_DIR}/$i ${BASE_URL}/$i then echo "Failed to download $i" rm -f ${IMG_DIR}/$i @@ -60,6 +62,7 @@ done # # Call build.sh using a sloppy file list so we don't need to remove the installed /etc/fstag # +export CFLAGS=-DDM37XX sh build.sh -V SLOPPY_FLIST=yes ${JOBS} -m ${ARCH} -O ${OBJ} -D ${DESTDIR} -U -u distribution #