mirror of
https://github.com/rockchip-linux/mpp.git
synced 2024-11-26 19:43:35 +08:00
fix[build]: The first toolchains is selected by default
Change-Id: I4e449d4361f017c4e9eaa5947d7d79ac0e6a3e91 Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
This commit is contained in:
parent
86cf93a028
commit
2ec23d0371
@ -170,7 +170,8 @@ case ${NDK_COUNT} in
|
||||
echo "use ndk: ${ANDROID_NDK}"
|
||||
;;
|
||||
*)
|
||||
read -p "select [1-${NDK_COUNT}] ndk used for compiling: " -ra NDK_INTPUT
|
||||
read -p "select [1-${NDK_COUNT}] ndk used for compiling, def[1]: " -ra NDK_INTPUT
|
||||
NDK_INTPUT=${NDK_INTPUT:-1}
|
||||
|
||||
NDK_INDEX=0
|
||||
|
||||
@ -178,7 +179,7 @@ case ${NDK_COUNT} in
|
||||
do
|
||||
NDK_INDEX=$[${NDK_INDEX}+1]
|
||||
|
||||
if [ "${NDK_INDEX}" -eq "${NDK_INTPUT}" ]; then
|
||||
if [ "${NDK_INDEX}" == "${NDK_INTPUT}" ]; then
|
||||
echo "${NDK_INTPUT} - ${NDK_PATH} selected as ANDROID_NDK"
|
||||
ANDROID_NDK=${NDK_PATH}
|
||||
FOUND_NDK=1
|
||||
|
Loading…
Reference in New Issue
Block a user