netifd: packet_steering: fix shell error on unset steering_flows option
[openwrt/openwrt.git] / target / linux / bcm53xx / image / Makefile
1 # SPDX-License-Identifier: GPL-2.0-only
2 #
3 # Copyright (C) 2013 OpenWrt.org
4
5 include $(TOPDIR)/rules.mk
6 include $(INCLUDE_DIR)/image.mk
7
8 define Image/Prepare
9 rm -f $(KDIR)/fs_mark
10 echo -ne '\xde\xad\xc0\xde' > $(KDIR)/fs_mark
11 $(call prepare_generic_squashfs,$(KDIR)/fs_mark)
12
13 # For UBI we want only one extra block
14 rm -f $(KDIR)/ubi_mark
15 echo -ne '\xde\xad\xc0\xde' > $(KDIR)/ubi_mark
16 endef
17
18 define Build/lzma-d16
19 $(STAGING_DIR_HOST)/bin/lzma e $@ -d16 $(1) $@.new
20 mv $@.new $@
21 endef
22
23 # Similar to Build/tplink-safeloader but uses TRX instead of clean kernel
24 define Build/bcm53xx-tplink-safeloader
25 $(STAGING_DIR_HOST)/bin/trx \
26 -o $@.trx \
27 -m 33554432 \
28 -f $(IMAGE_KERNEL) -a 1024
29 $(STAGING_DIR_HOST)/bin/tplink-safeloader \
30 -B $(TPLINK_BOARD) \
31 -k $@.trx \
32 -r $@ \
33 -j \
34 -o $@.new
35 mv $@.new $@
36 rm $@.trx
37 endef
38
39 define Build/buffalo-wzr-header
40 $(eval product=$(word 1,$(1)))
41 $(eval region=$(word 2,$(1)))
42 ( \
43 echo $(product)_$(BUFFALO_TAG_VERSION)_$(BUFFALO_TAG_MINOR)_$(region)_$(BUFFALO_TAG_PLATFORM); \
44 echo filelen=$$(stat -c%s $@); \
45 cat $@ \
46 ) > $@.new
47 mv $@.new $@
48 endef
49
50 # TRX with only one (kernel) partition
51 define Build/trx
52 $(STAGING_DIR_HOST)/bin/trx \
53 -o $@.new \
54 -m 33554432 \
55 -f $@
56 mv $@.new $@
57 endef
58
59 define Build/trx-serial
60 $(STAGING_DIR_HOST)/bin/otrx create $@.new \
61 -f $(IMAGE_KERNEL) -a 1024 \
62 -f $@ -a 0x10000 -A $(KDIR)/fs_mark
63 mv $@.new $@
64 endef
65
66 define Build/trx-nand
67 # kernel: always use 4 MiB (-28 B or TRX header) to allow upgrades even
68 # if it grows up between releases
69 # root: UBI with one extra block containing UBI mark to trigger erasing
70 # rest of partition
71 $(STAGING_DIR_HOST)/bin/otrx create $@.new \
72 -f $(IMAGE_KERNEL) -a 0x20000 -b 0x400000 \
73 -f $@ \
74 -A $(KDIR)/ubi_mark -a 0x20000
75 mv $@.new $@
76 endef
77
78 define Build/asus-trx
79 $(STAGING_DIR_HOST)/bin/asustrx \
80 -p $(ASUS_PRODUCTID) -i $@ -o $@.new
81 mv $@.new $@
82 endef
83
84 define Build/luxul-lxl
85 $(STAGING_DIR_HOST)/bin/lxlfw create $@.new \
86 -i $@ \
87 -b $(LUXUL_BOARD)
88 mv $@.new $@
89 endef
90
91 # Outputs a lzma compressed U-Boot that start at 0x00008000
92 # just like the D-Link boot loaders expect
93 define Build/dlink-uboot-bin
94 $(STAGING_DIR_HOST)/bin/lzma e $(STAGING_DIR_IMAGE)/$(DEVICE_NAME)-u-boot.bin -d16 $@
95 endef
96
97 define Build/seama-nand
98 # Seama entity
99 $(STAGING_DIR_HOST)/bin/oseama \
100 entity $@.entity \
101 -m "dev=/dev/mtdblock/7" \
102 -m "type=firmware" \
103 -f $(IMAGE_KERNEL) \
104 -b 0x400000 \
105 -f $@ \
106 -f $(KDIR)/ubi_mark
107 # Seama container
108 $(STAGING_DIR_HOST)/bin/seama \
109 -s $@ \
110 -m "signature=$(SIGNATURE)" \
111 -i $@.entity
112 endef
113
114 define Build/dwl8610ap-image
115 mkdir -p $@.tmptar
116 # The DWL8610AP pretends to be a Broadcom reference design
117 echo "bcm953012er" > $@.tmptar/board
118 echo "LVL7" > $@.tmptar/model
119 # Something high beyond what D-Link has put out
120 echo "5.0.0.0" > $@.tmptar/version
121 # Create rootfs.bin, this is just a NAND image including everything
122 cp $@ $@.tmptar/rootfs.bin
123 # Hash the rootfs.bin
124 cat $@.tmptar/rootfs.bin | md5sum > $@.tmptar/rootfs.md5
125 cd $@.tmptar && tar -c -f $@.new *
126 rm -rf $@.tmptar
127 mv $@.new $@
128 endef
129
130 ifneq ($(KERNEL),5.15)
131 ifneq ($(KERNEL),6.1)
132 DTS_DIR := $(DTS_DIR)/broadcom
133 endif
134 endif
135
136 DEVICE_VARS += ASUS_PRODUCTID
137 DEVICE_VARS += BUFFALO_TAG_PLATFORM BUFFALO_TAG_VERSION BUFFALO_TAG_MINOR
138 DEVICE_VARS += SIGNATURE
139 DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_REGION TPLINK_BOARD
140 DEVICE_VARS += LUXUL_BOARD
141
142 IEEE8021X := wpad-basic-mbedtls
143 B43 := $(IEEE8021X) kmod-b43
144 BRCMFMAC_43602A1 := $(IEEE8021X) kmod-brcmfmac brcmfmac-firmware-43602a1-pcie
145 BRCMFMAC_4366B1 := $(IEEE8021X) kmod-brcmfmac brcmfmac-firmware-4366b1-pcie
146 BRCMFMAC_4366C0 := $(IEEE8021X) kmod-brcmfmac brcmfmac-firmware-4366c0-pcie
147 USB2_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-phy-bcm-ns-usb2
148 USB2_PACKAGES += kmod-usb-ledtrig-usbport
149 USB3_PACKAGES := $(USB2_PACKAGES) kmod-usb3 kmod-phy-bcm-ns-usb3
150
151 define Device/Default
152 PROFILES = Generic $$(DEVICE_NAME)
153 # .dtb files are prefixed by SoC type, e.g. bcm4708- which is not included in device/image names
154 # extract the full dtb name based on the device info
155 DEVICE_DTS := $(patsubst %.dtb,%,$(notdir $(wildcard $(if $(IB),$(KDIR),$(DTS_DIR))/*-$(subst _,-,$(1)).dtb)))
156 KERNEL := kernel-bin | append-dtb | lzma-d16
157 KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
158 KERNEL_INITRAMFS_SUFFIX := .trx
159 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma-d16 | trx
160 FILESYSTEMS := squashfs
161 KERNEL_NAME := zImage
162 DEVICE_IMG_NAME = $$(DEVICE_IMG_PREFIX)-$$(1).$$(2)
163 IMAGES := trx
164 BLOCKSIZE := 128k
165 PAGESIZE := 2048
166 IMAGE/trx := append-ubi | trx-nand
167 endef
168
169 define Device/asus
170 DEVICE_VENDOR := ASUS
171 IMAGES := trx
172 IMAGE/trx := append-ubi | trx-nand | asus-trx
173 endef
174
175 define Device/asus_rt-ac3100
176 $(call Device/asus)
177 DEVICE_MODEL := RT-AC3100
178 DEVICE_PACKAGES := $(BRCMFMAC_4366B1) $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
179 ASUS_PRODUCTID := RT-AC3100
180 endef
181 TARGET_DEVICES += asus_rt-ac3100
182
183 define Device/asus_rt-ac56u
184 $(call Device/asus)
185 DEVICE_MODEL := RT-AC56U
186 DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
187 ASUS_PRODUCTID := RT-AC56U
188 endef
189 TARGET_DEVICES += asus_rt-ac56u
190
191 define Device/asus_rt-ac68u
192 $(call Device/asus)
193 DEVICE_MODEL := RT-AC68U
194 DEVICE_PACKAGES := $(USB3_PACKAGES)
195 ASUS_PRODUCTID := RT-AC68U
196 endef
197 TARGET_DEVICES += asus_rt-ac68u
198
199 define Device/asus_rt-ac87u
200 $(call Device/asus)
201 DEVICE_MODEL := RT-AC87U
202 DEVICE_PACKAGES := $(USB3_PACKAGES)
203 ASUS_PRODUCTID := RT-AC87U
204 endef
205 TARGET_DEVICES += asus_rt-ac87u
206
207 define Device/asus_rt-ac88u
208 $(call Device/asus)
209 DEVICE_MODEL := RT-AC88U
210 DEVICE_PACKAGES := $(BRCMFMAC_4366B1) $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
211 ASUS_PRODUCTID := RT-AC88U
212 endef
213 TARGET_DEVICES += asus_rt-ac88u
214
215 define Device/asus_rt-n18u
216 $(call Device/asus)
217 DEVICE_MODEL := RT-N18U
218 DEVICE_PACKAGES := $(USB3_PACKAGES)
219 ASUS_PRODUCTID := RT-N18U
220 endef
221 TARGET_DEVICES += asus_rt-n18u
222
223 # Buffalo devices have TFTP recovery mode which can work nicely with initramfs
224 # kernels.
225 # We should have two initramfs images for Buffalo: plain initramfs kernel and
226 # TRX with initramfs kernel. It's not possible right now so let's just build
227 # plain initramfs kernel as it may be more useful.
228 define Device/buffalo/Default
229 DEVICE_VENDOR := Buffalo
230 KERNEL_INITRAMFS_SUFFIX = $$(KERNEL_SUFFIX)
231 KERNEL_INITRAMFS = $$(KERNEL)
232 endef
233
234 define Device/buffalo_wxr-1900dhp
235 $(call Device/buffalo/Default)
236 DEVICE_MODEL := WXR-1900DHP
237 DEVICE_PACKAGES := $(USB3_PACKAGES)
238 endef
239 TARGET_DEVICES += buffalo_wxr-1900dhp
240
241 define Device/buffalo_wzr-600dhp2
242 $(call Device/buffalo/Default)
243 DEVICE_MODEL := WZR-600DHP2
244 DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
245 endef
246 TARGET_DEVICES += buffalo_wzr-600dhp2
247
248 define Device/buffalo_wzr-900dhp
249 $(call Device/buffalo/Default)
250 DEVICE_MODEL := WZR-900DHP
251 DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
252 BUFFALO_TAG_PLATFORM := bcm
253 BUFFALO_TAG_VERSION := 9.99
254 BUFFALO_TAG_MINOR := 9.99
255 IMAGES += factory-DHP-EU.bin factory-DHP2-JP.bin
256 IMAGE/factory-DHP-EU.bin := \
257 append-ubi | trx-nand | buffalo-wzr-header WZR-900DHP EU | \
258 buffalo-enc WZR-900DHP $$(BUFFALO_TAG_VERSION) | \
259 buffalo-tag-dhp WZR-900DHP EU mlang20 | buffalo-enc-tag | \
260 buffalo-dhp-image
261 IMAGE/factory-DHP2-JP.bin := \
262 append-ubi | trx-nand | buffalo-wzr-header WZR-900DHP2 JP | \
263 buffalo-enc WZR-900DHP2 $$(BUFFALO_TAG_VERSION) | \
264 buffalo-tag-dhp WZR-900DHP2 JP jp | buffalo-enc-tag | \
265 buffalo-dhp-image
266 endef
267 TARGET_DEVICES += buffalo_wzr-900dhp
268
269 define Device/buffalo_wzr-1750dhp
270 $(call Device/buffalo/Default)
271 DEVICE_MODEL := WZR-1750DHP
272 DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
273 endef
274 TARGET_DEVICES += buffalo_wzr-1750dhp
275
276 define Device/dlink
277 DEVICE_VENDOR := D-Link
278 IMAGES := bin
279 IMAGE/bin := append-ubi | seama-nand
280 endef
281
282 define Device/dlink_dir-885l
283 DEVICE_MODEL := DIR-885L
284 DEVICE_PACKAGES := $(BRCMFMAC_4366B1) $(USB3_PACKAGES)
285 $(Device/dlink)
286 SIGNATURE := wrgac42_dlink.2015_dir885l
287 endef
288 TARGET_DEVICES += dlink_dir-885l
289
290 define Device/dlink_dir-890l
291 DEVICE_VENDOR := D-Link
292 DEVICE_MODEL := DIR-890L
293 DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB2_PACKAGES) $(USB3_PACKAGES)
294 # Layout: U-boot (128kb max) followed by kernel and appended DTB.
295 # This is done because the boot loader will only read the first 2 MB
296 # from the flash and decompress the LZMA it finds there after the
297 # SEAMA header. Since the compressed kernel will not fit in 2 MB,
298 # we put U-Boot there and let U-Boot read and execute the kernel.
299 KERNEL := dlink-uboot-bin | pad-to 128k | append-kernel | append-dtb
300 $(Device/dlink)
301 SIGNATURE := wrgac36_dlink.2013gui_dir890
302 endef
303 TARGET_DEVICES += dlink_dir-890l
304
305 define Device/dlink_dwl-8610ap
306 DEVICE_VENDOR := D-Link
307 DEVICE_MODEL := DWL-8610AP
308 DEVICE_PACKAGES := $(B43)
309 IMAGES := factory.tar
310 IMAGE/factory.tar := append-ubi | trx-nand | dwl8610ap-image
311 endef
312 TARGET_DEVICES += dlink_dwl-8610ap
313
314 define Device/linksys_ea6300-v1
315 DEVICE_VENDOR := Linksys
316 DEVICE_MODEL := EA6300
317 DEVICE_VARIANT := v1
318 DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
319 endef
320 TARGET_DEVICES += linksys_ea6300-v1
321
322 define Device/linksys_ea6500-v2
323 DEVICE_VENDOR := Linksys
324 DEVICE_MODEL := EA6500
325 DEVICE_VARIANT := v2
326 DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
327 endef
328 TARGET_DEVICES += linksys_ea6500-v2
329
330 define Device/linksys_ea9200
331 DEVICE_VENDOR := Linksys
332 DEVICE_MODEL := EA9200
333 DEVICE_VARIANT := v1
334 DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB3_PACKAGES)
335 endef
336 TARGET_DEVICES += linksys_ea9200
337
338 define Device/linksys_ea9500
339 DEVICE_VENDOR := Linksys
340 DEVICE_MODEL := EA9500
341 DEVICE_PACKAGES := $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
342 DEVICE_DTS := bcm47094-linksys-panamera
343 endef
344 TARGET_DEVICES += linksys_ea9500
345
346 define Device/luxul
347 DEVICE_VENDOR := Luxul
348 IMAGES := lxl
349 IMAGE/lxl := append-ubi | trx-nand | luxul-lxl
350 endef
351
352 define Device/luxul_abr-4500
353 $(Device/luxul)
354 DEVICE_MODEL := ABR-4500
355 DEVICE_PACKAGES := $(USB3_PACKAGES)
356 LUXUL_BOARD := ABR-4500
357 endef
358 TARGET_DEVICES += luxul_abr-4500
359
360 define Device/luxul_xap-1610
361 $(Device/luxul)
362 DEVICE_MODEL := XAP-1610
363 DEVICE_PACKAGES := $(BRCMFMAC_4366C0)
364 IMAGE/lxl := append-rootfs | trx-serial | luxul-lxl
365 LUXUL_BOARD := XAP-1610
366 endef
367 TARGET_DEVICES += luxul_xap-1610
368
369 define Device/luxul_xbr-4500
370 $(Device/luxul)
371 DEVICE_MODEL := XBR-4500
372 DEVICE_PACKAGES := $(USB3_PACKAGES)
373 LUXUL_BOARD := XBR-4500
374 endef
375 TARGET_DEVICES += luxul_xbr-4500
376
377 define Device/luxul_xwr-3150
378 $(Device/luxul)
379 DEVICE_MODEL := XWR-3150
380 DEVICE_PACKAGES := $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
381 DEVICE_DTS := bcm47094-luxul-xwr-3150-v1
382 LUXUL_BOARD := XWR-3150
383 endef
384 TARGET_DEVICES += luxul_xwr-3150
385
386 define Device/meraki_mr26
387 DEVICE_VENDOR := Meraki
388 DEVICE_MODEL := MR26
389 DEVICE_PACKAGES := $(B43) kmod-i2c-bcm-iproc kmod-eeprom-at24 \
390 kmod-hwmon-ina2xx kmod-leds-uleds nu801
391 DEVICE_DTS := bcm53015-meraki-mr26
392 # resize the initramfs to fit the size of the existing part.safe.
393 KERNEL_LOADADDR := 0x00008000
394 KERNEL_INITRAMFS_SUFFIX := .bin
395 KERNEL_INITRAMFS := kernel-bin | append-dtb | gzip | uImage gzip | pad-to 9310208
396 # LZMA is not supported by the uboot
397 KERNEL := kernel-bin | append-dtb | gzip | uImage gzip
398 IMAGES += sysupgrade.bin
399 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
400 endef
401 TARGET_DEVICES += meraki_mr26
402
403 define Device/meraki_mr32
404 DEVICE_VENDOR := Meraki
405 DEVICE_MODEL := MR32
406 DEVICE_PACKAGES := $(B43) kmod-i2c-bcm-iproc kmod-eeprom-at24 \
407 kmod-leds-pwm kmod-hwmon-ina2xx kmod-bluetooth
408 DEVICE_DTS := bcm53016-meraki-mr32
409 # Meraki FW r23 tries to resize the part.safe partition before it will
410 # flash the image. This is a bit of a problem, since resizing will fail
411 # if the partition is smaller than the old one.
412 KERNEL_LOADADDR := 0x00008000
413 KERNEL_INITRAMFS_SUFFIX := .bin
414 DEVICE_DTS_DELIMITER := @
415 DEVICE_DTS_CONFIG := config@1
416 KERNEL_INITRAMFS := kernel-bin | fit none $$(DTS_DIR)/$$(DEVICE_DTS).dtb | \
417 pad-to 10362880
418 KERNEL := kernel-bin | fit none $$(DTS_DIR)/$$(DEVICE_DTS).dtb
419 IMAGES += sysupgrade.bin
420 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
421
422 # The loader is specifically looking for fdt@2:
423 # [ 3.190000] find_itb_subimage: error finding fdt@2: FDT_ERR_NOTFOUND
424 # The image won't boot, if it isn't found. :(
425 DEVICE_FDT_NUM := 2
426 endef
427 TARGET_DEVICES += meraki_mr32
428
429 define Device/netgear
430 DEVICE_VENDOR := NETGEAR
431 IMAGES := chk
432 IMAGE/chk := append-ubi | trx-nand | netgear-chk
433 NETGEAR_REGION := 1
434 endef
435
436 define Device/netgear_r6250
437 DEVICE_MODEL := R6250
438 DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
439 $(Device/netgear)
440 NETGEAR_BOARD_ID := U12H245T00_NETGEAR
441 endef
442 TARGET_DEVICES += netgear_r6250
443
444 define Device/netgear_r6300-v2
445 DEVICE_MODEL := R6300
446 DEVICE_VARIANT := v2
447 DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
448 $(Device/netgear)
449 NETGEAR_BOARD_ID := U12H240T00_NETGEAR
450 endef
451 TARGET_DEVICES += netgear_r6300-v2
452
453 define Device/netgear_r7000
454 DEVICE_MODEL := R7000
455 DEVICE_PACKAGES := $(USB3_PACKAGES)
456 $(Device/netgear)
457 NETGEAR_BOARD_ID := U12H270T00_NETGEAR
458 endef
459 TARGET_DEVICES += netgear_r7000
460
461 define Device/netgear_r7900
462 DEVICE_MODEL := R7900
463 DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB3_PACKAGES)
464 $(Device/netgear)
465 NETGEAR_BOARD_ID := U12H315T30_NETGEAR
466 endef
467 TARGET_DEVICES += netgear_r7900
468
469 define Device/netgear_r8000
470 DEVICE_MODEL := R8000
471 DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB3_PACKAGES)
472 $(Device/netgear)
473 NETGEAR_BOARD_ID := U12H315T00_NETGEAR
474 endef
475 TARGET_DEVICES += netgear_r8000
476
477 define Device/netgear_r8500
478 DEVICE_MODEL := R8500
479 DEVICE_PACKAGES := $(BRCMFMAC_4366B1) $(USB3_PACKAGES)
480 $(Device/netgear)
481 NETGEAR_BOARD_ID := U12H334T00_NETGEAR
482 DEFAULT := n
483 endef
484 TARGET_DEVICES += netgear_r8500
485
486 define Device/smartrg_sr400ac
487 DEVICE_VENDOR := SmartRG
488 DEVICE_MODEL := SR400ac
489 DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB3_PACKAGES)
490 IMAGES := trx
491 IMAGE/trx := append-rootfs | trx-serial
492 KERNEL_INITRAMFS_SUFFIX := .bin
493 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma-d16
494 endef
495 TARGET_DEVICES += smartrg_sr400ac
496
497 define Device/phicomm_k3
498 DEVICE_VENDOR := PHICOMM
499 DEVICE_MODEL := K3
500 DEVICE_ALT0_VENDOR := Wavlink
501 DEVICE_ALT0_MODEL := QUANTUM DAX
502 DEVICE_ALT1_VENDOR := Wavlink
503 DEVICE_ALT1_MODEL := WL-WN538A8
504 DEVICE_PACKAGES := $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
505 IMAGES := trx
506 endef
507 TARGET_DEVICES += phicomm_k3
508
509 define Device/tenda_ac9
510 DEVICE_VENDOR := Tenda
511 DEVICE_MODEL := AC9
512 DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
513 IMAGES := trx
514 IMAGE/trx := append-rootfs | trx-serial
515 endef
516 TARGET_DEVICES += tenda_ac9
517
518 define Device/tplink_archer-c5-v2
519 DEVICE_VENDOR := TP-Link
520 DEVICE_MODEL := Archer C5
521 DEVICE_VARIANT := v2
522 DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
523 IMAGES := bin
524 IMAGE/bin := append-rootfs | bcm53xx-tplink-safeloader
525 TPLINK_BOARD := ARCHER-C5-V2
526 BROKEN := y
527 endef
528 #TARGET_DEVICES += tplink_archer-c5-v2
529
530 define Device/tplink_archer-c9-v1
531 DEVICE_VENDOR := TP-Link
532 DEVICE_MODEL := Archer C9
533 DEVICE_VARIANT := v1
534 DEVICE_PACKAGES := $(USB3_PACKAGES)
535 IMAGES := bin
536 IMAGE/bin := append-rootfs | bcm53xx-tplink-safeloader
537 TPLINK_BOARD := ARCHERC9
538 BROKEN := y
539 endef
540 #TARGET_DEVICES += tplink_archer-c9-v1
541
542 $(eval $(call BuildImage))