mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-04 13:04:22 +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>
15 lines
471 B
Makefile
15 lines
471 B
Makefile
define Device/glinet_gl-ar300m-nand
|
|
ATH_SOC := qca9531
|
|
DEVICE_MODEL := GL-AR300M
|
|
DEVICE_VARIANT := NAND
|
|
DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage kmod-usb-ledtrig-usbport
|
|
KERNEL_SIZE := 2048k
|
|
BLOCKSIZE := 128k
|
|
PAGESIZE := 2048
|
|
VID_HDR_OFFSET := 512
|
|
IMAGES += factory.ubi
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar
|
|
IMAGE/factory.ubi := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
|
|
endef
|
|
TARGET_DEVICES += glinet_gl-ar300m-nand
|