From be965e7e4a20368c65aba4cedaf87fc8dd71e95b Mon Sep 17 00:00:00 2001
From: Martin Weinelt <martin@darmstadt.freifunk.net>
Date: Thu, 19 Sep 2019 15:32:15 +0200
Subject: [PATCH] ar71xx-generic: deprecate ALFA AP121, Hornet-UB, Tube2H,
 N2/N5

The kernel partition on these devices is too small for the
OpenWrt 19.07 kernel. It is also located after the rootfs, so
we cannot grow it further.

Therefore mark these devices as deprecated now.
---
 docs/user/supported_devices.rst | 12 ++++++------
 targets/ar71xx-generic          |  3 +++
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst
index dae1e0e97..5515dc9a4 100644
--- a/docs/user/supported_devices.rst
+++ b/docs/user/supported_devices.rst
@@ -10,13 +10,13 @@ ar71xx-generic
 
 * ALFA Network
 
-  - AP121
+  - AP121 [#deprecated]_
   - AP121F
-  - AP121U
-  - Hornet-UB
-  - Tube2H
-  - N2
-  - N5
+  - AP121U [#deprecated]_
+  - Hornet-UB [#deprecated]_
+  - Tube2H [#deprecated]_
+  - N2 [#deprecated]_
+  - N5 [#deprecated]_
 
 * Allnet
 
diff --git a/targets/ar71xx-generic b/targets/ar71xx-generic
index 965b440bb..86a82476e 100644
--- a/targets/ar71xx-generic
+++ b/targets/ar71xx-generic
@@ -25,13 +25,16 @@ device('alfa-network-ap121f', 'ap121f', {
 device('alfa-network-hornet-ub', 'hornet-ub', {
 	profile = 'HORNETUB',
 	aliases = { 'alfa-network-ap121', 'alfa-network-ap121u' },
+	deprecated = true,  -- kernel partition too small with OpenWrt 19.07
 })
 
 device('alfa-network-tube2h', 'tube2h-8M', {
 	profile = 'TUBE2H8M',
+	deprecated = true,  -- kernel partition too small with OpenWrt 19.07
 })
 device('alfa-network-n2-n5', 'alfa-nx', {
 	profile = 'ALFANX',
+	deprecated = true,  -- kernel partition too small with OpenWrt 19.07
 })
 
 
-- 
GitLab