tp-link.mk 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. define Build/tplink-fw
  2. mktplinkfw2 -c -B $(BOARD_ID) -s \
  3. -k $@ -o $@.new
  4. mv $@.new $@
  5. endef
  6. define Build/mktplinkfw2
  7. mktplinkfw2 -B $(BOARD_ID) -s -a 0x4 -j \
  8. -k $(word 1,$^) -r $(word 2,$^) \
  9. -o $@
  10. endef
  11. DEVICE_VARS += BOARD_ID
  12. define Device/lantiqTpLink
  13. KERNEL := kernel-bin | append-dtb | lzma
  14. KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | tplink-fw
  15. IMAGES := sysupgrade.bin
  16. IMAGE/sysupgrade.bin := mktplinkfw2 | check-size $$$$(IMAGE_SIZE)
  17. endef
  18. define Device/TDW8970
  19. $(Device/lantiqTpLink)
  20. DEVICE_PROFILE := TDW8970
  21. BOARD_ID := TD-W8970v1
  22. IMAGE_SIZE := 7680k
  23. DEVICE_TITLE := TP-LINK TD-W8970
  24. DEVICE_PACKAGES:= kmod-ath9k wpad-mini kmod-usb-dwc2 kmod-ledtrig-usbdev
  25. endef
  26. define Device/TDW8980
  27. $(Device/lantiqTpLink)
  28. DEVICE_PROFILE := TDW8980
  29. BOARD_ID := TD-W8980v1
  30. IMAGE_SIZE := 7680k
  31. DEVICE_TITLE := TP-LINK TD-W8980
  32. DEVICE_PACKAGES:= kmod-ath9k wpad-mini kmod-usb-dwc2 kmod-ledtrig-usbdev
  33. endef
  34. define Device/VR200v
  35. $(Device/lantiqTpLink)
  36. DEVICE_PROFILE := VR200v
  37. BOARD_ID := ArcherVR200V
  38. IMAGE_SIZE := 15808k
  39. DEVICE_TITLE := TP-LINK Archer VR200v
  40. DEVICE_PACKAGES:= kmod-usb-dwc2 kmod-ledtrig-usbdev
  41. endef
  42. TARGET_DEVICES += TDW8970 TDW8980 VR200v