Makefile 14.8 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0-only
2 3
#
# Copyright (C) 2013 OpenWrt.org
4

5 6 7 8 9 10 11
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/image.mk

define Image/Prepare
	rm -f $(KDIR)/fs_mark
	echo -ne '\xde\xad\xc0\xde' > $(KDIR)/fs_mark
	$(call prepare_generic_squashfs,$(KDIR)/fs_mark)
12

13 14 15
	# For UBI we want only one extra block
	rm -f $(KDIR)/ubi_mark
	echo -ne '\xde\xad\xc0\xde' > $(KDIR)/ubi_mark
16 17
endef

18 19
define Build/lzma-d16
	$(STAGING_DIR_HOST)/bin/lzma e $@ -d16 $(1) $@.new
20
	mv $@.new $@
21 22
endef

23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
# Similar to Build/tplink-safeloader but uses TRX instead of clean kernel
define Build/bcm53xx-tplink-safeloader
	$(STAGING_DIR_HOST)/bin/trx \
		-o $@.trx \
		-m 33554432 \
		-f $(IMAGE_KERNEL) -a 1024
	$(STAGING_DIR_HOST)/bin/tplink-safeloader \
		-B $(TPLINK_BOARD) \
		-k $@.trx \
		-r $@ \
		-j \
		-o $@.new
	mv $@.new $@
	rm $@.trx
endef

39 40 41 42 43 44 45 46 47 48 49
define Build/buffalo-wzr-header
	$(eval product=$(word 1,$(1)))
	$(eval region=$(word 2,$(1)))
	( \
		echo $(product)_$(BUFFALO_TAG_VERSION)_$(BUFFALO_TAG_MINOR)_$(region)_$(BUFFALO_TAG_PLATFORM); \
		echo filelen=$$(stat -c%s $@); \
		cat $@ \
	) > $@.new
	mv $@.new $@
endef

50 51 52 53 54 55 56 57 58
# TRX with only one (kernel) partition
define Build/trx
	$(STAGING_DIR_HOST)/bin/trx \
		-o $@.new \
		-m 33554432 \
		-f $@
	mv $@.new $@
endef

59
define Build/trx-serial
60
	$(STAGING_DIR_HOST)/bin/otrx create $@.new \
61
		-f $(IMAGE_KERNEL) -a 1024 \
62 63
		-f $@ -a 0x10000 -A $(KDIR)/fs_mark
	mv $@.new $@
64 65
endef

66
define Build/trx-nand
67 68
	# kernel: always use 4 MiB (-28 B or TRX header) to allow upgrades even
	#	  if it grows up between releases
69 70
	# root: UBI with one extra block containing UBI mark to trigger erasing
	#	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 77
endef

78 79
define Build/asus-trx
	$(STAGING_DIR_HOST)/bin/asustrx \
80
		-p $(ASUS_PRODUCTID) -i $@ -o $@.new
81 82 83
	mv $@.new $@
endef

84 85 86 87 88 89 90
define Build/luxul-lxl
	$(STAGING_DIR_HOST)/bin/lxlfw create $@.new \
		-i $@ \
		-b $(LUXUL_BOARD)
	mv $@.new $@
endef

91 92 93 94 95 96
# Outputs a lzma compressed U-Boot that start at 0x00008000
# just like the D-Link boot loaders expect
define Build/dlink-uboot-bin
	$(STAGING_DIR_HOST)/bin/lzma e $(STAGING_DIR_IMAGE)/$(DEVICE_NAME)-u-boot.bin -d16 $@
endef

97 98 99 100 101 102
define Build/seama-nand
	# Seama entity
	$(STAGING_DIR_HOST)/bin/oseama \
		entity $@.entity \
		-m "dev=/dev/mtdblock/7" \
		-m "type=firmware" \
103
		-f $(IMAGE_KERNEL) \
104
		-b 0x400000 \
105
		-f $@ \
106 107 108 109 110 111 112 113
		-f $(KDIR)/ubi_mark
	# Seama container
	$(STAGING_DIR_HOST)/bin/seama \
		-s $@ \
		-m "signature=$(SIGNATURE)" \
		-i $@.entity
endef

