mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 16:31:13 +00:00
5b7f592251
There are already two targets (lantiq, ramips) which use mktplinkfw2 tool for creating images. This de-duplicates code, introduces two new build commands: tplink-v2-header, tplink-v2-image and makes use of them in place of old, (sub)target specific ones. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
DEVICE_VARS += TPLINK_BOARD_ID
|
|
|
|
define Device/lantiqTpLink
|
|
KERNEL := kernel-bin | append-dtb | lzma
|
|
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | \
|
|
tplink-v2-header -s -V "ver. 1.0"
|
|
IMAGES := sysupgrade.bin
|
|
IMAGE/sysupgrade.bin := tplink-v2-image -s -V "ver. 1.0" | \
|
|
append-metadata | check-size $$$$(IMAGE_SIZE)
|
|
endef
|
|
|
|
define Device/TDW8970
|
|
$(Device/lantiqTpLink)
|
|
DEVICE_PROFILE := TDW8970
|
|
TPLINK_BOARD_ID := TD-W8970v1
|
|
IMAGE_SIZE := 7680k
|
|
DEVICE_TITLE := TP-LINK TD-W8970
|
|
DEVICE_PACKAGES:= kmod-ath9k wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport
|
|
endef
|
|
|
|
define Device/TDW8980
|
|
$(Device/lantiqTpLink)
|
|
DEVICE_PROFILE := TDW8980
|
|
TPLINK_BOARD_ID := TD-W8980v1
|
|
IMAGE_SIZE := 7680k
|
|
DEVICE_TITLE := TP-LINK TD-W8980
|
|
DEVICE_PACKAGES:= kmod-ath9k kmod-owl-loader wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport
|
|
endef
|
|
|
|
define Device/VR200v
|
|
$(Device/lantiqTpLink)
|
|
DEVICE_PROFILE := VR200v
|
|
TPLINK_BOARD_ID := ArcherVR200V
|
|
IMAGE_SIZE := 15808k
|
|
DEVICE_TITLE := TP-LINK Archer VR200v
|
|
DEVICE_PACKAGES:= kmod-usb-dwc2 kmod-usb-ledtrig-usbport
|
|
endef
|
|
TARGET_DEVICES += TDW8970 TDW8980 VR200v
|
|
|