From: Kees Jongenburger Date: Wed, 22 May 2013 09:25:59 +0000 (+0200) Subject: arm:add DDM37XX cflag X-Git-Tag: v3.3.0~971 X-Git-Url: http://zhaoyanbai.com/repos/README?a=commitdiff_plain;h=6364989e362ff393c170e9ab705f93db04b1f691;p=minix.git arm:add DDM37XX cflag We are planning on using the NetBSD config system to perform build system configuration when targeting different hardware variants. This functionality however is not integrated yet and we currently rely on using ifdef's in the code. This commit add the DDM37XX flag. Change-Id: Ia25dfa520c7df4b648f4d1a583808de774acff63 --- diff --git a/releasetools/arm_sdimage.sh b/releasetools/arm_sdimage.sh index 58ca46e0e..cee9cf5cf 100755 --- a/releasetools/arm_sdimage.sh +++ b/releasetools/arm_sdimage.sh @@ -19,6 +19,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} if [ ! -f ${BUILDSH} ] then echo "Please invoke me from the root source dir, where ${BUILDSH} is." @@ -48,7 +50,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 @@ -61,6 +63,7 @@ done # # Call build.sh using a sloppy file list so we don't need to remove the installed /etc/fstag # +export CPPFLAGS=-DDM37XX sh ${BUILDSH} -V SLOPPY_FLIST=yes -V MKBINUTILS=yes -V MKGCCCMDS=yes -j ${JOBS} -m ${ARCH} -O ${OBJ} -D ${DESTDIR} ${BUILDVARS} -U -u distribution #