114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
define Build/dwl8610ap-image
	mkdir -p $@.tmptar
	# The DWL8610AP pretends to be a Broadcom reference design
	echo "bcm953012er" > $@.tmptar/board
	echo "LVL7" > $@.tmptar/model
	# Something high beyond what D-Link has put out
	echo "5.0.0.0" > $@.tmptar/version
	# Create rootfs.bin, this is just a NAND image including everything
	cp $@ $@.tmptar/rootfs.bin
	# Hash the rootfs.bin
	cat $@.tmptar/rootfs.bin | md5sum > $@.tmptar/rootfs.md5
	cd $@.tmptar && tar -c -f $@.new *
	rm -rf $@.tmptar
	mv $@.new $@
endef

130
DEVICE_VARS += ASUS_PRODUCTID
131
DEVICE_VARS += BUFFALO_TAG_PLATFORM BUFFALO_TAG_VERSION BUFFALO_TAG_MINOR
132 133
DEVICE_VARS += SIGNATURE
DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_REGION TPLINK_BOARD
134
DEVICE_VARS += LUXUL_BOARD
135

136
IEEE8021X := wpad-basic-mbedtls
137 138 139
B43 := $(IEEE8021X) kmod-b43
BRCMFMAC_43602A1 := $(IEEE8021X) kmod-brcmfmac brcmfmac-firmware-43602a1-pcie
BRCMFMAC_4366B1 := $(IEEE8021X) kmod-brcmfmac brcmfmac-firmware-4366b1-pcie
140
BRCMFMAC_4366C0 := $(IEEE8021X) kmod-brcmfmac brcmfmac-firmware-4366c0-pcie
141
USB2_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-phy-bcm-ns-usb2
142
USB2_PACKAGES += kmod-usb-ledtrig-usbport
143
USB3_PACKAGES := $(USB2_PACKAGES) kmod-usb3 kmod-phy-bcm-ns-usb3
144

145 146 147
define Device/Default
  # .dtb files are prefixed by SoC type, e.g. bcm4708- which is not included in device/image names
  # extract the full dtb name based on the device info
