Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=hostap-utils
  8. PKG_VERSION:=0.4.7
  9. PKG_RELEASE:=1
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
  12. PKG_MD5SUM:=afe041581b8f01666e353bec20917c85
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/hostap-utils
  15. SECTION:=net
  16. CATEGORY:=Network
  17. DEPENDS:=kmod-hostap
  18. TITLE:=Host AP driver utility programs
  19. URL:=http://hostap.epitest.fi/
  20. endef
  21. define Build/Compile
  22. $(MAKE) -C $(PKG_BUILD_DIR) \
  23. $(TARGET_CONFIGURE_OPTS) \
  24. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -Wall" \
  25. all
  26. endef
  27. define Package/hostap-utils/install
  28. $(INSTALL_DIR) $(1)/usr/sbin
  29. $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostap_crypt_conf $(1)/usr/sbin/
  30. $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostap_diag $(1)/usr/sbin/
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostap_io_debug $(1)/usr/sbin/
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostap_rid $(1)/usr/sbin/
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/prism2_srec $(1)/usr/sbin/
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/split_combined_hex $(1)/usr/sbin/
  35. endef
  36. $(eval $(call BuildPackage,hostap-utils))