From c6d260b5008cd38e7dbda0c6f61489d6dfb286c5 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Sat, 20 Jul 2024 16:38:05 +0800 Subject: [PATCH] Patch:IGKBoard-IMX8MP: Add OV5640 camera support --- kernel/build.sh | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/kernel/build.sh b/kernel/build.sh index 8b1ac2e..04545ee 100755 --- a/kernel/build.sh +++ b/kernel/build.sh @@ -165,13 +165,17 @@ set -x cp -f arch/${ARCH}/boot/zImage $PRFX_PATH cp -f arch/${ARCH}/boot/dts/${BOARD}.dtb $PRFX_PATH - cp -f arch/${ARCH}/boot/dts/${BOARD}/*.dtbo $PRFX_PATH/overlays + if [ -d arch/${ARCH}/boot/dts/${BOARD} ] ; then + cp -f arch/${ARCH}/boot/dts/${BOARD}/*.dtbo $PRFX_PATH/overlays + fi set +x else set -x cp -f arch/${ARCH}/boot/Image $PRFX_PATH cp -f arch/${ARCH}/boot/dts/freescale/${BOARD}.dtb $PRFX_PATH - #cp -f arch/${ARCH}/boot/dts/freescale/${BOARD}/*.dtbo $PRFX_PATH/overlays + if [ -d arch/${ARCH}/boot/dts/${BOARD} ] ; then + cp -f arch/${ARCH}/boot/dts/${BOARD}/*.dtbo $PRFX_PATH/overlays + fi set +x fi @@ -197,7 +201,9 @@ pr_info "start ${BOARD} linux drivers" - cd $DRV_PATH && ./build.sh + if [ -d $DRV_PATH ] ; then + cd $DRV_PATH && ./build.sh + fi cd $PRJ_PATH } @@ -221,7 +227,9 @@ rm -rf $PRJ_PATH/tarballs rm -rf $PRFX_PATH - cd $DRV_PATH && ./build.sh -c + if [ -d $DRV_PATH ] ; then + cd $DRV_PATH && ./build.sh -c + fi cd } -- Gitblit v1.9.1