diff --git a/build.sh b/build.sh index 1c3dc88..b44d2eb 100755 --- a/build.sh +++ b/build.sh @@ -192,8 +192,10 @@ bitbake_image() { bitbake u-boot-socfpga -c cleanall echo -e "\n[INFO] Clean up previous ghrd build if any" bitbake hw-ref-design -c cleanall - echo -e "\n[INFO] Clean up previous dtb build if any" - bitbake device-tree -c cleanall + if [[ "$MACHINE" == *"agilex"* || "$MACHINE" == "stratix10" ]]; then + echo -e "\n[INFO] Clean up previous dtb build if any" + bitbake device-tree -c cleanall + fi echo -e "\n[INFO] Start bitbake process for target config.." bitbake console-image-minimal gsrd-console-image 2>&1