2016-05-30 09:54:06 +00:00
|
|
|
define Build/tplink-fw
|
|
|
|
mktplinkfw2 -c -B $(BOARD_ID) -s \
|
|
|
|
-k $@ -o $@.new
|
|
|
|
mv $@.new $@
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/mktplinkfw2
|
|
|
|
mktplinkfw2 -B $(BOARD_ID) -s -a 0x4 -j \
|
2016-07-30 12:19:11 +00:00
|
|
|
-k $(IMAGE_KERNEL) -r $(IMAGE_ROOTFS) \
|
2016-05-30 09:54:06 +00:00
|
|
|
-o $@
|
|
|
|
endef
|
|
|
|
DEVICE_VARS += BOARD_ID
|
|
|
|
|
|
|
|
define Device/lantiqTpLink
|
|
|
|
KERNEL := kernel-bin | append-dtb | lzma
|
|
|
|
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | tplink-fw
|
|
|
|
IMAGES := sysupgrade.bin
|
2016-11-21 15:13:23 +00:00
|
|
|
IMAGE/sysupgrade.bin := mktplinkfw2 | append-metadata | check-size $$$$(IMAGE_SIZE)
|
2016-05-30 09:54:06 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Device/TDW8970
|
|
|
|
$(Device/lantiqTpLink)
|
|
|
|
DEVICE_PROFILE := TDW8970
|
|
|
|
BOARD_ID := TD-W8970v1
|
|
|
|
IMAGE_SIZE := 7680k
|
2016-06-01 20:43:58 +00:00
|
|
|
DEVICE_TITLE := TP-LINK TD-W8970
|
2016-10-19 10:09:45 +00:00
|
|
|
DEVICE_PACKAGES:= kmod-ath9k wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport
|
2016-05-30 09:54:06 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Device/TDW8980
|
|
|
|
$(Device/lantiqTpLink)
|
|
|
|
DEVICE_PROFILE := TDW8980
|
|
|
|
BOARD_ID := TD-W8980v1
|
|
|
|
IMAGE_SIZE := 7680k
|
2016-06-01 20:43:58 +00:00
|
|
|
DEVICE_TITLE := TP-LINK TD-W8980
|
2016-10-19 10:09:45 +00:00
|
|
|
DEVICE_PACKAGES:= kmod-ath9k wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport
|
2016-05-30 09:54:06 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Device/VR200v
|
|
|
|
$(Device/lantiqTpLink)
|
|
|
|
DEVICE_PROFILE := VR200v
|
|
|
|
BOARD_ID := ArcherVR200V
|
|
|
|
IMAGE_SIZE := 15808k
|
2016-06-01 20:43:58 +00:00
|
|
|
DEVICE_TITLE := TP-LINK Archer VR200v
|
2016-10-19 10:09:45 +00:00
|
|
|
DEVICE_PACKAGES:= kmod-usb-dwc2 kmod-usb-ledtrig-usbport
|
2016-05-30 09:54:06 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += TDW8970 TDW8980 VR200v
|
|
|
|
|