From 39f9bf7ac375f0aa7737f4a2ca29a6081377acec Mon Sep 17 00:00:00 2001 From: timniklas Date: Wed, 6 Jul 2022 22:18:40 +0200 Subject: [PATCH] ipq40xx-mikrotik: add support for mikrotik-sxtsq-5-ac (#2573) Co-Authored-By: J. Burfeind Co-authored-by: Tim-Niklas Koch Co-authored-by: J. Burfeind --- docs/user/supported_devices.rst | 8 ++++++++ package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua | 5 +++++ targets/ipq40xx-mikrotik | 6 ++++++ targets/targets.mk | 1 + 4 files changed, 20 insertions(+) create mode 100644 targets/ipq40xx-mikrotik diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst index 8c411d32..f9306d05 100644 --- a/docs/user/supported_devices.rst +++ b/docs/user/supported_devices.rst @@ -196,6 +196,14 @@ ipq40xx-generic - NBG6617 - WRE6606 [#device-class-tiny]_ +ipq40xx-mikrotik +---------------- + +* Mikrotik + + - DISC Lite5 ac (RBDiscG-5acD) + - SXTsq 5 ac (RBSXTsqG-5acD) + ipq806x-generic --------------- diff --git a/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua b/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua index f72bf44c..eb86d914 100644 --- a/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua +++ b/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua @@ -53,6 +53,11 @@ function M.is_outdoor_device() 'plasmacloud,pa1200', }) then return true + + elseif M.match('ipq40xx', 'mikrotik', { + 'mikrotik,sxtsq-5-ac', + }) then + return true end return false diff --git a/targets/ipq40xx-mikrotik b/targets/ipq40xx-mikrotik new file mode 100644 index 00000000..dcb2f91b --- /dev/null +++ b/targets/ipq40xx-mikrotik @@ -0,0 +1,6 @@ +include 'mikrotik.inc' + +device('mikrotik-sxtsq-5-ac-rbsxtsqg-5acd', 'mikrotik_sxtsq-5-ac', { + factory = false, + aliases = {'mikrotik-discg-5acd'}, +}) diff --git a/targets/targets.mk b/targets/targets.mk index 5abd5720..b405adae 100644 --- a/targets/targets.mk +++ b/targets/targets.mk @@ -4,6 +4,7 @@ $(eval $(call GluonTarget,ath79,mikrotik)) $(eval $(call GluonTarget,bcm27xx,bcm2708)) $(eval $(call GluonTarget,bcm27xx,bcm2709)) $(eval $(call GluonTarget,ipq40xx,generic)) +$(eval $(call GluonTarget,ipq40xx,mikrotik)) $(eval $(call GluonTarget,ipq806x,generic)) $(eval $(call GluonTarget,lantiq,xrx200)) $(eval $(call GluonTarget,lantiq,xway))