mirror of
https://gitlab.com/prpl-foundation/prplos/prplos.git
synced 2025-12-20 00:56:07 +08:00
netifd: allow concurrent build with wifi-scripts
A feed might provide the new wifi-scripts package that moved the wifi script files to a dedicated package. Add support for this by tweaking netifd package and check if wifi-scripts is getting compiled. In such case, remove the netifd file in favor of feed package. Signed-off-by: John Crispin <john@phrozen.org> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
committed by
Hela Saadani
parent
11482f55bd
commit
9811cc03d8
@@ -9,6 +9,7 @@ PKG_SOURCE_DATE:=2024-01-04
|
||||
PKG_SOURCE_VERSION:=c18cc79d50002ab8529c21184aceb016c61ac61c
|
||||
PKG_MIRROR_HASH:=0a1080ade51dc4a55249c8899d4d384f665e0d21075adab24ea23a2808165e05
|
||||
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
||||
PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_wifi-scripts
|
||||
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
PKG_LICENSE_FILES:=
|
||||
@@ -44,6 +45,8 @@ define Package/netifd/install
|
||||
$(CP) ./files/* $(1)/
|
||||
$(INSTALL_DIR) $(1)/etc/udhcpc.user.d/
|
||||
$(CP) $(PKG_BUILD_DIR)/scripts/* $(1)/lib/netifd/
|
||||
$(if $(CONFIG_PACKAGE_wifi-scripts), \
|
||||
rm $(1)/lib/netifd/netifd-wireless.sh,)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,netifd))
|
||||
|
||||
Reference in New Issue
Block a user