Makefile 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542
  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. ifneq ($(KERNEL),5.15)
  116. ifneq ($(KERNEL),6.1)
  117. DTS_DIR := $(DTS_DIR)/broadcom
  118. endif
  119. endif
  120. DEVICE_VARS += ASUS_PRODUCTID
  121. DEVICE_VARS += BUFFALO_TAG_PLATFORM BUFFALO_TAG_VERSION BUFFALO_TAG_MINOR
  122. DEVICE_VARS += SIGNATURE
  123. DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_REGION TPLINK_BOARD
  124. DEVICE_VARS += LUXUL_BOARD
  125. IEEE8021X := wpad-basic-mbedtls
  126. B43 := $(IEEE8021X) kmod-b43
  127. BRCMFMAC_43602A1 := $(IEEE8021X) kmod-brcmfmac brcmfmac-firmware-43602a1-pcie
  128. BRCMFMAC_4366B1 := $(IEEE8021X) kmod-brcmfmac brcmfmac-firmware-4366b1-pcie
  129. BRCMFMAC_4366C0 := $(IEEE8021X) kmod-brcmfmac brcmfmac-firmware-4366c0-pcie
  130. USB2_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-phy-bcm-ns-usb2
  131. USB2_PACKAGES += kmod-usb-ledtrig-usbport
  132. USB3_PACKAGES := $(USB2_PACKAGES) kmod-usb3 kmod-phy-bcm-ns-usb3
  133. define Device/Default
  134. PROFILES = Generic $$(DEVICE_NAME)
  135. # .dtb files are prefixed by SoC type, e.g. bcm4708- which is not included in device/image names
  136. # extract the full dtb name based on the device info
  137. DEVICE_DTS := $(patsubst %.dtb,%,$(notdir $(wildcard $(if $(IB),$(KDIR),$(DTS_DIR))/*-$(subst _,-,$(1)).dtb)))
  138. KERNEL := kernel-bin | append-dtb | lzma-d16
  139. KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
  140. KERNEL_INITRAMFS_SUFFIX := .trx
  141. KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma-d16 | trx
  142. FILESYSTEMS := squashfs
  143. KERNEL_NAME := zImage
  144. DEVICE_IMG_NAME = $$(DEVICE_IMG_PREFIX)-$$(1).$$(2)
  145. IMAGES := trx
  146. BLOCKSIZE := 128k
  147. PAGESIZE := 2048
  148. IMAGE/trx := append-ubi | trx-nand
  149. endef
  150. define Device/asus
  151. DEVICE_VENDOR := ASUS
  152. IMAGES := trx
  153. IMAGE/trx := append-ubi | trx-nand | asus-trx
  154. endef
  155. define Device/asus_rt-ac3100
  156. $(call Device/asus)
  157. DEVICE_MODEL := RT-AC3100
  158. DEVICE_PACKAGES := $(BRCMFMAC_4366B1) $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
  159. ASUS_PRODUCTID := RT-AC3100
  160. endef
  161. TARGET_DEVICES += asus_rt-ac3100
  162. define Device/asus_rt-ac56u
  163. $(call Device/asus)
  164. DEVICE_MODEL := RT-AC56U
  165. DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
  166. ASUS_PRODUCTID := RT-AC56U
  167. endef
  168. TARGET_DEVICES += asus_rt-ac56u
  169. define Device/asus_rt-ac68u
  170. $(call Device/asus)
  171. DEVICE_MODEL := RT-AC68U
  172. DEVICE_PACKAGES := $(USB3_PACKAGES)
  173. ASUS_PRODUCTID := RT-AC68U
  174. endef
  175. TARGET_DEVICES += asus_rt-ac68u
  176. define Device/asus_rt-ac87u
  177. $(call Device/asus)
  178. DEVICE_MODEL := RT-AC87U
  179. DEVICE_PACKAGES := $(USB3_PACKAGES)
  180. ASUS_PRODUCTID := RT-AC87U
  181. endef
  182. TARGET_DEVICES += asus_rt-ac87u
  183. define Device/asus_rt-ac88u
  184. $(call Device/asus)
  185. DEVICE_MODEL := RT-AC88U
  186. DEVICE_PACKAGES := $(BRCMFMAC_4366B1) $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
  187. ASUS_PRODUCTID := RT-AC88U
  188. endef
  189. TARGET_DEVICES += asus_rt-ac88u
  190. define Device/asus_rt-n18u
  191. $(call Device/asus)
  192. DEVICE_MODEL := RT-N18U
  193. DEVICE_PACKAGES := $(USB3_PACKAGES)
  194. ASUS_PRODUCTID := RT-N18U
  195. endef
  196. TARGET_DEVICES += asus_rt-n18u
  197. # Buffalo devices have TFTP recovery mode which can work nicely with initramfs
  198. # kernels.
  199. # We should have two initramfs images for Buffalo: plain initramfs kernel and
  200. # TRX with initramfs kernel. It's not possible right now so let's just build
  201. # plain initramfs kernel as it may be more useful.
  202. define Device/buffalo/Default
  203. DEVICE_VENDOR := Buffalo
  204. KERNEL_INITRAMFS_SUFFIX = $$(KERNEL_SUFFIX)
  205. KERNEL_INITRAMFS = $$(KERNEL)
  206. endef
  207. define Device/buffalo_wxr-1900dhp
  208. $(call Device/buffalo/Default)
  209. DEVICE_MODEL := WXR-1900DHP
  210. DEVICE_PACKAGES := $(USB3_PACKAGES)
  211. endef
  212. TARGET_DEVICES += buffalo_wxr-1900dhp
  213. define Device/buffalo_wzr-600dhp2
  214. $(call Device/buffalo/Default)
  215. DEVICE_MODEL := WZR-600DHP2
  216. DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
  217. endef
  218. TARGET_DEVICES += buffalo_wzr-600dhp2
  219. define Device/buffalo_wzr-900dhp
  220. $(call Device/buffalo/Default)
  221. DEVICE_MODEL := WZR-900DHP
  222. DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
  223. BUFFALO_TAG_PLATFORM := bcm
  224. BUFFALO_TAG_VERSION := 9.99
  225. BUFFALO_TAG_MINOR := 9.99
  226. IMAGES += factory-DHP-EU.bin factory-DHP2-JP.bin
  227. IMAGE/factory-DHP-EU.bin := \
  228. append-ubi | trx-nand | buffalo-wzr-header WZR-900DHP EU | \
  229. buffalo-enc WZR-900DHP $$(BUFFALO_TAG_VERSION) | \
  230. buffalo-tag-dhp WZR-900DHP EU mlang20 | buffalo-enc-tag | \
  231. buffalo-dhp-image
  232. IMAGE/factory-DHP2-JP.bin := \
  233. append-ubi | trx-nand | buffalo-wzr-header WZR-900DHP2 JP | \
  234. buffalo-enc WZR-900DHP2 $$(BUFFALO_TAG_VERSION) | \
  235. buffalo-tag-dhp WZR-900DHP2 JP jp | buffalo-enc-tag | \
  236. buffalo-dhp-image
  237. endef
  238. TARGET_DEVICES += buffalo_wzr-900dhp
  239. define Device/buffalo_wzr-1750dhp
  240. $(call Device/buffalo/Default)
  241. DEVICE_MODEL := WZR-1750DHP
  242. DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
  243. endef
  244. TARGET_DEVICES += buffalo_wzr-1750dhp
  245. define Device/dlink
  246. DEVICE_VENDOR := D-Link
  247. IMAGES := bin
  248. IMAGE/bin := append-ubi | seama-nand
  249. endef
  250. define Device/dlink_dir-885l
  251. DEVICE_MODEL := DIR-885L
  252. DEVICE_PACKAGES := $(BRCMFMAC_4366B1) $(USB3_PACKAGES)
  253. $(Device/dlink)
  254. SIGNATURE := wrgac42_dlink.2015_dir885l
  255. endef
  256. TARGET_DEVICES += dlink_dir-885l
  257. define Device/dlink_dir-890l
  258. DEVICE_VENDOR := D-Link
  259. DEVICE_MODEL := DIR-890L
  260. DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB2_PACKAGES) $(USB3_PACKAGES)
  261. # Layout: U-boot (128kb max) followed by kernel and appended DTB.
  262. # This is done because the boot loader will only read the first 2 MB
  263. # from the flash and decompress the LZMA it finds there after the
  264. # SEAMA header. Since the compressed kernel will not fit in 2 MB,
  265. # we put U-Boot there and let U-Boot read and execute the kernel.
  266. KERNEL := dlink-uboot-bin | pad-to 128k | append-kernel | append-dtb
  267. $(Device/dlink)
  268. SIGNATURE := wrgac36_dlink.2013gui_dir890
  269. endef
  270. TARGET_DEVICES += dlink_dir-890l
  271. define Device/dlink_dwl-8610ap
  272. DEVICE_VENDOR := D-Link
  273. DEVICE_MODEL := DWL-8610AP
  274. DEVICE_PACKAGES := $(B43)
  275. IMAGES := factory.tar
  276. IMAGE/factory.tar := append-ubi | trx-nand | dwl8610ap-image
  277. endef
  278. TARGET_DEVICES += dlink_dwl-8610ap
  279. define Device/linksys_ea6300-v1
  280. DEVICE_VENDOR := Linksys
  281. DEVICE_MODEL := EA6300
  282. DEVICE_VARIANT := v1
  283. DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
  284. endef
  285. TARGET_DEVICES += linksys_ea6300-v1
  286. define Device/linksys_ea6500-v2
  287. DEVICE_VENDOR := Linksys
  288. DEVICE_MODEL := EA6500
  289. DEVICE_VARIANT := v2
  290. DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
  291. endef
  292. TARGET_DEVICES += linksys_ea6500-v2
  293. define Device/linksys_ea9200
  294. DEVICE_VENDOR := Linksys
  295. DEVICE_MODEL := EA9200
  296. DEVICE_VARIANT := v1
  297. DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB3_PACKAGES)
  298. endef
  299. TARGET_DEVICES += linksys_ea9200
  300. define Device/linksys_ea9500
  301. DEVICE_VENDOR := Linksys
  302. DEVICE_MODEL := EA9500
  303. DEVICE_PACKAGES := $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
  304. DEVICE_DTS := bcm47094-linksys-panamera
  305. endef
  306. TARGET_DEVICES += linksys_ea9500
  307. define Device/luxul
  308. DEVICE_VENDOR := Luxul
  309. IMAGES := lxl
  310. IMAGE/lxl := append-ubi | trx-nand | luxul-lxl
  311. endef
  312. define Device/luxul_abr-4500
  313. $(Device/luxul)
  314. DEVICE_MODEL := ABR-4500
  315. DEVICE_PACKAGES := $(USB3_PACKAGES)
  316. LUXUL_BOARD := ABR-4500
  317. endef
  318. TARGET_DEVICES += luxul_abr-4500
  319. define Device/luxul_xap-1610
  320. $(Device/luxul)
  321. DEVICE_MODEL := XAP-1610
  322. DEVICE_PACKAGES := $(BRCMFMAC_4366C0)
  323. IMAGE/lxl := append-rootfs | trx-serial | luxul-lxl
  324. LUXUL_BOARD := XAP-1610
  325. endef
  326. TARGET_DEVICES += luxul_xap-1610
  327. define Device/luxul_xbr-4500
  328. $(Device/luxul)
  329. DEVICE_MODEL := XBR-4500
  330. DEVICE_PACKAGES := $(USB3_PACKAGES)
  331. LUXUL_BOARD := XBR-4500
  332. endef
  333. TARGET_DEVICES += luxul_xbr-4500
  334. define Device/luxul_xwr-3150
  335. $(Device/luxul)
  336. DEVICE_MODEL := XWR-3150
  337. DEVICE_PACKAGES := $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
  338. DEVICE_DTS := bcm47094-luxul-xwr-3150-v1
  339. LUXUL_BOARD := XWR-3150
  340. endef
  341. TARGET_DEVICES += luxul_xwr-3150
  342. define Device/meraki_mr26
  343. DEVICE_VENDOR := Meraki
  344. DEVICE_MODEL := MR26
  345. DEVICE_PACKAGES := $(B43) kmod-i2c-bcm-iproc kmod-eeprom-at24 \
  346. kmod-hwmon-ina2xx kmod-leds-uleds nu801
  347. DEVICE_DTS := bcm53015-meraki-mr26
  348. # resize the initramfs to fit the size of the existing part.safe.
  349. KERNEL_LOADADDR := 0x00008000
  350. KERNEL_INITRAMFS_SUFFIX := .bin
  351. KERNEL_INITRAMFS := kernel-bin | append-dtb | gzip | uImage gzip | pad-to 9310208
  352. # LZMA is not supported by the uboot
  353. KERNEL := kernel-bin | append-dtb | gzip | uImage gzip
  354. IMAGES += sysupgrade.bin
  355. IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  356. endef
  357. TARGET_DEVICES += meraki_mr26
  358. define Device/meraki_mr32
  359. DEVICE_VENDOR := Meraki
  360. DEVICE_MODEL := MR32
  361. DEVICE_PACKAGES := $(B43) kmod-i2c-bcm-iproc kmod-eeprom-at24 \
  362. kmod-leds-pwm kmod-hwmon-ina2xx kmod-bluetooth
  363. DEVICE_DTS := bcm53016-meraki-mr32
  364. # Meraki FW r23 tries to resize the part.safe partition before it will
  365. # flash the image. This is a bit of a problem, since resizing will fail
  366. # if the partition is smaller than the old one.
  367. KERNEL_LOADADDR := 0x00008000
  368. KERNEL_INITRAMFS_SUFFIX := .bin
  369. DEVICE_DTS_DELIMITER := @
  370. DEVICE_DTS_CONFIG := config@1
  371. KERNEL_INITRAMFS := kernel-bin | fit none $$(DTS_DIR)/$$(DEVICE_DTS).dtb | \
  372. pad-to 10362880
  373. KERNEL := kernel-bin | fit none $$(DTS_DIR)/$$(DEVICE_DTS).dtb
  374. IMAGES += sysupgrade.bin
  375. IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  376. # The loader is specifically looking for fdt@2:
  377. # [ 3.190000] find_itb_subimage: error finding fdt@2: FDT_ERR_NOTFOUND
  378. # The image won't boot, if it isn't found. :(
  379. DEVICE_FDT_NUM := 2
  380. endef
  381. TARGET_DEVICES += meraki_mr32
  382. define Device/netgear
  383. DEVICE_VENDOR := NETGEAR
  384. IMAGES := chk
  385. IMAGE/chk := append-ubi | trx-nand | netgear-chk
  386. NETGEAR_REGION := 1
  387. endef
  388. define Device/netgear_r6250
  389. DEVICE_MODEL := R6250
  390. DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
  391. $(Device/netgear)
  392. NETGEAR_BOARD_ID := U12H245T00_NETGEAR
  393. endef
  394. TARGET_DEVICES += netgear_r6250
  395. define Device/netgear_r6300-v2
  396. DEVICE_MODEL := R6300
  397. DEVICE_VARIANT := v2
  398. DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
  399. $(Device/netgear)
  400. NETGEAR_BOARD_ID := U12H240T00_NETGEAR
  401. endef
  402. TARGET_DEVICES += netgear_r6300-v2
  403. define Device/netgear_r7000
  404. DEVICE_MODEL := R7000
  405. DEVICE_PACKAGES := $(USB3_PACKAGES)
  406. $(Device/netgear)
  407. NETGEAR_BOARD_ID := U12H270T00_NETGEAR
  408. endef
  409. TARGET_DEVICES += netgear_r7000
  410. define Device/netgear_r7900
  411. DEVICE_MODEL := R7900
  412. DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB3_PACKAGES)
  413. $(Device/netgear)
  414. NETGEAR_BOARD_ID := U12H315T30_NETGEAR
  415. endef
  416. TARGET_DEVICES += netgear_r7900
  417. define Device/netgear_r8000
  418. DEVICE_MODEL := R8000
  419. DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB3_PACKAGES)
  420. $(Device/netgear)
  421. NETGEAR_BOARD_ID := U12H315T00_NETGEAR
  422. endef
  423. TARGET_DEVICES += netgear_r8000
  424. define Device/netgear_r8500
  425. DEVICE_MODEL := R8500
  426. DEVICE_PACKAGES := $(BRCMFMAC_4366B1) $(USB3_PACKAGES)
  427. $(Device/netgear)
  428. NETGEAR_BOARD_ID := U12H334T00_NETGEAR
  429. DEFAULT := n
  430. endef
  431. TARGET_DEVICES += netgear_r8500
  432. define Device/smartrg_sr400ac
  433. DEVICE_VENDOR := SmartRG
  434. DEVICE_MODEL := SR400ac
  435. DEVICE_PACKAGES := $(BRCMFMAC_43602A1) $(USB3_PACKAGES)
  436. IMAGES := trx
  437. IMAGE/trx := append-rootfs | trx-serial
  438. KERNEL_INITRAMFS_SUFFIX := .bin
  439. KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma-d16
  440. endef
  441. TARGET_DEVICES += smartrg_sr400ac
  442. define Device/phicomm_k3
  443. DEVICE_VENDOR := PHICOMM
  444. DEVICE_MODEL := K3
  445. DEVICE_ALT0_VENDOR := Wavlink
  446. DEVICE_ALT0_MODEL := QUANTUM DAX
  447. DEVICE_ALT1_VENDOR := Wavlink
  448. DEVICE_ALT1_MODEL := WL-WN538A8
  449. DEVICE_PACKAGES := $(BRCMFMAC_4366C0) $(USB3_PACKAGES)
  450. IMAGES := trx
  451. endef
  452. TARGET_DEVICES += phicomm_k3
  453. define Device/tenda_ac9
  454. DEVICE_VENDOR := Tenda
  455. DEVICE_MODEL := AC9
  456. DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
  457. IMAGES := trx
  458. IMAGE/trx := append-rootfs | trx-serial
  459. endef
  460. TARGET_DEVICES += tenda_ac9
  461. define Device/tplink_archer-c5-v2
  462. DEVICE_VENDOR := TP-Link
  463. DEVICE_MODEL := Archer C5
  464. DEVICE_VARIANT := v2
  465. DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
  466. IMAGES := bin
  467. IMAGE/bin := append-rootfs | bcm53xx-tplink-safeloader
  468. TPLINK_BOARD := ARCHER-C5-V2
  469. BROKEN := y
  470. endef
  471. #TARGET_DEVICES += tplink_archer-c5-v2
  472. define Device/tplink_archer-c9-v1
  473. DEVICE_VENDOR := TP-Link
  474. DEVICE_MODEL := Archer C9
  475. DEVICE_VARIANT := v1
  476. DEVICE_PACKAGES := $(USB3_PACKAGES)
  477. IMAGES := bin
  478. IMAGE/bin := append-rootfs | bcm53xx-tplink-safeloader
  479. TPLINK_BOARD := ARCHERC9
  480. BROKEN := y
  481. endef
  482. #TARGET_DEVICES += tplink_archer-c9-v1
  483. $(eval $(call BuildImage))