From 0ef4d4e6b1a0cbb2fbcdb204e44af1f8fc13376d Mon Sep 17 00:00:00 2001 From: Sukru Senli Date: Tue, 3 Jan 2023 15:40:31 +0100 Subject: [PATCH] ethmngr: make scripts available for all targets even though ethmngr/libethernet pair is not available --- ethmngr/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ethmngr/Makefile b/ethmngr/Makefile index b560e8fe4..406531749 100644 --- a/ethmngr/Makefile +++ b/ethmngr/Makefile @@ -23,7 +23,7 @@ define Package/ethmngr SECTION:=utils CATEGORY:=Utilities TITLE:=Ethernet status and configration utility - DEPENDS:=@(TARGET_brcmbca||TARGET_airoha||TARGET_ipq95xx) +libethernet +libuci +libubox +ubus +libpthread +libnl-genl + DEPENDS:=+(TARGET_brcmbca||TARGET_airoha||TARGET_ipq95xx):libethernet +libuci +libubox +ubus +libpthread +libnl-genl endef define Package/ethmngr/description @@ -37,6 +37,11 @@ TARGET_CFLAGS += \ -I$(STAGING_DIR)/usr/include/libnl3 \ -D_GNU_SOURCE +ifeq ($(CONFIG_TARGET_brcmbca)$(CONFIG_TARGET_airoha)$(CONFIG_TARGET_ipq95xx),) +define Build/Compile +endef +endif + define Package/ethmngr/install $(CP) ./files/common/* $(1)/ ifneq ($(CONFIG_TARGET_brcmbca),) @@ -46,8 +51,10 @@ else ifneq ($(CONFIG_TARGET_airoha),) else $(CP) ./files/linux/* $(1)/ endif +ifneq ($(CONFIG_TARGET_brcmbca)$(CONFIG_TARGET_airoha)$(CONFIG_TARGET_ipq95xx),) $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/ethmngr $(1)/usr/sbin/ +endif endef $(eval $(call BuildPackage,ethmngr))