Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright (C) 2006 OpenWrt.org
  2. #
  3. # This is free software, licensed under the GNU General Public License v2.
  4. # See /LICENSE for more information.
  5. #
  6. # $Id$
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=hostap-utils
  9. PKG_VERSION:=0.4.7
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
  13. PKG_MD5SUM:=afe041581b8f01666e353bec20917c85
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/hostap-utils
  16. SECTION:=net
  17. CATEGORY:=Network
  18. DEPENDS:=kmod-hostap
  19. TITLE:=Host AP driver utility programs
  20. URL:=http://hostap.epitest.fi/
  21. endef
  22. define Build/Compile
  23. $(MAKE) -C $(PKG_BUILD_DIR) \
  24. $(TARGET_CONFIGURE_OPTS) \
  25. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -Wall" \
  26. all
  27. endef
  28. define Package/hostap-utils/install
  29. $(INSTALL_DIR) $(1)/usr/sbin
  30. $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostap_crypt_conf $(1)/usr/sbin/
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostap_diag $(1)/usr/sbin/
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostap_io_debug $(1)/usr/sbin/
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostap_rid $(1)/usr/sbin/
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/prism2_srec $(1)/usr/sbin/
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/split_combined_hex $(1)/usr/sbin/
  36. endef
  37. $(eval $(call BuildPackage,hostap-utils))