Commit db710f4f authored by Alessandro Rubini's avatar Alessandro Rubini

MAKEALL: if so configured, build for arch-spec too

If the user has WRPCSW_ROOT in the environment, build for arch-spec
as well, because we can refer to wrpc-sw for drivers.  When building
for spec, build the whiterabbit extension as well.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent e62b5f05
......@@ -9,8 +9,8 @@ build_one () {
echo "####################"
echo "Build for " "$1"
make -s -j3 CC="$CC" LD="$LD" -k $2
test -f ppsi.o && size ppsi.o
test -f ppsi && size ppsi
test -f ppsi.o && size ppsi.o
test -f ppsi && size ppsi | tail -n 1
}
build_diags () {
......@@ -22,8 +22,7 @@ build_diags () {
build_ext () {
unset PROTO_EXT
build_diags
# s/false/true/ below when WR can be built from ppsi (not from wrpc-sw)
if false; then
if [ "$ARCH" = "spec" ]; then
export PROTO_EXT=whiterabbit
build_diags
fi
......@@ -52,7 +51,12 @@ LD_bare_i386="ld -m elf_i386"
LD_bare_x86_64="ld -m elf_x86_64"
LD_spec="${PREFIX_spec}ld"
for a in bare-i386 bare-x86-64; do
ARCHS="bare-i386 bare-x86-64"
if [ "x${WRPCSW_ROOT}" != "x" ]; then
ARCHS="$ARCHS spec"
fi
for a in $ARCHS; do
export ARCH=$a
ARCH_=""
eval export CROSS_COMPILE="\${PREFIX_$(echo $ARCH | sed 's/-/_/g')}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment