Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=wifi-scripts
  9. PKG_VERSION:=1.0
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=GPL-2.0
  12. PKG_MAINTAINER:=Felix Fietkau <[email protected]>
  13. PKG_CONFIG_DEPENDS:=CONFIG_WIFI_SCRIPTS_UCODE
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/wifi-scripts
  16. SECTION:=utils
  17. CATEGORY:=Base system
  18. DEPENDS:=+netifd +ucode +ucode-mod-nl80211 +ucode-mod-rtnl +ucode-mod-ubus +ucode-mod-uci +ucode-mod-digest
  19. TITLE:=Wi-Fi configuration scripts
  20. PKGARCH:=all
  21. endef
  22. define Package/wifi-scripts/config
  23. source "$(SOURCE)/Config.in"
  24. endef
  25. define Package/wifi-scripts/description
  26. A set of scripts that handle setup and configuration of Wi-Fi devices.
  27. endef
  28. define Build/Prepare
  29. endef
  30. define Build/Configure
  31. endef
  32. define Build/Compile
  33. endef
  34. define Package/wifi-scripts/install
  35. $(INSTALL_DIR) $(1)
  36. $(CP) ./files/* $(1)/
  37. ifeq ($(CONFIG_WIFI_SCRIPTS_UCODE),y)
  38. $(CP) ./files-ucode/* $(1)/
  39. endif
  40. endef
  41. $(eval $(call BuildPackage,wifi-scripts))