mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 01:59:02 +00:00
8c3dbaf8b4
This allows the definition of DEVICE_VENDOR, DEVICE_MODEL and DEVICE_VARIANT. All three are merged together to look the same as the current DEVICE_TITLE. Also, if DEVICE_TITLE is set it's directly used as a *fallback* for devices which weren't upgraded yet. This is based on the work of @sudhanshu16. The motivation is to create JSON files based on provided metadata, needing clear differentiation between vendor, model and revision. Signed-off-by: Paul Spooren <mail@aparcar.org>
25 lines
773 B
Makefile
25 lines
773 B
Makefile
include ./common-buffalo.mk
|
|
|
|
define Device/buffalo_whr-g301n
|
|
ATH_SOC := ar7240
|
|
DEVICE_VENDOR := Buffalo
|
|
DEVICE_MODEL := WHR-G301N
|
|
IMAGE_SIZE := 3712k
|
|
IMAGES += factory.bin tftp.bin
|
|
IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
|
|
IMAGE/factory.bin := $$(IMAGE/default) | buffalo-enc WHR-G301N 1.99 | buffalo-tag WHR-G301N 3
|
|
IMAGE/tftp.bin := $$(IMAGE/default) | buffalo-tftp-header
|
|
SUPPORTED_DEVICES += whr-g301n
|
|
endef
|
|
TARGET_DEVICES += buffalo_whr-g301n
|
|
|
|
define Device/pqi_air-pen
|
|
ATH_SOC := ar9330
|
|
DEVICE_VENDOR := PQI
|
|
DEVICE_MODEL := Air-Pen
|
|
DEVICE_PACKAGES := kmod-usb-core kmod-usb2
|
|
IMAGE_SIZE := 7680k
|
|
SUPPORTED_DEVICES += pqi-air-pen
|
|
endef
|
|
TARGET_DEVICES += pqi_air-pen
|