target/rockchip: fix legacy dts coping to boot

Fixes: ff7754c8af ('target/rockchip: supports boot from legacy uboot')
This commit is contained in:
Liangbin Lian 2025-02-05 19:36:01 +08:00
parent 78072c02f6
commit e1c4e8b899

View File

@ -52,7 +52,7 @@ define Build/boot-common-legacy
i=0; \
for dts in $(DEVICE_DTS); do \
$(CP) $(KDIR)/image-$${dts}.dtb $@.boot/rockchip$$(perl -e 'printf "%b\n",'$$i).dtb; \
$(CP) $(KDIR)/image-$${dts##*/}.dtb $@.boot/rockchip$$(perl -e 'printf "%b\n",'$$i).dtb || exit 1; \
let i+=1; \
done
$(LN) rockchip0.dtb $@.boot/rockchip.dtb