include $(TOPDIR)/rules.mk
ARCH:=mips
-CPU_TYPE:=4kec
BOARD:=realtek
BOARDNAME:=Realtek MIPS
DEVICE_TYPE:=basic
FEATURES:=ramdisk squashfs
-SUBTARGETS:=generic
+SUBTARGETS:=rtl838x
KERNEL_PATCHVER:=5.10
include $(INCLUDE_DIR)/target.mk
-FEATURES := $(filter-out mips16,$(FEATURES))
-
DEFAULT_PACKAGES += uboot-envtools ethtool kmod-gpio-button-hotplug \
dnsmasq firewall ip6tables iptables odhcp6c odhcpd-ipv6only \
ip-full ip-bridge tc
DEVICE_VENDOR := NETGEAR
endef
-define Device/allnet_all-sg8208m
- SOC := rtl8382
- IMAGE_SIZE := 7168k
- DEVICE_VENDOR := ALLNET
- DEVICE_MODEL := ALL-SG8208M
- UIMAGE_MAGIC := 0x00000006
- UIMAGE_NAME := 2.2.2.0
-endef
-TARGET_DEVICES += allnet_all-sg8208m
-
-define Device/d-link_dgs-1210
- SOC := rtl8382
- IMAGE_SIZE := 13824k
- DEVICE_VENDOR := D-Link
-endef
-
-define Device/d-link_dgs-1210-10p
- $(Device/d-link_dgs-1210)
- DEVICE_MODEL := DGS-1210-10P
- DEVICE_PACKAGES += lua-rs232
-endef
-TARGET_DEVICES += d-link_dgs-1210-10p
-
-define Device/d-link_dgs-1210-16
- $(Device/d-link_dgs-1210)
- DEVICE_MODEL := DGS-1210-16
-endef
-TARGET_DEVICES += d-link_dgs-1210-16
-
-define Device/d-link_dgs-1210-28
- $(Device/d-link_dgs-1210)
- DEVICE_MODEL := DGS-1210-28
-endef
-TARGET_DEVICES += d-link_dgs-1210-28
-
-define Device/inaba_aml2-17gp
- SOC := rtl8382
- IMAGE_SIZE := 13504k
- DEVICE_VENDOR := INABA
- DEVICE_MODEL := Abaniact AML2-17GP
- UIMAGE_MAGIC := 0x83800000
-endef
-TARGET_DEVICES += inaba_aml2-17gp
-
-define Device/netgear_gs108t-v3
- $(Device/netgear_nge)
- DEVICE_MODEL := GS108T
- DEVICE_VARIANT := v3
-endef
-TARGET_DEVICES += netgear_gs108t-v3
-
-define Device/netgear_gs110tpp-v1
- $(Device/netgear_nge)
- DEVICE_MODEL := GS110TPP
- DEVICE_VARIANT := v1
-endef
-TARGET_DEVICES += netgear_gs110tpp-v1
-
-define Device/netgear_gs308t-v1
- $(Device/netgear_nge)
- DEVICE_MODEL := GS308T
- DEVICE_VARIANT := v1
- UIMAGE_MAGIC := 0x4e474335
-endef
-TARGET_DEVICES += netgear_gs308t-v1
-
-define Device/netgear_gs310tp-v1
- $(Device/netgear_nge)
- DEVICE_MODEL := GS310TP
- DEVICE_VARIANT := v1
- UIMAGE_MAGIC := 0x4e474335
- DEVICE_PACKAGES += lua-rs232
-endef
-TARGET_DEVICES += netgear_gs310tp-v1
-
-define Device/zyxel_gs1900
- SOC := rtl8380
- IMAGE_SIZE := 6976k
- DEVICE_VENDOR := ZyXEL
- UIMAGE_MAGIC := 0x83800000
- KERNEL_INITRAMFS := kernel-bin | append-dtb | gzip | zyxel-vers | \
- uImage gzip
-endef
-
-define Device/zyxel_gs1900-10hp
- $(Device/zyxel_gs1900)
- DEVICE_MODEL := GS1900-10HP
- ZYXEL_VERS := AAZI
-endef
-TARGET_DEVICES += zyxel_gs1900-10hp
-
-define Device/zyxel_gs1900-8
- $(Device/zyxel_gs1900)
- DEVICE_MODEL := GS1900-8
- ZYXEL_VERS := AAHH
-endef
-TARGET_DEVICES += zyxel_gs1900-8
-
-define Device/zyxel_gs1900-8hp-v1
- $(Device/zyxel_gs1900)
- DEVICE_MODEL := GS1900-8HP
- DEVICE_VARIANT := v1
- ZYXEL_VERS := AAHI
- DEVICE_PACKAGES += lua-rs232
-endef
-TARGET_DEVICES += zyxel_gs1900-8hp-v1
-
-define Device/zyxel_gs1900-8hp-v2
- $(Device/zyxel_gs1900)
- DEVICE_MODEL := GS1900-8HP
- DEVICE_VARIANT := v2
- ZYXEL_VERS := AAHI
- DEVICE_PACKAGES += lua-rs232
-endef
-TARGET_DEVICES += zyxel_gs1900-8hp-v2
-
-define Device/zyxel_gs1900-24hp-v2
- $(Device/zyxel_gs1900)
- SOC := rtl8382
- DEVICE_MODEL := GS1900-24HP
- DEVICE_VARIANT := v2
- ZYXEL_VERS := ABTP
-endef
-TARGET_DEVICES += zyxel_gs1900-24hp-v2
+include $(SUBTARGET).mk
$(eval $(call BuildImage))
--- /dev/null
+# SPDX-License-Identifier: GPL-2.0-only
+
+
+define Device/allnet_all-sg8208m
+ SOC := rtl8382
+ IMAGE_SIZE := 7168k
+ DEVICE_VENDOR := ALLNET
+ DEVICE_MODEL := ALL-SG8208M
+ UIMAGE_MAGIC := 0x00000006
+ UIMAGE_NAME := 2.2.2.0
+endef
+TARGET_DEVICES += allnet_all-sg8208m
+
+define Device/d-link_dgs-1210
+ SOC := rtl8382
+ IMAGE_SIZE := 13824k
+ DEVICE_VENDOR := D-Link
+endef
+
+define Device/d-link_dgs-1210-10p
+ $(Device/d-link_dgs-1210)
+ DEVICE_MODEL := DGS-1210-10P
+ DEVICE_PACKAGES += lua-rs232
+endef
+TARGET_DEVICES += d-link_dgs-1210-10p
+
+define Device/d-link_dgs-1210-16
+ $(Device/d-link_dgs-1210)
+ DEVICE_MODEL := DGS-1210-16
+endef
+TARGET_DEVICES += d-link_dgs-1210-16
+
+define Device/d-link_dgs-1210-28
+ $(Device/d-link_dgs-1210)
+ DEVICE_MODEL := DGS-1210-28
+endef
+TARGET_DEVICES += d-link_dgs-1210-28
+
+define Device/inaba_aml2-17gp
+ SOC := rtl8382
+ IMAGE_SIZE := 13504k
+ DEVICE_VENDOR := INABA
+ DEVICE_MODEL := Abaniact AML2-17GP
+ UIMAGE_MAGIC := 0x83800000
+endef
+TARGET_DEVICES += inaba_aml2-17gp
+
+define Device/netgear_gs108t-v3
+ $(Device/netgear_nge)
+ DEVICE_MODEL := GS108T
+ DEVICE_VARIANT := v3
+endef
+TARGET_DEVICES += netgear_gs108t-v3
+
+define Device/netgear_gs110tpp-v1
+ $(Device/netgear_nge)
+ DEVICE_MODEL := GS110TPP
+ DEVICE_VARIANT := v1
+endef
+TARGET_DEVICES += netgear_gs110tpp-v1
+
+define Device/netgear_gs308t-v1
+ $(Device/netgear_nge)
+ DEVICE_MODEL := GS308T
+ DEVICE_VARIANT := v1
+ UIMAGE_MAGIC := 0x4e474335
+endef
+TARGET_DEVICES += netgear_gs308t-v1
+
+define Device/netgear_gs310tp-v1
+ $(Device/netgear_nge)
+ DEVICE_MODEL := GS310TP
+ DEVICE_VARIANT := v1
+ UIMAGE_MAGIC := 0x4e474335
+ DEVICE_PACKAGES += lua-rs232
+endef
+TARGET_DEVICES += netgear_gs310tp-v1
+
+define Device/zyxel_gs1900
+ SOC := rtl8380
+ IMAGE_SIZE := 6976k
+ DEVICE_VENDOR := ZyXEL
+ UIMAGE_MAGIC := 0x83800000
+ KERNEL_INITRAMFS := kernel-bin | append-dtb | gzip | zyxel-vers | \
+ uImage gzip
+endef
+
+define Device/zyxel_gs1900-10hp
+ $(Device/zyxel_gs1900)
+ DEVICE_MODEL := GS1900-10HP
+ ZYXEL_VERS := AAZI
+endef
+TARGET_DEVICES += zyxel_gs1900-10hp
+
+define Device/zyxel_gs1900-8
+ $(Device/zyxel_gs1900)
+ DEVICE_MODEL := GS1900-8
+ ZYXEL_VERS := AAHH
+endef
+TARGET_DEVICES += zyxel_gs1900-8
+
+define Device/zyxel_gs1900-8hp-v1
+ $(Device/zyxel_gs1900)
+ DEVICE_MODEL := GS1900-8HP
+ DEVICE_VARIANT := v1
+ ZYXEL_VERS := AAHI
+ DEVICE_PACKAGES += lua-rs232
+endef
+TARGET_DEVICES += zyxel_gs1900-8hp-v1
+
+define Device/zyxel_gs1900-8hp-v2
+ $(Device/zyxel_gs1900)
+ DEVICE_MODEL := GS1900-8HP
+ DEVICE_VARIANT := v2
+ ZYXEL_VERS := AAHI
+ DEVICE_PACKAGES += lua-rs232
+endef
+TARGET_DEVICES += zyxel_gs1900-8hp-v2
+
+define Device/zyxel_gs1900-24hp-v2
+ $(Device/zyxel_gs1900)
+ SOC := rtl8382
+ DEVICE_MODEL := GS1900-24HP
+ DEVICE_VARIANT := v2
+ ZYXEL_VERS := ABTP
+endef
+TARGET_DEVICES += zyxel_gs1900-24hp-v2