mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
9338c09ecb
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>
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
include ./common.mk
|
|
|
|
define Device/d-link_dgs-1210-52
|
|
$(Build/d-link_dgs-1210)
|
|
SOC := rtl8393
|
|
DEVICE_MODEL := DGS-1210-52
|
|
endef
|
|
TARGET_DEVICES += d-link_dgs-1210-52
|
|
|
|
define Device/panasonic_m48eg-pn28480k
|
|
SOC := rtl8393
|
|
IMAGE_SIZE := 16384k
|
|
DEVICE_VENDOR := Panasonic
|
|
DEVICE_MODEL := Switch-M48eG
|
|
DEVICE_VARIANT := PN28480K
|
|
DEVICE_PACKAGES := kmod-hwmon-gpiofan kmod-hwmon-lm75 kmod-i2c-mux-pca954x \
|
|
kmod-thermal
|
|
endef
|
|
TARGET_DEVICES += panasonic_m48eg-pn28480k
|
|
|
|
define Device/tplink_sg2452p-v4
|
|
SOC := rtl8393
|
|
KERNEL_SIZE := 6m
|
|
IMAGE_SIZE := 26m
|
|
DEVICE_VENDOR := TP-Link
|
|
DEVICE_MODEL := SG2452P
|
|
DEVICE_VARIANT := v4
|
|
DEVICE_PACKAGES := kmod-hwmon-gpiofan kmod-hwmon-tps23861
|
|
endef
|
|
TARGET_DEVICES += tplink_sg2452p-v4
|
|
|
|
define Device/zyxel_gs1900-48
|
|
SOC := rtl8393
|
|
IMAGE_SIZE := 13952k
|
|
DEVICE_VENDOR := ZyXEL
|
|
UIMAGE_MAGIC := 0x83800000
|
|
ZYXEL_VERS := AAHO
|
|
DEVICE_MODEL := GS1900-48
|
|
KERNEL_INITRAMFS := kernel-bin | append-dtb | gzip | zyxel-vers $$$$(ZYXEL_VERS) | \
|
|
uImage gzip
|
|
endef
|
|
TARGET_DEVICES += zyxel_gs1900-48
|