From 1bdd031f5cc2ee99434bd1a1603aef46805858e9 Mon Sep 17 00:00:00 2001
From: dequis <dx@dxzone.com.ar>
Date: Sat, 17 Jun 2023 18:53:35 +0200
Subject: [PATCH] Remove build system support for proto5/adi-less

It was never actually supported by the codebase (the port expanders are
completely different and only implemented in the other repo)
---
 components/badge23/Kconfig                  | 8 +-------
 components/flow3r_bsp/flow3r_bsp_hwconfig.c | 2 --
 idf_ext.py                                  | 3 +--
 3 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/components/badge23/Kconfig b/components/badge23/Kconfig
index 0cdac74dc4..cc2007431a 100644
--- a/components/badge23/Kconfig
+++ b/components/badge23/Kconfig
@@ -22,16 +22,10 @@ menu "Badge23 Config"
                 Visual identifiers:
                   - Sticker with B4xx (xx being arbitrary digits) on the back
             bool "Prototype 4"
-        config BADGE23_HW_GEN_ADILESS
-            help
-                Prototype version 5, a.k.a. adi-less
-                Visual identifiers:
-                  - Sticker with B5xx (xx being arbitrary digits) on the back
-            bool "Prototype 5 / ADI-less"
         config BADGE23_HW_GEN_P6
             help
                 Prototype version 6, a.k.a. proto6
                   - Sticker with B6xx (xx being arbitrary digits) on the back
-            bool "Prototype 5 / ADI-less"
+            bool "Prototype 6"
     endchoice
 endmenu
diff --git a/components/flow3r_bsp/flow3r_bsp_hwconfig.c b/components/flow3r_bsp/flow3r_bsp_hwconfig.c
index 8b78878db7..fecf34b751 100644
--- a/components/flow3r_bsp/flow3r_bsp_hwconfig.c
+++ b/components/flow3r_bsp/flow3r_bsp_hwconfig.c
@@ -6,8 +6,6 @@ const char *flow3r_bsp_hw_name = "proto1";
 const char *flow3r_bsp_hw_name = "proto3";
 #elif defined(CONFIG_BADGE23_HW_GEN_P4)
 const char *flow3r_bsp_hw_name = "proto4";
-#elif defined(CONFIG_BADGE23_HW_GEN_ADILESS)
-const char *flow3r_bsp_hw_name = "adiless";
 #elif defined(CONFIG_BADGE23_HW_GEN_P6)
 const char *flow3r_bsp_hw_name = "proto6";
 #else
diff --git a/idf_ext.py b/idf_ext.py
index c80c0282da..f4a31d7b89 100644
--- a/idf_ext.py
+++ b/idf_ext.py
@@ -17,7 +17,6 @@ def action_extensions(base_actions, project_path=os.getcwd()):
         'p1': ['proto1'],
         'p3': ['proto3'],
         'p4': ['proto4'],
-        'p5': ['adi-less'],
         'p6': ['proto6'],
     }
 
@@ -61,7 +60,7 @@ def action_extensions(base_actions, project_path=os.getcwd()):
     extensions = {
         'global_options': [{
             'names': ['-g', '--generation'],
-            'help': 'Specify badge generation to build for (one of: proto1, proto3, proto4, adiless). Defaults to proto4.',
+            'help': 'Specify badge generation to build for (one of: proto1, proto3, proto4). Defaults to proto4.',
             'scope': 'shared',
             'multiple': False,
         }],
-- 
GitLab