From 4ee11f8f1421f90b2e41e5cdc940c5ca47f48ef6 Mon Sep 17 00:00:00 2001 From: ZHANG Yuntian <95260730+RadxaYuntian@users.noreply.github.com> Date: Fri, 20 Oct 2023 16:41:51 +0800 Subject: [PATCH] Every overlay has to be included in the Makefile --- .github/workflows/build.yml | 19 +++++++++++++++++++ .../arm64/boot/dts/rockchip/overlays/Makefile | 1 + 2 files changed, 20 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 68310af4..250e8293 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,6 +24,25 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Check if there is missing files + shell: bash + run: | + MISSING=0 + for VENDOR in amlogic rockchip + do + OVERLAY_PATH="arch/arm64/boot/dts/$VENDOR/overlays" + for i in "$OVERLAY_PATH"/*.dts + do + OVERLAY_NAME="$(basename "$i")" + OVERLAY_NAME="${OVERLAY_NAME/.dts}.dtbo" + if ! grep "$OVERLAY_NAME" "${OVERLAY_PATH}/Makefile" >/dev/null 2>/dev/null + then + echo "$OVERLAY_NAME is not included in $VENDOR Makefile!" + MISSING=1 + fi + done + done + exit $MISSING - name: Install dependencies run: | sudo apt update diff --git a/arch/arm64/boot/dts/rockchip/overlays/Makefile b/arch/arm64/boot/dts/rockchip/overlays/Makefile index e59a7ce7..1ea5867a 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/Makefile +++ b/arch/arm64/boot/dts/rockchip/overlays/Makefile @@ -115,6 +115,7 @@ dtb-$(CONFIG_CLK_RK3568) += \ rk3568-i2c2-m1.dtbo \ rk3568-i2c3-m0.dtbo \ rk3568-i2c4-m0.dtbo \ + rk3568-npu-disable.dtbo \ rk3568-npu-enable.dtbo \ rk3568-pwm0-m0.dtbo \ rk3568-pwm0-m1.dtbo \