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
This commit is contained in:
parent
fac14646f9
commit
712cdb49a7
|
|
@ -16,6 +16,8 @@ set -e
|
||||||
: ${IMG=minix_arm_sd.img}
|
: ${IMG=minix_arm_sd.img}
|
||||||
: ${MLO=MLO}
|
: ${MLO=MLO}
|
||||||
: ${UBOOT=u-boot.img}
|
: ${UBOOT=u-boot.img}
|
||||||
|
: ${BASE_URL=http://www.minix3.org/arm/beagleboard-xm}
|
||||||
|
#: ${BASE_URL=http://www.minix3.org/arm/beaglebone}
|
||||||
|
|
||||||
BUILDSH=build.sh
|
BUILDSH=build.sh
|
||||||
|
|
||||||
|
|
@ -47,7 +49,7 @@ for i in ${MLO} ${UBOOT}
|
||||||
do
|
do
|
||||||
if [ ! -f ${IMG_DIR}/${i} ]
|
if [ ! -f ${IMG_DIR}/${i} ]
|
||||||
then
|
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
|
then
|
||||||
echo "Failed to download $i"
|
echo "Failed to download $i"
|
||||||
rm -f ${IMG_DIR}/$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
|
# Call build.sh using a sloppy file list so we don't need to remove the installed /etc/fstag
|
||||||
#
|
#
|
||||||
|
export CPPFLAGS=-DDM37XX
|
||||||
sh build.sh -V SLOPPY_FLIST=yes ${JOBS} -m ${ARCH} -O ${OBJ} -D ${DESTDIR} -U -u distribution
|
sh build.sh -V SLOPPY_FLIST=yes ${JOBS} -m ${ARCH} -O ${OBJ} -D ${DESTDIR} -U -u distribution
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user