summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@linaro.org>2015-10-16 21:36:36 +0200
committerAnders Roxell <anders.roxell@linaro.org>2015-10-19 12:43:44 +0200
commit06b13aed21304fa062ae1fd43e26311bd58e2311 (patch)
treef4cc02b3b4641a8ab63b7b4f4a8ec46c52dd4874
parent785f47e32f0a38bae1a535f7c0145d63da031f80 (diff)
jenkins_common_lib: if not CONFIG_OF don't install dtb's
Change-Id: I55d6746d9c7811d0a301021ce58c709078ab307d Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
-rwxr-xr-xjenkins_common_lib8
1 files changed, 5 insertions, 3 deletions
diff --git a/jenkins_common_lib b/jenkins_common_lib
index ffb4b6d..00075a0 100755
--- a/jenkins_common_lib
+++ b/jenkins_common_lib
@@ -169,9 +169,11 @@ build_instructions()
install -D -p -m0644 ${pkg_dir}/.config out/kernel.config
install -D -p -m0644 ${pkg_dir}/arch/${ARCH}/boot/${kernel_img_cmd} out/${kernel_img_cmd}
[ "${make_silent}" = "true" ] && cp -a ${pkg_dir}/build.log out/
- for dtb in `find ${pkg_dir}/arch/${ARCH}/boot/dts/ -type f -name '*.dtb'`; do
- install -D -p -m0644 ${dtb} out/dtbs/`basename ${dtb}`
- done
+ if grep -q "^CONFIG_OF=y" out/kernel.config ; then
+ for dtb in `find ${pkg_dir}/arch/${ARCH}/boot/dts/ -type f -name '*.dtb'`; do
+ install -D -p -m0644 ${dtb} out/dtbs/`basename ${dtb}`
+ done
+ fi
fi
END=$(date +%s)
EXECUTION_TIME_IN_SEC=$(( $END - $START ))