target/rockchip: check rk3588 dts interrupt cells

This commit is contained in:
Liangbin Lian 2025-04-01 18:46:25 +08:00
parent c3bbca7d80
commit b201c1a062
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,10 @@
# grep -onE '<\s*GIC_[SP]PI\s+[0-9]+\s+\w+\s+&?\w+\s*>' *.dts *.dtsi
if grep -onE '<\s*GIC_[SP]PI\s+[0-9]+\s+\w+\s*>' rk3588*.dts rk3588*.dtsi >&2 ; then
echo >&2
echo "ERROR: RK3588 dts interrupt-cells is 4" >&2
echo " But some files in dts/rk3588 only have 3 cells, see above!" >&2
exit 1
fi
exit 0

View File

@ -6,6 +6,7 @@ include $(INCLUDE_DIR)/image.mk
DEVICE_VARS += UBOOT_DEVICE_NAME
define Build/Compile
(cd ../dts/rk3588 && ./check.sh)
$(CP) $(LINUX_DIR)/COPYING $(KDIR)/COPYING.linux
endef