diff --git a/device_board_phytium/common/build_kernel/build_dts.sh b/device_board_phytium/common/build_kernel/build_dts.sh index 2e55a50dafc45e8e46379a7c964b42e09a28437f..7949a084ea94fa3e71634a9cff0fe30590a4a06e 100755 --- a/device_board_phytium/common/build_kernel/build_dts.sh +++ b/device_board_phytium/common/build_kernel/build_dts.sh @@ -18,6 +18,11 @@ set -e DTS_SRC_DIR=${1} DTS_TARGET_DIR=${2} +if [ ! -e $DTS_SRC_DIR ]; then + echo "there isn't path ${DTS_SRC_DIR}" + exit 0 +fi + dts_files=$(find ${DTS_SRC_DIR} -type f -name "*.dts") if [ -n "$dts_files" ]; then cp ${DTS_SRC_DIR}/*.dts* ${DTS_TARGET_DIR}