blob: b73f9c3d0fbd2c87baae6ceb4ba27e04f826cdff [file] [log] [blame]
developer20d67712022-03-02 14:09:32 +08001diff --git a/scripts/mkits.sh b/scripts/mkits.sh
developer56a5c542022-03-31 04:13:40 +08002index bb629d6..547a4eb 100755
developer20d67712022-03-02 14:09:32 +08003--- a/scripts/mkits.sh
4+++ b/scripts/mkits.sh
developer56a5c542022-03-31 04:13:40 +08005@@ -65,21 +65,21 @@ ARCH_UPPER=$(echo "$ARCH" | tr '[:lower:]' '[:upper:]')
developer20d67712022-03-02 14:09:32 +08006 # Conditionally create fdt information
7 if [ -n "${DTB}" ]; then
8 FDT_NODE="
9- fdt@$FDTNUM {
10+ fdt-$FDTNUM {
11 description = \"${ARCH_UPPER} OpenWrt ${DEVICE} device tree blob\";
12 data = /incbin/(\"${DTB}\");
13 type = \"flat_dt\";
14 arch = \"${ARCH}\";
15 compression = \"none\";
16- hash@1 {
17+ hash-1 {
18 algo = \"crc32\";
19 };
20- hash@2 {
21+ hash-2 {
22 algo = \"sha1\";
23 };
24 };
25 "
26- FDT_PROP="fdt = \"fdt@$FDTNUM\";"
27+ FDT_PROP="fdt = \"fdt-$FDTNUM\";"
28 fi
29
developer56a5c542022-03-31 04:13:40 +080030 # Create a default, fully populated DTS file
31@@ -90,7 +90,7 @@ DATA="/dts-v1/;
developer20d67712022-03-02 14:09:32 +080032 #address-cells = <1>;
33
34 images {
35- kernel@1 {
36+ kernel-1 {
37 description = \"${ARCH_UPPER} OpenWrt Linux-${VERSION}\";
38 data = /incbin/(\"${KERNEL}\");
39 type = \"kernel\";
developer56a5c542022-03-31 04:13:40 +080040@@ -99,10 +99,10 @@ DATA="/dts-v1/;
developer20d67712022-03-02 14:09:32 +080041 compression = \"${COMPRESS}\";
42 load = <${LOAD_ADDR}>;
43 entry = <${ENTRY_ADDR}>;
44- hash@1 {
45+ hash-1 {
46 algo = \"crc32\";
47 };
48- hash@2 {
49+ hash-2 {
50 algo = \"sha1\";
51 };
52 };
developer56a5c542022-03-31 04:13:40 +080053@@ -113,7 +113,7 @@ ${FDT_NODE}
54 default = \"${CONFIG}\";
55 ${CONFIG} {
developer20d67712022-03-02 14:09:32 +080056 description = \"OpenWrt\";
developer20d67712022-03-02 14:09:32 +080057- kernel = \"kernel@1\";
58+ kernel = \"kernel-1\";
59 ${FDT_PROP}
developer20d67712022-03-02 14:09:32 +080060 };
developer56a5c542022-03-31 04:13:40 +080061 };
developer20d67712022-03-02 14:09:32 +080062diff --git a/include/image-commands.mk b/include/image-commands.mk
63index 51e7459..5a3f624 100644
64--- a/include/image-commands.mk
65+++ b/include/image-commands.mk
66@@ -202,7 +202,7 @@ define Build/fit
67 $(if $(word 2,$(1)),-d $(word 2,$(1))) -C $(word 1,$(1)) \
68 -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
69 $(if $(DEVICE_FDT_NUM),-n $(DEVICE_FDT_NUM)) \
70- -c $(if $(DEVICE_DTS_CONFIG),$(DEVICE_DTS_CONFIG),"config@1") \
71+ -c $(if $(DEVICE_DTS_CONFIG),$(DEVICE_DTS_CONFIG),"config-1") \
72 -A $(LINUX_KARCH) -v $(LINUX_VERSION)
73 PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $@.its $@.new
74 @mv $@.new $@