Skip to content
Snippets Groups Projects
MAKEALL 432 B
Newer Older
#!/bin/sh
# A trivial script to build with all known configurations
# (please add a configs/ file to test your special case

T=$(mktemp /tmp/wrpc-config.XXXXXX)

configs=$(cd configs; echo *_defconfig)
if [ $# -ne 0 ]; then
    configs="$*"
fi

for c in $configs; do
    echo "##### Building with '$c'"
    if ! make $c 2>&1 >> $T; then
	echo "Error in configuration (see $T)"
	exit 1
    fi
    make -s clean
    make -s
done
rm $T