[openwrt/openwrt] iwinfo: drop @!WIFI_SCRIPTS_UCODE dependency

LEDE Commits lede-commits at lists.infradead.org
Sun Sep 28 09:17:50 PDT 2025


nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/30b35ff5ae7be41d772812c232083d5bbf3fabb0

commit 30b35ff5ae7be41d772812c232083d5bbf3fabb0
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Sun Sep 28 16:25:01 2025 +0200

    iwinfo: drop @!WIFI_SCRIPTS_UCODE dependency
    
    Make the package empty if ucode wifi scripts are being used (since iwinfo is
    provided by wifi-scripts in that case). This fixes packages that explicitly
    select iwinfo
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 package/network/utils/iwinfo/Makefile | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/package/network/utils/iwinfo/Makefile b/package/network/utils/iwinfo/Makefile
index 35f47e33a8..013816d722 100644
--- a/package/network/utils/iwinfo/Makefile
+++ b/package/network/utils/iwinfo/Makefile
@@ -63,7 +63,7 @@ define Package/iwinfo
   SECTION:=utils
   CATEGORY:=Utilities
   TITLE:=Generalized Wireless Information utility
-  DEPENDS:=+libiwinfo @!WIFI_SCRIPTS_UCODE
+  DEPENDS:=+@!WIFI_SCRIPTS_UCODE:libiwinfo
 endef
 
 define Package/iwinfo/description
@@ -111,10 +111,16 @@ define Package/libiwinfo-data/install
 	$(INSTALL_DATA) $(PKG_BUILD_DIR)/devices.txt $(1)/usr/share/libiwinfo/devices.txt
 endef
 
-define Package/iwinfo/install
+ifdef CONFIG_WIFI_SCRIPTS_UCODE
+  define Package/iwinfo/install
+	:
+  endef
+else
+  define Package/iwinfo/install
 	$(INSTALL_DIR) $(1)/usr/bin
 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/iwinfo $(1)/usr/bin/iwinfo
-endef
+  endef
+endif
 
 $(eval $(call BuildPackage,libiwinfo))
 $(eval $(call BuildPackage,libiwinfo-lua))




More information about the lede-commits mailing list