From: bigfoot Date: 星期二, 19 Jan 2021 07:12:18 +0000 (+0800) Subject: change build.sh default operation X-Git-Tag: v0.2~12 X-Git-Url: https://git.renegade-project.org/?a=commitdiff_plain;h=10b137f014a7495e92fb8611de9927ec3032980c;p=edk2-sdm845.git change build.sh default operation --- diff --git a/build.sh b/build.sh index 7248b68..73c1346 100755 --- a/build.sh +++ b/build.sh @@ -57,6 +57,7 @@ do case "${1}" in *)_help 1;; esac done +[ -z "${DEVICE}" ]&&_help 1 if ! [ -f edk2/edksetup.sh ] || ! [ -f ../edk2/edksetup.sh ] then set -e echo "Updating submodules" @@ -105,9 +106,7 @@ export WORKSPACE="${PWD}/workspace" echo > ramdisk set -e python3 assets/generate-logo.py -if [ -z "${DEVICE}" ] -then _help 1 -elif [ "${DEVICE}" == "all" ] +if [ "${DEVICE}" == "all" ] then E=0 for i in "${DEVICES[@]}" do echo "Building ${i}"