diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2010-11-07 20:25:39 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-11-07 20:25:39 +0100 |
commit | 70fb5d46ee05a1bb74fc3361b64c7bfcd8a87297 (patch) | |
tree | d9eb560cdb3ce82e319f6f4318cf71f5f1273228 /package/wireless_tools | |
parent | 937367785a568d1b683b1e31b8ad9bdbe0cb607b (diff) | |
download | buildroot-novena-70fb5d46ee05a1bb74fc3361b64c7bfcd8a87297.tar.gz buildroot-novena-70fb5d46ee05a1bb74fc3361b64c7bfcd8a87297.zip |
wireless-tools: add option to install shared lib
Closes #2461
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/wireless_tools')
-rw-r--r-- | package/wireless_tools/Config.in | 6 | ||||
-rw-r--r-- | package/wireless_tools/wireless_tools.mk | 23 |
2 files changed, 25 insertions, 4 deletions
diff --git a/package/wireless_tools/Config.in b/package/wireless_tools/Config.in index efe28d288..c51ee9bff 100644 --- a/package/wireless_tools/Config.in +++ b/package/wireless_tools/Config.in @@ -4,3 +4,9 @@ config BR2_PACKAGE_WIRELESS_TOOLS A collection of tools to configure wireless lan cards. http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html + +config BR2_PACKAGE_WIRELESS_TOOLS_LIB + bool "Install shared library" + depends on BR2_PACKAGE_WIRELESS_TOOLS + help + The shared library of wireless tools diff --git a/package/wireless_tools/wireless_tools.mk b/package/wireless_tools/wireless_tools.mk index 0707808f2..d8358ba09 100644 --- a/package/wireless_tools/wireless_tools.mk +++ b/package/wireless_tools/wireless_tools.mk @@ -7,19 +7,34 @@ WIRELESS_TOOLS_VERSION = 29 WIRELESS_TOOLS_SITE = http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux WIRELESS_TOOLS_SOURCE = wireless_tools.$(WIRELESS_TOOLS_VERSION).tar.gz +WIRELESS_TOOLS_INSTALL_STAGING = YES + +WIRELESS_TOOLS_BUILD_TARGETS = iwmulticall +WIRELESS_TOOLS_INSTALL_TARGETS = install-iwmulticall + + +ifeq ($(BR2_PACKAGE_WIRELESS_TOOLS_LIB),y) + WIRELESS_TOOLS_BUILD_TARGETS += libiw.so.$(WIRELESS_TOOLS_VERSION) + WIRELESS_TOOLS_INSTALL_TARGETS += install-dynamic + +define WIRELESS_TOOLS_INSTALL_STAGING_CMDS + $(MAKE) -C $(@D) PREFIX="$(STAGING_DIR)" install-dynamic + $(MAKE) -C $(@D) PREFIX="$(STAGING_DIR)/usr" install-hdr +endef + +endif define WIRELESS_TOOLS_BUILD_CMDS $(MAKE) -C $(@D) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \ - iwmulticall + $(WIRELESS_TOOLS_BUILD_TARGETS) endef define WIRELESS_TOOLS_CLEAN_CMDS - $(MAKE) -C $(@D) clean - rm -f $(@D)/iwmulticall + $(MAKE) -C $(@D) realclean endef define WIRELESS_TOOLS_INSTALL_TARGET_CMDS - $(MAKE) -C $(@D) PREFIX="$(TARGET_DIR)" install-iwmulticall + $(MAKE) -C $(@D) PREFIX="$(TARGET_DIR)" $(WIRELESS_TOOLS_INSTALL_TARGETS) $(MAKE) -C $(@D) INSTALL_MAN="$(TARGET_DIR)/usr/share/man" install-man endef |