Makefile 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592
  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-ac3200
  159. $(call Device/asus)
  160. DEVICE_MODEL := RT-AC3200
  161. DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB3_PACKAGES)
  162. ASUS_PRODUCTID := RT-AC3200
  163. endef
  164. TARGET_DEVICES += asus_rt-ac3200
  165. define Device/asus_rt-ac5300
  166. $(call Device/asus)
  167. DEVICE_MODEL := RT-AC5300
  168. DEVICE_PACKAGES := $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
  169. ASUS_PRODUCTID := RT-AC5300
  170. endef
  171. TARGET_DEVICES += asus_rt-ac5300
  172. define Device/asus_rt-ac56u
  173. $(call Device/asus)
  174. DEVICE_MODEL := RT-AC56U
  175. DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
  176. ASUS_PRODUCTID := RT-AC56U
  177. endef
  178. TARGET_DEVICES += asus_rt-ac56u
  179. define Device/asus_rt-ac68u
  180. $(call Device/asus)
  181. DEVICE_MODEL := RT-AC68U
  182. DEVICE_PACKAGES := $(USB3_PACKAGES)
  183. ASUS_PRODUCTID := RT-AC68U
  184. endef
  185. TARGET_DEVICES += asus_rt-ac68u
  186. define Device/asus_rt-ac87u
  187. $(call Device/asus)
  188. DEVICE_MODEL := RT-AC87U
  189. DEVICE_PACKAGES := $(USB3_PACKAGES)
  190. ASUS_PRODUCTID := RT-AC87U
  191. endef
  192. TARGET_DEVICES += asus_rt-ac87u
  193. define Device/asus_rt-ac88u
  194. $(call Device/asus)
  195. DEVICE_MODEL := RT-AC88U
  196. DEVICE_PACKAGES := $(BRCMFMAC_4366B1) $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
  197. ASUS_PRODUCTID := RT-AC88U
  198. endef
  199. TARGET_DEVICES += asus_rt-ac88u
  200. define Device/asus_rt-n18u
  201. $(call Device/asus)
  202. DEVICE_MODEL := RT-N18U
  203. DEVICE_PACKAGES := $(USB3_PACKAGES)
  204. ASUS_PRODUCTID := RT-N18U
  205. endef
  206. TARGET_DEVICES += asus_rt-n18u
  207. # Buffalo devices have TFTP recovery mode which can work nicely with initramfs
  208. # kernels.
  209. # We should have two initramfs images for Buffalo: plain initramfs kernel and
  210. # TRX with initramfs kernel. It's not possible right now so let's just build
  211. # plain initramfs kernel as it may be more useful.
  212. define Device/buffalo/Default
  213. DEVICE_VENDOR := Buffalo
  214. KERNEL_INITRAMFS_SUFFIX = $$(KERNEL_SUFFIX)
  215. KERNEL_INITRAMFS = $$(KERNEL)
  216. endef
  217. define Device/buffalo_wxr-1900dhp
  218. $(call Device/buffalo/Default)
  219. DEVICE_MODEL := WXR-1900DHP
  220. DEVICE_PACKAGES := $(USB3_PACKAGES)
  221. endef
  222. TARGET_DEVICES += buffalo_wxr-1900dhp
  223. define Device/buffalo_wzr-600dhp2
  224. $(call Device/buffalo/Default)
  225. DEVICE_MODEL := WZR-600DHP2
  226. DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
  227. endef
  228. TARGET_DEVICES += buffalo_wzr-600dhp2
  229. define Device/buffalo_wzr-900dhp
  230. $(call Device/buffalo/Default)
  231. DEVICE_MODEL := WZR-900DHP
  232. DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
  233. BUFFALO_TAG_PLATFORM := bcm
  234. BUFFALO_TAG_VERSION := 9.99
  235. BUFFALO_TAG_MINOR := 9.99
  236. IMAGES += factory-DHP-EU.bin factory-DHP2-JP.bin
  237. IMAGE/factory-DHP-EU.bin := \
  238. append-ubi | trx-nand | buffalo-wzr-header WZR-900DHP EU | \
  239. buffalo-enc WZR-900DHP $$(BUFFALO_TAG_VERSION) | \
  240. buffalo-tag-dhp WZR-900DHP EU mlang20 | buffalo-enc-tag | \
  241. buffalo-dhp-image
  242. IMAGE/factory-DHP2-JP.bin := \
  243. append-ubi | trx-nand | buffalo-wzr-header WZR-900DHP2 JP | \
  244. buffalo-enc WZR-900DHP2 $$(BUFFALO_TAG_VERSION) | \
  245. buffalo-tag-dhp WZR-900DHP2 JP jp | buffalo-enc-tag | \
  246. buffalo-dhp-image
  247. endef
  248. TARGET_DEVICES += buffalo_wzr-900dhp
  249. define Device/buffalo_wzr-1750dhp
  250. $(call Device/buffalo/Default)
  251. DEVICE_MODEL := WZR-1750DHP
  252. DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
  253. endef
  254. TARGET_DEVICES += buffalo_wzr-1750dhp
  255. define Device/dlink
  256. DEVICE_VENDOR := D-Link
  257. IMAGES := bin
  258. IMAGE/bin := append-ubi | seama-nand
  259. endef
  260. define Device/dlink_dir-885l
  261. DEVICE_MODEL := DIR-885L
  262. DEVICE_PACKAGES := $(BRCMFMAC_4366B1) $(USB3_PACKAGES)
  263. $(Device/dlink)
  264. SIGNATURE := wrgac42_dlink.2015_dir885l
  265. endef
  266. TARGET_DEVICES += dlink_dir-885l
  267. define Device/dlink_dir-890l
  268. DEVICE_VENDOR := D-Link
  269. DEVICE_MODEL := DIR-890L
  270. DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB2_PACKAGES) $(USB3_PACKAGES)
  271. # Layout: U-boot (128kb max) followed by kernel and appended DTB.
  272. # This is done because the boot loader will only read the first 2 MB
  273. # from the flash and decompress the LZMA it finds there after the
  274. # SEAMA header. Since the compressed kernel will not fit in 2 MB,
  275. # we put U-Boot there and let U-Boot read and execute the kernel.
  276. KERNEL := dlink-uboot-bin | pad-to 128k | append-kernel | append-dtb
  277. $(Device/dlink)
  278. SIGNATURE := wrgac36_dlink.2013gui_dir890
  279. endef
  280. TARGET_DEVICES += dlink_dir-890l
  281. define Device/dlink_dwl-8610ap
  282. DEVICE_VENDOR := D-Link
  283. DEVICE_MODEL := DWL-8610AP
  284. DEVICE_PACKAGES := $(B43)
  285. IMAGES := factory.tar
  286. IMAGE/factory.tar := append-ubi | trx-nand | dwl8610ap-image
  287. endef
  288. TARGET_DEVICES += dlink_dwl-8610ap
  289. define Device/linksys_ea6300-v1
  290. DEVICE_VENDOR := Linksys
  291. DEVICE_MODEL := EA6300
  292. DEVICE_VARIANT := v1
  293. DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
  294. endef
  295. TARGET_DEVICES += linksys_ea6300-v1
  296. define Device/linksys_ea6500-v2
  297. DEVICE_VENDOR := Linksys
  298. DEVICE_MODEL := EA6500
  299. DEVICE_VARIANT := v2
  300. DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
  301. endef
  302. TARGET_DEVICES += linksys_ea6500-v2
  303. define Device/linksys_ea9200
  304. DEVICE_VENDOR := Linksys
  305. DEVICE_MODEL := EA9200
  306. DEVICE_VARIANT := v1
  307. DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB3_PACKAGES)
  308. endef
  309. TARGET_DEVICES += linksys_ea9200
  310. define Device/linksys_ea9500
  311. DEVICE_VENDOR := Linksys
  312. DEVICE_MODEL := EA9500
  313. DEVICE_PACKAGES := $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
  314. DEVICE_DTS := bcm47094-linksys-panamera
  315. endef
  316. TARGET_DEVICES += linksys_ea9500
  317. define Device/luxul
  318. DEVICE_VENDOR := Luxul
  319. IMAGES := lxl
  320. IMAGE/lxl := append-ubi | trx-nand | luxul-lxl
  321. endef
  322. define Device/luxul_abr-4500-v1
  323. $(Device/luxul)
  324. DEVICE_MODEL := ABR-4500
  325. DEVICE_PACKAGES := $(USB3_PACKAGES)
  326. DEVICE_DTS := bcm47094-luxul-abr-4500
  327. LUXUL_BOARD := ABR-4500
  328. endef
  329. TARGET_DEVICES += luxul_abr-4500-v1
  330. define Device/luxul_xap-1610-v1
  331. $(Device/luxul)
  332. DEVICE_MODEL := XAP-1610
  333. DEVICE_PACKAGES := $(BRCMFMAC_4366C0)
  334. DEVICE_DTS := bcm47094-luxul-xap-1610
  335. IMAGE/lxl := append-rootfs | trx-serial | luxul-lxl
  336. LUXUL_BOARD := XAP-1610
  337. endef
  338. TARGET_DEVICES += luxul_xap-1610-v1
  339. define Device/luxul_xbr-4500-v1
  340. $(Device/luxul)
  341. DEVICE_MODEL := XBR-4500
  342. DEVICE_PACKAGES := $(USB3_PACKAGES)
  343. DEVICE_DTS := bcm47094-luxul-xbr-4500
  344. LUXUL_BOARD := XBR-4500
  345. endef
  346. TARGET_DEVICES += luxul_xbr-4500-v1
  347. define Device/luxul_xwr-3150-v1
  348. $(Device/luxul)
  349. DEVICE_MODEL := XWR-3150
  350. DEVICE_PACKAGES := $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
  351. LUXUL_BOARD := XWR-3150
  352. endef
  353. TARGET_DEVICES += luxul_xwr-3150-v1
  354. define Device/meraki_mr26
  355. DEVICE_VENDOR := Meraki
  356. DEVICE_MODEL := MR26
  357. DEVICE_PACKAGES := $(B43) kmod-hwmon-ina2xx kmod-leds-uleds nu801
  358. DEVICE_DTS := bcm53015-meraki-mr26
  359. # resize the initramfs to fit the size of the existing part.safe.
  360. KERNEL_LOADADDR := 0x00008000
  361. KERNEL_INITRAMFS_SUFFIX := .bin
  362. KERNEL_INITRAMFS := kernel-bin | append-dtb | gzip | uImage gzip | pad-to 9310208
  363. # LZMA is not supported by the uboot
  364. KERNEL := kernel-bin | append-dtb | gzip | uImage gzip
  365. IMAGES += sysupgrade.bin
  366. IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  367. endef
  368. TARGET_DEVICES += meraki_mr26
  369. define Device/meraki_mr32
  370. DEVICE_VENDOR := Meraki
  371. DEVICE_MODEL := MR32
  372. DEVICE_PACKAGES := $(B43) kmod-leds-pwm kmod-hwmon-ina2xx kmod-hci-uart
  373. DEVICE_DTS := bcm53016-meraki-mr32
  374. # Meraki FW r23 tries to resize the part.safe partition before it will
  375. # flash the image. This is a bit of a problem, since resizing will fail
  376. # if the partition is smaller than the old one.
  377. KERNEL_LOADADDR := 0x00008000
  378. KERNEL_INITRAMFS_SUFFIX := .bin
  379. DEVICE_DTS_DELIMITER := @
  380. DEVICE_DTS_CONFIG := config@1
  381. KERNEL_INITRAMFS := kernel-bin | fit none $$(DTS_DIR)/$$(DEVICE_DTS).dtb | \
  382. pad-to 10362880
  383. KERNEL := kernel-bin | fit none $$(DTS_DIR)/$$(DEVICE_DTS).dtb
  384. IMAGES += sysupgrade.bin
  385. IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  386. # The loader is specifically looking for fdt@2:
  387. # [ 3.190000] find_itb_subimage: error finding fdt@2: FDT_ERR_NOTFOUND
  388. # The image won't boot, if it isn't found. :(
  389. DEVICE_FDT_NUM := 2
  390. endef
  391. TARGET_DEVICES += meraki_mr32
  392. define Device/meraki_mx6x
  393. KERNEL_IN_UBI := 1
  394. KERNEL_LOADADDR := 0x60008000
  395. DEVICE_PACKAGES := -oseama kmod-leds-pwm kmod-usb-ehci \
  396. kmod-usb-ohci kmod-usb2
  397. DEVICE_VENDOR := Cisco Meraki
  398. KERNEL = kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb
  399. KERNEL_INITRAMFS := kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb
  400. KERNEL_INITRAMFS_SUFFIX := .bin
  401. IMAGES := sysupgrade.bin
  402. IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  403. endef
  404. define Device/meraki_mx64
  405. $(call Device/meraki_mx6x)
  406. DEVICE_MODEL := MX64
  407. DEVICE_DTS_CONFIG := config@4
  408. DEVICE_DTS := bcm958625-meraki-mx64
  409. endef
  410. TARGET_DEVICES += meraki_mx64
  411. define Device/meraki_mx64_a0
  412. $(call Device/meraki_mx64)
  413. DEVICE_VARIANT := A0
  414. DEVICE_DTS_CONFIG := config@2
  415. DEVICE_DTS := bcm958625-meraki-mx64-a0
  416. endef
  417. TARGET_DEVICES += meraki_mx64_a0
  418. define Device/meraki_mx65
  419. $(call Device/meraki_mx6x)
  420. DEVICE_MODEL := MX65
  421. DEVICE_DTS_CONFIG := config@3
  422. DEVICE_DTS := bcm958625-meraki-mx65
  423. endef
  424. TARGET_DEVICES += meraki_mx65
  425. define Device/netgear
  426. DEVICE_VENDOR := NETGEAR
  427. IMAGES := chk
  428. IMAGE/chk := append-ubi | trx-nand | netgear-chk
  429. NETGEAR_REGION := 1
  430. endef
  431. define Device/netgear_r6250-v1
  432. DEVICE_MODEL := R6250
  433. DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
  434. DEVICE_DTS := bcm4708-netgear-r6250
  435. $(Device/netgear)
  436. NETGEAR_BOARD_ID := U12H245T00_NETGEAR
  437. endef
  438. TARGET_DEVICES += netgear_r6250-v1
  439. define Device/netgear_r6300-v2
  440. DEVICE_MODEL := R6300
  441. DEVICE_VARIANT := v2
  442. DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
  443. $(Device/netgear)
  444. NETGEAR_BOARD_ID := U12H240T00_NETGEAR
  445. endef
  446. TARGET_DEVICES += netgear_r6300-v2
  447. define Device/netgear_r7000
  448. DEVICE_MODEL := R7000
  449. DEVICE_PACKAGES := $(USB3_PACKAGES)
  450. $(Device/netgear)
  451. NETGEAR_BOARD_ID := U12H270T00_NETGEAR
  452. endef
  453. TARGET_DEVICES += netgear_r7000
  454. define Device/netgear_r7900
  455. DEVICE_MODEL := R7900
  456. DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB3_PACKAGES)
  457. $(Device/netgear)
  458. NETGEAR_BOARD_ID := U12H315T30_NETGEAR
  459. endef
  460. TARGET_DEVICES += netgear_r7900
  461. define Device/netgear_r8000
  462. DEVICE_MODEL := R8000
  463. DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB3_PACKAGES)
  464. $(Device/netgear)
  465. NETGEAR_BOARD_ID := U12H315T00_NETGEAR
  466. endef
  467. TARGET_DEVICES += netgear_r8000
  468. define Device/netgear_r8500
  469. DEVICE_MODEL := R8500
  470. DEVICE_PACKAGES := $(BRCMFMAC_4366B1) $(USB3_PACKAGES)
  471. $(Device/netgear)
  472. NETGEAR_BOARD_ID := U12H334T00_NETGEAR
  473. DEFAULT := n
  474. endef
  475. TARGET_DEVICES += netgear_r8500
  476. define Device/smartrg_sr400ac
  477. DEVICE_VENDOR := SmartRG
  478. DEVICE_MODEL := SR400ac
  479. DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB3_PACKAGES)
  480. IMAGES := trx
  481. IMAGE/trx := append-rootfs | trx-serial
  482. KERNEL_INITRAMFS_SUFFIX := .bin
  483. KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma-d16
  484. endef
  485. TARGET_DEVICES += smartrg_sr400ac
  486. define Device/phicomm_k3
  487. DEVICE_VENDOR := PHICOMM
  488. DEVICE_MODEL := K3
  489. DEVICE_ALT0_VENDOR := Wavlink
  490. DEVICE_ALT0_MODEL := QUANTUM DAX
  491. DEVICE_ALT1_VENDOR := Wavlink
  492. DEVICE_ALT1_MODEL := WL-WN538A8
  493. DEVICE_PACKAGES := $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
  494. IMAGES := trx
  495. endef
  496. TARGET_DEVICES += phicomm_k3
  497. define Device/tenda_ac9
  498. DEVICE_VENDOR := Tenda
  499. DEVICE_MODEL := AC9
  500. DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
  501. IMAGES := trx
  502. IMAGE/trx := append-rootfs | trx-serial
  503. endef
  504. TARGET_DEVICES += tenda_ac9
  505. define Device/tplink_archer-c5-v2
  506. DEVICE_VENDOR := TP-Link
  507. DEVICE_MODEL := Archer C5
  508. DEVICE_VARIANT := v2
  509. DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
  510. IMAGES := bin
  511. IMAGE/bin := append-rootfs | bcm53xx-tplink-safeloader
  512. TPLINK_BOARD := ARCHER-C5-V2
  513. BROKEN := y
  514. endef
  515. #TARGET_DEVICES += tplink_archer-c5-v2
  516. define Device/tplink_archer-c9-v1
  517. DEVICE_VENDOR := TP-Link
  518. DEVICE_MODEL := Archer C9
  519. DEVICE_VARIANT := v1
  520. DEVICE_PACKAGES := $(USB3_PACKAGES)
  521. IMAGES := bin
  522. IMAGE/bin := append-rootfs | bcm53xx-tplink-safeloader
  523. TPLINK_BOARD := ARCHERC9
  524. BROKEN := y
  525. endef
  526. #TARGET_DEVICES += tplink_archer-c9-v1
  527. $(eval $(call BuildImage))