Makefile 16 KB

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