Fix building util-linux under xscale
[openwrt.git] / package / hostap-utils / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=hostap-utils
11 PKG_VERSION:=0.4.7
12 PKG_RELEASE:=1
13 PKG_MD5SUM:=afe041581b8f01666e353bec20917c85
14
15 PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_CAT:=zcat
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/hostap-utils
25 SECTION:=utils
26 CATEGORY:=Drivers
27 DEPENDS:=kmod-hostap
28 TITLE:=Host AP driver utility programs
29 DESCRIPTION:=Host AP driver utility programs
30 URL:=http://hostap.epitest.fi/
31 endef
32
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR) \
36 $(TARGET_CONFIGURE_OPTS) \
37 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -Wall" \
38 all
39 endef
40
41 define Package/hostap-utils/install
42 install -m0755 -d $(1)/usr/sbin
43 install -m0755 $(PKG_BUILD_DIR)/hostap_crypt_conf $(1)/usr/sbin/
44 install -m0755 $(PKG_BUILD_DIR)/hostap_diag $(1)/usr/sbin/
45 install -m0755 $(PKG_BUILD_DIR)/hostap_io_debug $(1)/usr/sbin/
46 install -m0755 $(PKG_BUILD_DIR)/hostap_rid $(1)/usr/sbin/
47 install -m0755 $(PKG_BUILD_DIR)/prism2_srec $(1)/usr/sbin/
48 install -m0755 $(PKG_BUILD_DIR)/split_combined_hex $(1)/usr/sbin/
49 endef
50
51 $(eval $(call BuildPackage,hostap-utils))
This page took 0.044579 seconds and 5 git commands to generate.