target/rockchip: check rk3588 dts interrupt cells
This commit is contained in:
parent
c3bbca7d80
commit
b201c1a062
10
target/linux/rockchip/dts/rk3588/check.sh
Executable file
10
target/linux/rockchip/dts/rk3588/check.sh
Executable 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
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user