6 $(STAGING_DIR_HOST)/bin/seama -i $@ $(1)
10 define Build/seama-seal
11 $(call Build/seama,-s $@.seama $(1))
14 define Build/ubnt-erx-factory-image
15 if [ -e $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) -a "$$(stat -c%s $@)" -lt "$(KERNEL_SIZE)" ]; then \
16 echo '21001:6' > $(1).compat; \
17 $(TAR) -cf $(1) --transform='s/^.*/compat/' $(1).compat; \
19 $(TAR) -rf $(1) --transform='s/^.*/vmlinux.tmp/' $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE); \
20 md5sum --binary $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) | awk '{print $$1}'> $(1).md5; \
21 $(TAR) -rf $(1) --transform='s/^.*/vmlinux.tmp.md5/' $(1).md5; \
23 echo "dummy" > $(1).rootfs; \
24 $(TAR) -rf $(1) --transform='s/^.*/squashfs.tmp/' $(1).rootfs; \
26 md5sum --binary $(1).rootfs | awk '{print $$1}'> $(1).md5; \
27 $(TAR) -rf $(1) --transform='s/^.*/squashfs.tmp.md5/' $(1).md5; \
29 echo '$(BOARD) $(VERSION_CODE) $(VERSION_NUMBER)' > $(1).version; \
30 $(TAR) -rf $(1) --transform='s/^.*/version.tmp/' $(1).version; \
32 $(CP) $(1) $(BIN_DIR)/; \
34 echo "WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
40 IMAGE_SIZE := $(ralink_default_fw_size_4M)
41 DEVICE_TITLE := MediaTek MT7621 EVB
43 TARGET_DEVICES += mt7621
47 IMAGE_SIZE := $(ralink_default_fw_size_16M)
48 DEVICE_TITLE := Buffalo WSR-600
50 TARGET_DEVICES += wsr-600
54 DEVICE_TITLE := Linksys RE6500
56 TARGET_DEVICES += re6500
58 define Device/wsr-1166
60 IMAGE/sysupgrade.bin := trx | pad-rootfs
61 IMAGE_SIZE := $(ralink_default_fw_size_16M)
62 DEVICE_TITLE := Buffalo WSR-1166
64 TARGET_DEVICES += wsr-1166
66 define Device/dir-860l-b1
69 KERNEL := kernel-bin | patch-dtb | relocate-kernel | lzma | uImage lzma
70 IMAGE_SIZE := $(ralink_default_fw_size_16M)
71 IMAGE/sysupgrade.bin := \
72 append-kernel | pad-offset 65536 64 | append-rootfs | \
73 seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
74 pad-rootfs | check-size $$$$(IMAGE_SIZE)
75 IMAGE/factory.bin := \
76 append-kernel | pad-offset 65536 64 | append-rootfs | pad-rootfs -x 64 | \
77 seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
78 seama-seal -m "signature=wrgac13_dlink.2013gui_dir860lb" | \
79 check-size $$$$(IMAGE_SIZE)
80 DEVICE_TITLE := D-Link DIR-860L B1
82 TARGET_DEVICES += dir-860l-b1
86 IMAGE_SIZE := $(ralink_default_fw_size_16M)
87 DEVICE_TITLE := Firefly FireWRT
88 DEVICE_PACKAGES := kmod-usb3 kmod-ledtrig-usbdev
90 TARGET_DEVICES += firewrt
94 IMAGE_SIZE := $(ralink_default_fw_size_16M)
95 DEVICE_TITLE := PBR-M1
96 DEVICE_PACKAGES := kmod-usb3 kmod-ledtrig-usbdev kmod-ata-core kmod-ata-ahci \
97 kmod-rtc-pcf8563 kmod-i2c-mt7621
99 TARGET_DEVICES += pbr-m1
101 define Device/sap-g3200u3
103 DEVICE_TITLE := STORYLiNK SAP-G3200U3
104 DEVICE_PACKAGES := kmod-usb3 kmod-ledtrig-usbdev
106 TARGET_DEVICES += sap-g3200u3
108 define Device/timecloud
110 DEVICE_TITLE := Thunder Timecloud
111 DEVICE_PACKAGES := kmod-usb3
113 TARGET_DEVICES += timecloud
117 IMAGE_SIZE := $(ralink_default_fw_size_16M)
118 DEVICE_TITLE := MQmaker WiTi
119 DEVICE_PACKAGES := kmod-usb3 kmod-ledtrig-usbdev kmod-ata-core kmod-ata-ahci \
120 kmod-rtc-pcf8563 kmod-i2c-mt7621
122 TARGET_DEVICES += witi
124 define Device/wndr3700v5
126 IMAGE_SIZE := $(ralink_default_fw_size_16M)
127 DEVICE_TITLE := Netgear WNDR3700v5
128 DEVICE_PACKAGES := kmod-usb3
130 TARGET_DEVICES += wndr3700v5
132 define Device/zbt-wg2626
134 IMAGE_SIZE := $(ralink_default_fw_size_16M)
135 DEVICE_TITLE := ZBT WG2626
136 DEVICE_PACKAGES := kmod-usb3 kmod-ledtrig-usbdev kmod-ata-core kmod-ata-ahci
138 TARGET_DEVICES += zbt-wg2626
140 define Device/zbt-wg3526
142 IMAGE_SIZE := $(ralink_default_fw_size_16M)
143 DEVICE_TITLE := ZBT WG3526
144 DEVICE_PACKAGES := kmod-usb3 kmod-ledtrig-usbdev kmod-ata-core kmod-ata-ahci
146 TARGET_DEVICES += zbt-wg3526
148 define Device/wf-2881
152 FILESYSTEMS := squashfs
153 IMAGE_SIZE := 129280k
154 KERNEL := $(KERNEL_DTB) | pad-offset $$(BLOCKSIZE) 64 | uImage lzma
155 IMAGE/sysupgrade.bin := append-kernel | append-ubi | check-size $$$$(IMAGE_SIZE)
156 DEVICE_TITLE := NETIS WF-2881
157 DEVICE_PACKAGES := kmod-usb3 kmod-ledtrig-usbdev
159 TARGET_DEVICES += wf-2881
161 define Device/ubnt-erx
163 FILESYSTEMS := squashfs
164 KERNEL_SIZE := 3145728
165 KERNEL := $(KERNEL_DTB) | uImage lzma
166 IMAGES := sysupgrade.tar
167 KERNEL_INITRAMFS := $$(KERNEL) | ubnt-erx-factory-image $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.tar
168 IMAGE/sysupgrade.tar := sysupgrade-tar
169 DEVICE_TITLE := Ubiquiti EdgeRouter X
170 DEVICE_PACKAGES := -kmod-mt76 -kmod-rt2800-pci -kmod-cfg80211 -wpad-mini -iwinfo
172 TARGET_DEVICES += ubnt-erx
176 IMAGE_SIZE := $(ralink_default_fw_size_16M)
177 DEVICE_TITLE := SamKnows Whitebox 8
178 DEVICE_PACKAGES := kmod-usb3 kmod-ledtrig-usbdev uboot-envtools
180 TARGET_DEVICES += sk-wb8
182 # FIXME: is this still needed?
184 #define Build/Compile
185 rm -rf $(KDIR)/relocate
186 $(CP) ../../generic/image/relocate $(KDIR)
187 $(MAKE) -C $(KDIR)/relocate KERNEL_ADDR=$(KERNEL_LOADADDR) CROSS_COMPILE=$(TARGET_CROSS)
188 $(CP) $(KDIR)/relocate/loader.bin $(KDIR)/loader.bin