# Target build script
if [ $# -lt 1 ]; then
- echo "usage: buildtarget target [path-to-linuxbios]"
+ echo "usage: buildtarget target [path-to-coreboot]"
exit 1
fi
mkdir -p $build_dir
fi
if [ ! -f $config_py ]; then
- echo "No linuxbios config script found. Rebuilding it.."
+ echo "No coreboot config script found. Rebuilding it.."
$PYTHON $yapps2_py $config_g $config_py
fi
CC=gcc
fi
-$CC -fno-stack-protector -S -xc /dev/null -o .$$.tmp
+$CC -fno-stack-protector -S -xc /dev/null -o .$$.tmp 2>/dev/null
if [ $? -eq 0 ]; then
EXTRA_CFLAGS=-fno-stack-protector
rm -rf .$$.tmp
+if $CC -Wl,--help | grep -q build-id; then
+ EXTRA_LFLAGS="$EXTRA_LFLAGS -Wl,--build-id=none"
+fi
+
for i in $build_dir/Makefile.settings $build_dir/*/Makefile.settings
do
- echo CFLAGS+=$EXTRA_CFLAGS >>$i
+ echo DISTRO_CFLAGS+=$EXTRA_CFLAGS >>$i
+ echo DISTRO_LFLAGS+=$EXTRA_LFLAGS >>$i
done
exit $?