mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-21 20:08:24 +00:00
realtek: add common definition of cameo based firmware
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>
This commit is contained in:
parent
d76f0f407b
commit
5b33916c0a
@ -6,6 +6,7 @@ include $(INCLUDE_DIR)/image.mk
|
|||||||
KERNEL_LOADADDR = 0x80100000
|
KERNEL_LOADADDR = 0x80100000
|
||||||
|
|
||||||
DEVICE_VARS += \
|
DEVICE_VARS += \
|
||||||
|
CAMEO_BOARD_MODEL \
|
||||||
CAMEO_BOARD_VERSION \
|
CAMEO_BOARD_VERSION \
|
||||||
CAMEO_CUSTOMER_SIGNATURE \
|
CAMEO_CUSTOMER_SIGNATURE \
|
||||||
CAMEO_KERNEL_PART \
|
CAMEO_KERNEL_PART \
|
||||||
@ -36,12 +37,12 @@ define Build/cameo-headers
|
|||||||
dd if=$@ bs=$(CAMEO_KERNEL_PART_SIZE) count=1 of=$@.kernel_part; \
|
dd if=$@ bs=$(CAMEO_KERNEL_PART_SIZE) count=1 of=$@.kernel_part; \
|
||||||
dd if=$@ bs=$(CAMEO_KERNEL_PART_SIZE) skip=1 of=$@.rootfs_part; \
|
dd if=$@ bs=$(CAMEO_KERNEL_PART_SIZE) skip=1 of=$@.rootfs_part; \
|
||||||
$(SCRIPT_DIR)/cameo-imghdr.py $@.kernel_part $@.kernel_part.hex \
|
$(SCRIPT_DIR)/cameo-imghdr.py $@.kernel_part $@.kernel_part.hex \
|
||||||
"$(DEVICE_MODEL)" os $(CAMEO_KERNEL_PART) \
|
"$(CAMEO_BOARD_MODEL)" os $(CAMEO_KERNEL_PART) \
|
||||||
$(CAMEO_CUSTOMER_SIGNATURE) \
|
$(CAMEO_CUSTOMER_SIGNATURE) \
|
||||||
$(CAMEO_BOARD_VERSION) \
|
$(CAMEO_BOARD_VERSION) \
|
||||||
$(KERNEL_LOADADDR); \
|
$(KERNEL_LOADADDR); \
|
||||||
$(SCRIPT_DIR)/cameo-imghdr.py $@.rootfs_part $@.rootfs_part.hex \
|
$(SCRIPT_DIR)/cameo-imghdr.py $@.rootfs_part $@.rootfs_part.hex \
|
||||||
"$(DEVICE_MODEL)" squashfs $(CAMEO_ROOTFS_PART) \
|
"$(CAMEO_BOARD_MODEL)" squashfs $(CAMEO_ROOTFS_PART) \
|
||||||
$(CAMEO_CUSTOMER_SIGNATURE) \
|
$(CAMEO_CUSTOMER_SIGNATURE) \
|
||||||
$(CAMEO_BOARD_VERSION); \
|
$(CAMEO_BOARD_VERSION); \
|
||||||
cat $@.kernel_part.hex $@.rootfs_part.hex > $@
|
cat $@.kernel_part.hex $@.rootfs_part.hex > $@
|
||||||
|
@ -1,19 +1,13 @@
|
|||||||
# SPDX-License-Identifier: GPL-2.0-only
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
define Device/d-link_dgs-1210
|
define Device/cameo-fw
|
||||||
IMAGE_SIZE := 13824k
|
CAMEO_BOARD_MODEL = $$(DEVICE_MODEL)
|
||||||
DEVICE_VENDOR := D-Link
|
|
||||||
DLINK_KERNEL_PART_SIZE := 1572864
|
|
||||||
KERNEL := \
|
KERNEL := \
|
||||||
kernel-bin | \
|
kernel-bin | \
|
||||||
append-dtb | \
|
append-dtb | \
|
||||||
libdeflate-gzip | \
|
libdeflate-gzip | \
|
||||||
uImage gzip | \
|
uImage gzip | \
|
||||||
cameo-tag
|
cameo-tag
|
||||||
CAMEO_KERNEL_PART := 2
|
|
||||||
CAMEO_ROOTFS_PART := 3
|
|
||||||
CAMEO_CUSTOMER_SIGNATURE := 2
|
|
||||||
CAMEO_BOARD_VERSION := 32
|
|
||||||
IMAGES += factory_image1.bin
|
IMAGES += factory_image1.bin
|
||||||
IMAGE/factory_image1.bin := \
|
IMAGE/factory_image1.bin := \
|
||||||
append-kernel | \
|
append-kernel | \
|
||||||
@ -26,6 +20,17 @@ define Device/d-link_dgs-1210
|
|||||||
cameo-headers
|
cameo-headers
|
||||||
endef
|
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
|
define Device/hpe_1920
|
||||||
DEVICE_VENDOR := HPE
|
DEVICE_VENDOR := HPE
|
||||||
IMAGE_SIZE := 29632k
|
IMAGE_SIZE := 29632k
|
||||||
|
Loading…
Reference in New Issue
Block a user