148
  DEVICE_DTS := $(patsubst %.dtb,%,$(notdir $(wildcard $(if $(IB),$(KDIR),$(DTS_DIR))/*-$(subst _,-,$(1)).dtb)))
149
  KERNEL := kernel-bin | append-dtb | lzma-d16
150
  KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
151 152
  KERNEL_INITRAMFS_SUFFIX := .trx
  KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma-d16 | trx
153
  FILESYSTEMS := squashfs
154
  KERNEL_NAME := zImage
155
  DEVICE_IMG_NAME = $$(DEVICE_IMG_PREFIX)-$$(1).$$(2)
156
  IMAGES := trx
157
  BLOCKSIZE := 128k
158 159
  PAGESIZE := 2048
  IMAGE/trx := append-ubi | trx-nand
160 161
endef

162
define Device/asus
163
  DEVICE_VENDOR := ASUS
164
  IMAGES := trx
165
  IMAGE/trx := append-ubi | trx-nand | asus-trx
166 167
endef

168 169 170 171 172 173 174 175
define Device/asus_rt-ac3100
  $(call Device/asus)
  DEVICE_MODEL := RT-AC3100
  DEVICE_PACKAGES := $(BRCMFMAC_4366B1) $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
  ASUS_PRODUCTID := RT-AC3100
endef
TARGET_DEVICES += asus_rt-ac3100

176
define Device/asus_rt-ac56u
177
  $(call Device/asus)
M
Moritz Warning 已提交
178
  DEVICE_MODEL := RT-AC56U
179
  DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
180
  ASUS_PRODUCTID := RT-AC56U
181
endef
182
TARGET_DEVICES += asus_rt-ac56u
183

184
define Device/asus_rt-ac68u
185
  $(call Device/asus)
M
Moritz Warning 已提交
186
  DEVICE_MODEL := RT-AC68U
187
  DEVICE_PACKAGES := $(USB3_PACKAGES)
188
  ASUS_PRODUCTID := RT-AC68U
189
endef
190
TARGET_DEVICES += asus_rt-ac68u
191

192
define Device/asus_rt-ac87u
193
  $(call Device/asus)
M
Moritz Warning 已提交
194
  DEVICE_MODEL := RT-AC87U
195
  DEVICE_PACKAGES := $(USB3_PACKAGES)
196
  ASUS_PRODUCTID := RT-AC87U
197
endef
198
TARGET_DEVICES += asus_rt-ac87u
199

200 201 202
define Device/asus_rt-ac88u
  $(call Device/asus)
  DEVICE_MODEL := RT-AC88U
203
  DEVICE_PACKAGES := $(BRCMFMAC_4366B1) $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
204 205 206 207
  ASUS_PRODUCTID := RT-AC88U
endef
TARGET_DEVICES += asus_rt-ac88u

208
define Device/asus_rt-n18u
209
  $(call Device/asus)
M
Moritz Warning 已提交
210
  DEVICE_MODEL := RT-N18U
211
  DEVICE_PACKAGES := $(USB3_PACKAGES)
212
  ASUS_PRODUCTID := RT-N18U
213
endef
214
TARGET_DEVICES += asus_rt-n18u
215

216 217 218 219 220 221
# Buffalo devices have TFTP recovery mode which can work nicely with initramfs
# kernels.
# We should have two initramfs images for Buffalo: plain initramfs kernel and
# TRX with initramfs kernel. It's not possible right now so let's just build
# plain initramfs kernel as it may be more useful.
define Device/buffalo/Default
M
Moritz Warning 已提交
222
  DEVICE_VENDOR := Buffalo
223 224 225 226
  KERNEL_INITRAMFS_SUFFIX = $$(KERNEL_SUFFIX)
  KERNEL_INITRAMFS = $$(KERNEL)
endef

227
define Device/buffalo_wxr-1900dhp
228
  $(call Device/buffalo/Default)
M
Moritz Warning 已提交
229
  DEVICE_MODEL := WXR-1900DHP
230 231
  DEVICE_PACKAGES := $(USB3_PACKAGES)
endef
232
TARGET_DEVICES += buffalo_wxr-1900dhp
233

234
define Device/buffalo_wzr-600dhp2
235
  $(call Device/buffalo/Default)
M
Moritz Warning 已提交
236
  DEVICE_MODEL := WZR-600DHP2
237
  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
238
endef
239
TARGET_DEVICES += buffalo_wzr-600dhp2
240

241
define Device/buffalo_wzr-900dhp
242
  $(call Device/buffalo/Default)
M
Moritz Warning 已提交
243
  DEVICE_MODEL := WZR-900DHP
244
  DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
245 246 247 248 249 250 251 252 253 254 255 256 257 258
  BUFFALO_TAG_PLATFORM := bcm
  BUFFALO_TAG_VERSION := 9.99
  BUFFALO_TAG_MINOR := 9.99
  IMAGES += factory-DHP-EU.bin factory-DHP2-JP.bin
  IMAGE/factory-DHP-EU.bin := \
	append-ubi | trx-nand | buffalo-wzr-header WZR-900DHP EU | \
	buffalo-enc WZR-900DHP $$(BUFFALO_TAG_VERSION) | \
	buffalo-tag-dhp WZR-900DHP EU mlang20 | buffalo-enc-tag | \
	buffalo-dhp-image
  IMAGE/factory-DHP2-JP.bin := \
	append-ubi | trx-nand | buffalo-wzr-header WZR-900DHP2 JP | \
	buffalo-enc WZR-900DHP2 $$(BUFFALO_TAG_VERSION) | \
	buffalo-tag-dhp WZR-900DHP2 JP jp | buffalo-enc-tag | \
	buffalo-dhp-image
259
endef
260
TARGET_DEVICES += buffalo_wzr-900dhp
261

262
define Device/buffalo_wzr-1750dhp
263
  $(call Device/buffalo/Default)
M
Moritz Warning 已提交
264
  DEVICE_MODEL := WZR-1750DHP
265
  DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
266
endef
267
TARGET_DEVICES += buffalo_wzr-1750dhp
268

269
define Device/dlink
M
Moritz Warning 已提交
270
  DEVICE_VENDOR := D-Link
271
  IMAGES := bin
272
  IMAGE/bin := append-ubi | seama-nand
273 274
endef

275
define Device/dlink_dir-885l
M
Moritz Warning 已提交
276
  DEVICE_MODEL := DIR-885L
277
  DEVICE_PACKAGES := $(BRCMFMAC_4366B1) $(USB3_PACKAGES)
278 279 280
  $(Device/dlink)
  SIGNATURE := wrgac42_dlink.2015_dir885l
endef
281
TARGET_DEVICES += dlink_dir-885l
282

283 284 285 286 287 288 289 290 291 292 293 294 295 296 297
define Device/dlink_dir-890l
  DEVICE_VENDOR := D-Link
  DEVICE_MODEL := DIR-890L
  DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB2_PACKAGES) $(USB3_PACKAGES)
  # Layout: U-boot (128kb max) followed by kernel and appended DTB.
  # This is done because the boot loader will only read the first 2 MB
  # from the flash and decompress the LZMA it finds there after the
  # SEAMA header. Since the compressed kernel will not fit in 2 MB,
  # we put U-Boot there and let U-Boot read and execute the kernel.
  KERNEL := dlink-uboot-bin | pad-to 128k | append-kernel | append-dtb
  $(Device/dlink)
  SIGNATURE := wrgac36_dlink.2013gui_dir890
endef
TARGET_DEVICES += dlink_dir-890l

298 299 300 301 302 303 304 305 306
define Device/dlink_dwl-8610ap
  DEVICE_VENDOR := D-Link
  DEVICE_MODEL := DWL-8610AP
  DEVICE_PACKAGES := $(B43)
  IMAGES := factory.tar
  IMAGE/factory.tar := append-ubi | trx-nand | dwl8610ap-image
endef
TARGET_DEVICES += dlink_dwl-8610ap

307
define Device/linksys_ea6300-v1
M
Moritz Warning 已提交
308 309 310
  DEVICE_VENDOR := Linksys
  DEVICE_MODEL := EA6300
  DEVICE_VARIANT := v1
311
  DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
312
endef
313
TARGET_DEVICES += linksys_ea6300-v1
314

315
define Device/linksys_ea6500-v2
M
Moritz Warning 已提交
316 317 318
  DEVICE_VENDOR := Linksys
  DEVICE_MODEL := EA6500
  DEVICE_VARIANT := v2
319 320
  DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
endef
321
TARGET_DEVICES += linksys_ea6500-v2
322

323
define Device/linksys_ea9200
M
Moritz Warning 已提交
324 325 326
  DEVICE_VENDOR := Linksys
  DEVICE_MODEL := EA9200
  DEVICE_VARIANT := v1
327 328
  DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB3_PACKAGES)
endef
329
TARGET_DEVICES += linksys_ea9200
330

331
define Device/linksys_ea9500
M
Moritz Warning 已提交
332 333
  DEVICE_VENDOR := Linksys
  DEVICE_MODEL := EA9500
334 335 336
  DEVICE_PACKAGES := $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
  DEVICE_DTS := bcm47094-linksys-panamera
endef
337
TARGET_DEVICES += linksys_ea9500
338

339 340 341 342 343 344
define Device/luxul
  DEVICE_VENDOR := Luxul
  IMAGES := lxl
  IMAGE/lxl := append-ubi | trx-nand | luxul-lxl
endef

345
define Device/luxul_abr-4500
346 347 348 349 350
  $(Device/luxul)
  DEVICE_MODEL := ABR-4500
  DEVICE_PACKAGES := $(USB3_PACKAGES)
  LUXUL_BOARD := ABR-4500
endef
351
TARGET_DEVICES += luxul_abr-4500
352

353
define Device/luxul_xap-1610
354 355 356 357 358 359
  $(Device/luxul)
  DEVICE_MODEL := XAP-1610
  DEVICE_PACKAGES := $(BRCMFMAC_4366C0)
  IMAGE/lxl := append-rootfs | trx-serial | luxul-lxl
  LUXUL_BOARD := XAP-1610
endef
360
TARGET_DEVICES += luxul_xap-1610
361

362
define Device/luxul_xbr-4500
363 364 365 366 367
  $(Device/luxul)
  DEVICE_MODEL := XBR-4500
  DEVICE_PACKAGES := $(USB3_PACKAGES)
  LUXUL_BOARD := XBR-4500
endef
368
TARGET_DEVICES += luxul_xbr-4500
369

370
define Device/luxul_xwr-3150
371 372 373 374 375 376
  $(Device/luxul)
  DEVICE_MODEL := XWR-3150
  DEVICE_PACKAGES := $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
  DEVICE_DTS := bcm47094-luxul-xwr-3150-v1
  LUXUL_BOARD := XWR-3150
endef
377
TARGET_DEVICES += luxul_xwr-3150
378

379 380 381 382
define Device/meraki_mr26
  DEVICE_VENDOR := Meraki
  DEVICE_MODEL := MR26
  DEVICE_PACKAGES := $(B43) kmod-i2c-bcm-iproc kmod-eeprom-at24 \
383
	kmod-hwmon-ina2xx kmod-leds-uleds nu801
384 385 386 387 388 389 390 391 392 393 394 395
  DEVICE_DTS := bcm53015-meraki-mr26
# resize the initramfs to fit the size of the existing part.safe.
  KERNEL_LOADADDR := 0x00008000
  KERNEL_INITRAMFS_SUFFIX := .bin
  KERNEL_INITRAMFS := kernel-bin | append-dtb | gzip | uImage gzip | pad-to 9310208
# LZMA is not supported by the uboot
  KERNEL := kernel-bin | append-dtb | gzip | uImage gzip
  IMAGES += sysupgrade.bin
  IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
endef
TARGET_DEVICES += meraki_mr26

396
define Device/meraki_mr32
397
  DEVICE_VENDOR := Meraki
398
  DEVICE_MODEL := MR32
399
  DEVICE_PACKAGES := $(B43) kmod-i2c-bcm-iproc kmod-eeprom-at24 \
400 401 402 403 404 405 406
	kmod-leds-pwm kmod-hwmon-ina2xx kmod-bluetooth
  DEVICE_DTS := bcm53016-meraki-mr32
# Meraki FW r23 tries to resize the part.safe partition before it will
# flash the image. This is a bit of a problem, since resizing will fail
# if the partition is smaller than the old one.
  KERNEL_LOADADDR := 0x00008000
  KERNEL_INITRAMFS_SUFFIX := .bin
407 408
  DEVICE_DTS_DELIMITER := @
  DEVICE_DTS_CONFIG := config@1
409 410 411
  KERNEL_INITRAMFS := kernel-bin | fit none $$(DTS_DIR)/$$(DEVICE_DTS).dtb | \
	pad-to 10362880
  KERNEL := kernel-bin | fit none $$(DTS_DIR)/$$(DEVICE_DTS).dtb
412
  IMAGES += sysupgrade.bin
413
  IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
414 415 416 417 418 419 420 421

# The loader is specifically looking for fdt@2:
# [    3.190000] find_itb_subimage: error finding fdt@2: FDT_ERR_NOTFOUND
# The image won't boot, if it isn't found. :(
  DEVICE_FDT_NUM := 2
endef
TARGET_DEVICES += meraki_mr32

422
define Device/netgear
M
Moritz Warning 已提交
423
  DEVICE_VENDOR := NETGEAR
424
  IMAGES := chk
425
  IMAGE/chk := append-ubi | trx-nand | netgear-chk
426
  NETGEAR_REGION := 1
427 428
endef

429
define Device/netgear_r6250
M
Moritz Warning 已提交
430
  DEVICE_MODEL := R6250
431
  DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
432
  $(Device/netgear)
433
  NETGEAR_BOARD_ID := U12H245T00_NETGEAR
434
endef
435
TARGET_DEVICES += netgear_r6250
436

437
define Device/netgear_r6300-v2
M
Moritz Warning 已提交
438 439
  DEVICE_MODEL := R6300
  DEVICE_VARIANT := v2
440
  DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
441
  $(Device/netgear)
442
  NETGEAR_BOARD_ID := U12H240T00_NETGEAR
443
endef
444
TARGET_DEVICES += netgear_r6300-v2
445

446
define Device/netgear_r7000
M
Moritz Warning 已提交
447
  DEVICE_MODEL := R7000
448
  DEVICE_PACKAGES := $(USB3_PACKAGES)
449 450 451
  $(Device/netgear)
  NETGEAR_BOARD_ID := U12H270T00_NETGEAR
endef
452
TARGET_DEVICES += netgear_r7000
453

454
define Device/netgear_r7900
M
Moritz Warning 已提交
455
  DEVICE_MODEL := R7900
456
  DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB3_PACKAGES)
457 458 459
  $(Device/netgear)
  NETGEAR_BOARD_ID := U12H315T30_NETGEAR
endef
460
TARGET_DEVICES += netgear_r7900
461

462
define Device/netgear_r8000
M
Moritz Warning 已提交
463
  DEVICE_MODEL := R8000
464
  DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB3_PACKAGES)
465
  $(Device/netgear)
466
  NETGEAR_BOARD_ID := U12H315T00_NETGEAR
467
endef
468
TARGET_DEVICES += netgear_r8000
469

470
define Device/netgear_r8500
M
Moritz Warning 已提交
471
  DEVICE_MODEL := R8500
472
  DEVICE_PACKAGES := $(BRCMFMAC_4366B1) $(USB3_PACKAGES)
473 474
  $(Device/netgear)
  NETGEAR_BOARD_ID := U12H334T00_NETGEAR
475
  DEFAULT := n
476
endef
477
TARGET_DEVICES += netgear_r8500
478

479
define Device/smartrg_sr400ac
M
Moritz Warning 已提交
480 481
  DEVICE_VENDOR := SmartRG
  DEVICE_MODEL := SR400ac
482
  DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB3_PACKAGES)
483
  IMAGES := trx
484
  IMAGE/trx := append-rootfs | trx-serial
485 486
  KERNEL_INITRAMFS_SUFFIX := .bin
  KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma-d16
487
endef
488
TARGET_DEVICES += smartrg_sr400ac
489

490
define Device/phicomm_k3
M
Moritz Warning 已提交
491 492
  DEVICE_VENDOR := PHICOMM
  DEVICE_MODEL := K3
493 494 495 496
  DEVICE_ALT0_VENDOR := Wavlink
  DEVICE_ALT0_MODEL := QUANTUM DAX
  DEVICE_ALT1_VENDOR := Wavlink
  DEVICE_ALT1_MODEL := WL-WN538A8
H
Hao Dong 已提交
497 498 499
  DEVICE_PACKAGES := $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
  IMAGES := trx
endef
500
TARGET_DEVICES += phicomm_k3
H
Hao Dong 已提交
501

502
define Device/tenda_ac9
M
Moritz Warning 已提交
503 504
  DEVICE_VENDOR := Tenda
  DEVICE_MODEL := AC9
505
  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
506 507 508
  IMAGES := trx
  IMAGE/trx := append-rootfs | trx-serial
endef
509
TARGET_DEVICES += tenda_ac9
510

511
define Device/tplink_archer-c5-v2
512
  DEVICE_VENDOR := TP-Link
M
Moritz Warning 已提交
513 514
  DEVICE_MODEL := Archer C5
  DEVICE_VARIANT := v2
515
  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
516 517 518
  IMAGES := bin
  IMAGE/bin := append-rootfs | bcm53xx-tplink-safeloader
  TPLINK_BOARD := ARCHER-C5-V2
519
  BROKEN := y
520
endef
521
#TARGET_DEVICES += tplink_archer-c5-v2
522

523
define Device/tplink_archer-c9-v1
524
  DEVICE_VENDOR := TP-Link
M
Moritz Warning 已提交
525 526
  DEVICE_MODEL := Archer C9
  DEVICE_VARIANT := v1
527 528 529 530
  DEVICE_PACKAGES := $(USB3_PACKAGES)
  IMAGES := bin
  IMAGE/bin := append-rootfs | bcm53xx-tplink-safeloader
  TPLINK_BOARD := ARCHERC9
531
  BROKEN := y
532
endef
533
#TARGET_DEVICES += tplink_archer-c9-v1
534

535
$(eval $(call BuildImage))