forked from Openwrt/openwrt
5b33916c0a
The cameo-related recipes can also be used for APRESIA ApresiaLightGS series devices. So create common definition for the devices manufactured by Cameo. And also, the model name of ApresiaLightGS120GT-SS is too long for cameo header (max: 20 bytes), so use additional variable "CAMEO_BOARD_MODEL" in Build/cameo-headers instead of DEVICE_MODEL to use the custom name. (default of CAMEO_BOARD_MODEL: DEVICE_MODEL) Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
70 lines
1.3 KiB
Makefile
70 lines
1.3 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
define Device/cameo-fw
|
|
CAMEO_BOARD_MODEL = $$(DEVICE_MODEL)
|
|
KERNEL := \
|
|
kernel-bin | \
|
|
append-dtb | \
|
|
libdeflate-gzip | \
|
|
uImage gzip | \
|
|
cameo-tag
|
|
IMAGES += factory_image1.bin
|
|
IMAGE/factory_image1.bin := \
|
|
append-kernel | \
|
|
pad-to 64k | \
|
|
append-rootfs | \
|
|
pad-rootfs | \
|
|
pad-to 16 | \
|
|
check-size | \
|
|
cameo-version | \
|
|
cameo-headers
|
|
endef
|
|
|
|
define Device/d-link_dgs-1210
|
|
$(Device/cameo-fw)
|
|
IMAGE_SIZE := 13824k
|
|
DEVICE_VENDOR := D-Link
|
|
CAMEO_KERNEL_PART_SIZE := 1572864
|
|
CAMEO_KERNEL_PART := 2
|
|
CAMEO_ROOTFS_PART := 3
|
|
CAMEO_CUSTOMER_SIGNATURE := 2
|
|
CAMEO_BOARD_VERSION := 32
|
|
endef
|
|
|
|
define Device/hpe_1920
|
|
DEVICE_VENDOR := HPE
|
|
IMAGE_SIZE := 29632k
|
|
BLOCKSIZE := 64k
|
|
H3C_PRODUCT_ID := 0x3c010501
|
|
KERNEL := \
|
|
kernel-bin | \
|
|
append-dtb | \
|
|
7z | \
|
|
h3c-image | \
|
|
h3c-vfs
|
|
KERNEL_INITRAMFS := \
|
|
kernel-bin | \
|
|
append-dtb | \
|
|
7z | \
|
|
h3c-image
|
|
IMAGE/sysupgrade.bin := \
|
|
append-kernel | \
|
|
pad-to $$$$(BLOCKSIZE) | \
|
|
append-rootfs | \
|
|
pad-rootfs | \
|
|
check-size | \
|
|
append-metadata
|
|
endef
|
|
|
|
define Device/zyxel_gs1900
|
|
DEVICE_VENDOR := ZyXEL
|
|
IMAGE_SIZE := 6976k
|
|
UIMAGE_MAGIC := 0x83800000
|
|
KERNEL_INITRAMFS := \
|
|
kernel-bin | \
|
|
append-dtb | \
|
|
libdeflate-gzip | \
|
|
zyxel-vers | \
|
|
uImage gzip
|
|
endef
|