52edd1b56764da532c7757df9496889a7d2837f6
[openwrt/openwrt.git] / package / network / config / wifi-scripts / Makefile
1 #
2 # Copyright (C) 2024 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=wifi-scripts
11 PKG_VERSION:=1.0
12 PKG_RELEASE:=1
13 PKG_LICENSE:=GPL-2.0
14
15 PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
16 PKG_CONFIG_DEPENDS:=CONFIG_WIFI_SCRIPTS_UCODE
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/wifi-scripts
21 SECTION:=utils
22 CATEGORY:=Base system
23 DEPENDS:=+netifd +ucode +ucode-mod-nl80211 +ucode-mod-rtnl +ucode-mod-ubus +ucode-mod-uci +ucode-mod-digest
24 TITLE:=Wi-Fi configuration scripts
25 PKGARCH:=all
26 endef
27
28 define Package/wifi-scripts/config
29 source "$(SOURCE)/Config.in"
30 endef
31
32 define Package/wifi-scripts/description
33 A set of scripts that handle setup and configuration of Wi-Fi devices.
34 endef
35
36 define Build/Prepare
37 endef
38
39 define Build/Configure
40 endef
41
42 define Build/Compile
43 endef
44
45 define Package/wifi-scripts/install
46 $(INSTALL_DIR) $(1)
47 $(CP) ./files/* $(1)/
48 ifeq ($(CONFIG_WIFI_SCRIPTS_UCODE),y)
49 $(CP) ./files-ucode/* $(1)/
50 endif
51 endef
52
53 $(eval $(call BuildPackage,wifi-scripts))