mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
51ecfb086c
Currently supported HPE 1920 devices all have an RTL838x SoC, but there are larger switches with RTL839x SoCs, although currently not supported. Move the build recipe to common.mk so the larger devices can also make use of the recipe, while moving it out of the main Makefile. Signed-off-by: Sander Vanheule <sander@svanheule.net>
28 lines
951 B
Makefile
28 lines
951 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
define Build/d-link_dgs-1210
|
|
IMAGE_SIZE := 13824k
|
|
DEVICE_VENDOR := D-Link
|
|
DLINK_KERNEL_PART_SIZE := 1572864
|
|
KERNEL := kernel-bin | append-dtb | gzip | uImage gzip | dlink-cameo
|
|
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 | pad-to 64k | \
|
|
append-rootfs | pad-rootfs | pad-to 16 | check-size | \
|
|
dlink-version | dlink-headers
|
|
endef
|
|
|
|
define Build/hpe_1920
|
|
DEVICE_VENDOR := HPE
|
|
IMAGE_SIZE := 29632k
|
|
BLOCKSIZE := 64k
|
|
H3C_PRODUCT_ID := 0x3c010501
|
|
KERNEL := kernel-bin | append-dtb | relocate-kernel | 7z | h3c-image | h3c-vfs
|
|
KERNEL_INITRAMFS := kernel-bin | append-dtb | relocate-kernel | 7z | h3c-image
|
|
IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
|
|
pad-rootfs | check-size | append-metadata
|
|
endef
|