Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: wip/allwinner-…
Fetching contributors…

Cannot retrieve contributors at this time

executable file 49 lines (39 sloc) 0.661 kb
#!/bin/bash
set -e
PLATFORM=""
MODULE=""
show_help()
{
printf "\nbuild.sh - Top level build scritps\n"
echo "Valid Options:"
echo " -h Show help message"
echo " -p <platform> platform, e.g. sun4i, sun4i-lite, sun4i_crane"
printf " -m <module> module\n\n"
}
while getopts hp:m: OPTION
do
case $OPTION in
h) show_help
;;
p) PLATFORM=$OPTARG
;;
m) MODULE=$OPTARG
;;
*) show_help
;;
esac
done
if [ -z "$PLATFORM" ]; then
show_help
exit 1
fi
if [ -z "$MODULE" ]; then
MODULE="all"
fi
if [ -x ./scripts/build_${PLATFORM}.sh ]; then
./scripts/build_${PLATFORM}.sh $MODULE
else
printf "\nERROR: Invalid Platform\n"
show_help
exit 1
fi
Jump to Line
Something went wrong with that request. Please try again.