realtek-rtl838x: add support for D-Link DGS-1210-10P

as well as the target itself

(cherry picked from commit a8dc234550)
This commit is contained in:
Jan-Niklas Burfeind 2022-11-26 03:09:26 +01:00 committed by github-actions[bot]
parent 0b12f9cb80
commit 0b516a7e61
5 changed files with 26 additions and 0 deletions

9
.github/filters.yml vendored
View File

@ -147,6 +147,15 @@
"targets/generic",
"targets/targets.mk"
],
"realtek-rtl838x": [
"targets/realtek-rtl838x",
"modules",
"Makefile",
"patches/**",
"scripts/**",
"targets/generic",
"targets/targets.mk"
],
"rockchip-armv8": [
"targets/rockchip-armv8",
"modules",

View File

@ -434,6 +434,13 @@ ramips-mt76x8
- Xiaomi Mi Router 4A (100M International Edition)
- Xiaomi Mi Router 4C
realtek-rtl838x
---------------
* D-Link
- DGS-1210-10P (F1)
rockchip-armv8
--------------

View File

@ -67,6 +67,10 @@ elseif platform.match('ramips', 'mt7621', {
'netgear,wac104',
}) then
lan_ifname, wan_ifname = 'lan2 lan3 lan4', 'lan1'
elseif platform.match('realtek', 'rtl838x', {
'd-link,dgs-1210-10p',
}) then
lan_ifname, wan_ifname = 'lan2 lan3 lan4 lan5 lan6 lan7 lan8 lan9 lan10', 'lan1'
end
if wan_ifname and lan_ifname then

5
targets/realtek-rtl838x Normal file
View File

@ -0,0 +1,5 @@
-- D-Link
device('d-link_dgs-1210-10p', 'd-link_dgs-1210-10p', {
factory = '-squashfs-factory_image1',
})

View File

@ -14,6 +14,7 @@ $(eval $(call GluonTarget,mpc85xx,p1020))
$(eval $(call GluonTarget,ramips,mt7620))
$(eval $(call GluonTarget,ramips,mt7621))
$(eval $(call GluonTarget,ramips,mt76x8))
$(eval $(call GluonTarget,realtek,rtl838x))
$(eval $(call GluonTarget,rockchip,armv8))
$(eval $(call GluonTarget,sunxi,cortexa7))
$(eval $(call GluonTarget,x86,generic))