From: Birger Koblitz Date: Wed, 29 Dec 2021 18:39:26 +0000 (+0100) Subject: realtek: Create rtl838x sub-target specific makefiles X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0d7cace7bd25e0c5675755a2c36c8886b9adacd4;p=openwrt%2Fstaging%2Fnbd.git realtek: Create rtl838x sub-target specific makefiles Create the RTL838x specific Makefiles. Move CPU-type into rtl838x.mk as this is specifc to that platform. Add rtl838x subtarget into main Makefile. Signed-off-by: Birger Koblitz --- diff --git a/target/linux/realtek/Makefile b/target/linux/realtek/Makefile index ae0ba718ec..39d9d35f7f 100644 --- a/target/linux/realtek/Makefile +++ b/target/linux/realtek/Makefile @@ -3,12 +3,11 @@ 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 @@ -18,8 +17,6 @@ endef 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 diff --git a/target/linux/realtek/image/Makefile b/target/linux/realtek/image/Makefile index a7961970a3..026c6e0068 100644 --- a/target/linux/realtek/image/Makefile +++ b/target/linux/realtek/image/Makefile @@ -37,129 +37,6 @@ define Device/netgear_nge 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)) diff --git a/target/linux/realtek/image/rtl838x.mk b/target/linux/realtek/image/rtl838x.mk new file mode 100644 index 0000000000..6f0e8988f9 --- /dev/null +++ b/target/linux/realtek/image/rtl838x.mk @@ -0,0 +1,127 @@ +# 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