diff options
Diffstat (limited to 'target/linux/ramips/image/mt7621.mk')
-rw-r--r-- | target/linux/ramips/image/mt7621.mk | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index eedca7d190..fa87e40520 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -16,6 +16,23 @@ define Build/elecom-wrc-factory mv $@.new $@ endef +define Build/iodata-factory + $(eval fw_size=$(word 1,$(1))) + $(eval fw_type=$(word 2,$(1))) + $(eval product=$(word 3,$(1))) + $(eval factory_bin=$(word 4,$(1))) + if [ -e $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) -a "$$(stat -c%s $@)" -lt "$(fw_size)" ]; then \ + $(CP) $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) $(factory_bin); \ + $(STAGING_DIR_HOST)/bin/mksenaofw \ + -r 0x30a -p $(product) -t $(fw_type) \ + -e $(factory_bin) -o $(factory_bin).new; \ + mv $(factory_bin).new $(factory_bin); \ + $(CP) $(factory_bin) $(BIN_DIR)/; \ + else \ + echo "WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \ + fi +endef + define Build/ubnt-erx-factory-image if [ -e $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) -a "$$(stat -c%s $@)" -lt "$(KERNEL_SIZE)" ]; then \ echo '21001:6' > $(1).compat; \ @@ -136,6 +153,16 @@ define Device/hc5962 endef TARGET_DEVICES += hc5962 +define Device/iodata_wn-ax1167gr + DTS := WN-AX1167GR + IMAGE_SIZE := 15552k + KERNEL_INITRAMFS := $$(KERNEL) | \ + iodata-factory 7864320 4 0x1055 $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.bin + DEVICE_TITLE := I-O DATA WN-AX1167GR + DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-mini +endef +TARGET_DEVICES += iodata_wn-ax1167gr + define Device/iodata_wn-gx300gr DTS := WN-GX300GR IMAGE_SIZE := 7798784 |