From 6a7fbc7843ed694ebc1c7f864f10bfe2c7e48a32 Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Thu, 12 Oct 2023 22:39:06 +0200
Subject: [PATCH] lantiq-xrx200: mark target as broken

lantiq-xrx200 is currently marked as source-only in OpenWrt 23.05, as
the switch driver does not work correctly on Linux 5.15. Mark as broken
in Gluon as well until the issue is fixed.

Upstream PR: https://github.com/openwrt/openwrt/pull/13200
---
 .github/filters.yml | 18 +++++++++---------
 targets/targets.mk  |  2 +-
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/.github/filters.yml b/.github/filters.yml
index 2b7f50af..5f308688 100644
--- a/.github/filters.yml
+++ b/.github/filters.yml
@@ -75,15 +75,6 @@
     "targets/generic",
     "targets/targets.mk"
   ],
-  "lantiq-xrx200": [
-    "targets/lantiq-xrx200",
-    "modules",
-    "Makefile",
-    "patches/**",
-    "scripts/**",
-    "targets/generic",
-    "targets/targets.mk"
-  ],
   "lantiq-xway": [
     "targets/lantiq-xway",
     "modules",
@@ -235,6 +226,15 @@
     "targets/targets.mk",
     "targets/bcm27xx.inc"
   ],
+  "lantiq-xrx200": [
+    "targets/lantiq-xrx200",
+    "modules",
+    "Makefile",
+    "patches/**",
+    "scripts/**",
+    "targets/generic",
+    "targets/targets.mk"
+  ],
   "mvebu-cortexa9": [
     "targets/mvebu-cortexa9",
     "modules",
diff --git a/targets/targets.mk b/targets/targets.mk
index 3a885f22..659d443c 100644
--- a/targets/targets.mk
+++ b/targets/targets.mk
@@ -6,7 +6,6 @@ $(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))
 $(eval $(call GluonTarget,mediatek,filogic))
 $(eval $(call GluonTarget,mediatek,mt7622))
@@ -26,5 +25,6 @@ $(eval $(call GluonTarget,x86,64))
 
 ifneq ($(BROKEN),)
 $(eval $(call GluonTarget,bcm27xx,bcm2710)) # BROKEN: Untested
+$(eval $(call GluonTarget,lantiq,xrx200)) # BROKEN: Switch driver broken on Linux 5.15
 $(eval $(call GluonTarget,mvebu,cortexa9)) # BROKEN: No 11s support
 endif
-- 
GitLab