mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-11 06:54:21 +00:00
The D-Link DGS-1210 device series currently has supported devices with both RTL838x and RTL839x SoCs. An image build recipe has been defined in both subtarget makefiles, but these are mostly identical, save for the SOC variable. Move the SOC variable from the DGS-1210 build recipes to the applicable devices, and put the remaining duplicate code in a shared Makefile. Signed-off-by: Sander Vanheule <sander@svanheule.net>
17 lines
536 B
Makefile
17 lines
536 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
|