developer | 20d6771 | 2022-03-02 14:09:32 +0800 | [diff] [blame] | 1 | diff --git a/scripts/mkits.sh b/scripts/mkits.sh |
developer | 56a5c54 | 2022-03-31 04:13:40 +0800 | [diff] [blame] | 2 | index bb629d6..547a4eb 100755 |
developer | 20d6771 | 2022-03-02 14:09:32 +0800 | [diff] [blame] | 3 | --- a/scripts/mkits.sh |
| 4 | +++ b/scripts/mkits.sh |
developer | 56a5c54 | 2022-03-31 04:13:40 +0800 | [diff] [blame] | 5 | @@ -65,21 +65,21 @@ ARCH_UPPER=$(echo "$ARCH" | tr '[:lower:]' '[:upper:]') |
developer | 20d6771 | 2022-03-02 14:09:32 +0800 | [diff] [blame] | 6 | # 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 | |
developer | 56a5c54 | 2022-03-31 04:13:40 +0800 | [diff] [blame] | 30 | # Create a default, fully populated DTS file |
| 31 | @@ -90,7 +90,7 @@ DATA="/dts-v1/; |
developer | 20d6771 | 2022-03-02 14:09:32 +0800 | [diff] [blame] | 32 | #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\"; |
developer | 56a5c54 | 2022-03-31 04:13:40 +0800 | [diff] [blame] | 40 | @@ -99,10 +99,10 @@ DATA="/dts-v1/; |
developer | 20d6771 | 2022-03-02 14:09:32 +0800 | [diff] [blame] | 41 | 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 | }; |
developer | 56a5c54 | 2022-03-31 04:13:40 +0800 | [diff] [blame] | 53 | @@ -113,7 +113,7 @@ ${FDT_NODE} |
| 54 | default = \"${CONFIG}\"; |
| 55 | ${CONFIG} { |
developer | 20d6771 | 2022-03-02 14:09:32 +0800 | [diff] [blame] | 56 | description = \"OpenWrt\"; |
developer | 20d6771 | 2022-03-02 14:09:32 +0800 | [diff] [blame] | 57 | - kernel = \"kernel@1\"; |
| 58 | + kernel = \"kernel-1\"; |
| 59 | ${FDT_PROP} |
developer | 20d6771 | 2022-03-02 14:09:32 +0800 | [diff] [blame] | 60 | }; |
developer | 56a5c54 | 2022-03-31 04:13:40 +0800 | [diff] [blame] | 61 | }; |
developer | 20d6771 | 2022-03-02 14:09:32 +0800 | [diff] [blame] | 62 | diff --git a/include/image-commands.mk b/include/image-commands.mk |
| 63 | index 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 $@ |