KERNEL_LOADADDR = 0x80100000
DEVICE_VARS += \
+ CAMEO_BOARD_MODEL \
CAMEO_BOARD_VERSION \
CAMEO_CUSTOMER_SIGNATURE \
CAMEO_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; \
$(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_BOARD_VERSION) \
$(KERNEL_LOADADDR); \
$(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_BOARD_VERSION); \
cat $@.kernel_part.hex $@.rootfs_part.hex > $@
# SPDX-License-Identifier: GPL-2.0-only
-define Device/d-link_dgs-1210
- IMAGE_SIZE := 13824k
- DEVICE_VENDOR := D-Link
- DLINK_KERNEL_PART_SIZE := 1572864
+define Device/cameo-fw
+ CAMEO_BOARD_MODEL = $$(DEVICE_MODEL)
KERNEL := \
kernel-bin | \
append-dtb | \
libdeflate-gzip | \
uImage gzip | \
cameo-tag
- CAMEO_KERNEL_PART := 2
- CAMEO_ROOTFS_PART := 3
- CAMEO_CUSTOMER_SIGNATURE := 2
- CAMEO_BOARD_VERSION := 32
IMAGES += factory_image1.bin
IMAGE/factory_image1.bin := \
append-kernel | \
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