aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2020-06-05 10:22:05 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2020-06-05 10:22:05 +0800
commit7737d9702daf3317cabec958625c490c71592b84 (patch)
treeb24c6199836f19aaa0ffc4a0573961400ab5f5a9
parent70ac523f0b1ced0174a0aa12772c35ba3f4d597e (diff)
lkft/common/builders-v2.sh: add check for the kernel directory
before finding the .config file Change-Id: Ifd1120c22672a81c41719aec2bbb5c5b16de1643 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rwxr-xr-xlkft/common/builders-v2.sh16
1 files changed, 10 insertions, 6 deletions
diff --git a/lkft/common/builders-v2.sh b/lkft/common/builders-v2.sh
index 7da70982cc..52ff7173bf 100755
--- a/lkft/common/builders-v2.sh
+++ b/lkft/common/builders-v2.sh
@@ -75,12 +75,16 @@ for build_config in ${ANDROID_BUILD_CONFIG}; do
# should be only one .config after the above steps
# which is the case of using build/build.sh
- f_config=`find out/${build_config}/vendor-kernel -name .config`
- if [ -f "${f_config}" ]; then
- mv "${f_config}" out/${build_config}/vendor_defconfig
+ if [ -d out/${build_config}/vendor-kernel ]; then
+ f_config=`find out/${build_config}/vendor-kernel -name .config`
+ if [ -f "${f_config}" ]; then
+ mv "${f_config}" out/${build_config}/vendor_defconfig
+ fi
fi
- f_config=`find out/${build_config}/gki-kernel -name .config`
- if [ -f "${f_config}" ]; then
- mv "${f_config}" out/${build_config}/gki_defconfig
+ if [ -d out/${build_config}/gki-kernel ]; then
+ f_config=`find out/${build_config}/gki-kernel -name .config`
+ if [ -f "${f_config}" ]; then
+ mv "${f_config}" out/${build_config}/gki_defconfig
+ fi
fi
done