Commit fa22a4e8 authored by Angus Ainslie's avatar Angus Ainslie
Browse files

Optionally build the redpine module

parent e36f1a8e
Pipeline #11476 failed with stage
in 16 seconds
......@@ -15,6 +15,7 @@ CWD=$(pwd)
OUTPUT_DIR="${CWD}/output"
NPROC=$(nproc --all)
pureos_board=devkit
build_redpine=0
CROSS_COMPILER=aarch64-linux-gnu-
ARCH=arm64
COMPILER_ARCH=arm64
......@@ -43,6 +44,7 @@ usage() {
echo "Usage : $1 "
echo " -h Display this help message."
echo " -b [imx6|imx8|ec-som|devkit] select the board type."
echo " -r Build the redpine reflash module."
}
while getopts ":hb:" opt; do
......@@ -50,6 +52,9 @@ while getopts ":hb:" opt; do
b)
pureos_board=$OPTARG
;;
r)
build_redpine=1
;;
\?)
echo "Invalid Option: -$OPTARG" 1>&2
usage "$0"
......@@ -137,7 +142,9 @@ git log | head -n 1 | awk '{ print $2 };' >> "${OUTPUT_DIR}/kernel-git-${ARCH}.t
case "${pureos_board}" in
devkit)
build_redpine
if [ -ne ${build_redpine} ]; then
build_redpine
fi
;;
*)
;;
......
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