Skip to content

Commit

Permalink
Every overlay has to be included in the Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
RadxaYuntian committed Oct 20, 2023
1 parent 7aee601 commit 4ee11f8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/rockchip/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 4ee11f8

Please sign in to comment.