Skip to contentSkip to conversation

libnl: bump to version 3.2.9 and enhance

PATCH New Gustavo Zacarias 2 participants 7 messages May 14, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 libnl: bump to version 3.2.9 and enhance

Bump to version 3.2.9 and add an option to install the tools. Since they're not usually required we default to N to reduce size.

---
 package/libnl/Config.in |    6 ++++++
 package/libnl/libnl.mk  |   13 ++++++++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
package/libnl/Config.in +6 -0
index 24e4813..c7d4359 100644
@@ -4,3 +4,9 @@ config BR2_PACKAGE_LIBNL
 	  A library for applications dealing with netlink socket.
 
 	  http://people.suug.ch/~tgr/libnl/
+
+config BR2_PACKAGE_LIBNL_TOOLS
+	bool "install tools"
+	depends on BR2_PACKAGE_LIBNL
+	help
+	  Install binary tools.
package/libnl/libnl.mk +12 -1
index 40aaf38..a723701 100644
@@ -4,15 +4,26 @@
 #
 #############################################################
 
-LIBNL_VERSION = 3.2.8
+LIBNL_VERSION = 3.2.9
 LIBNL_SITE = http://www.infradead.org/~tgr/libnl/files
 LIBNL_INSTALL_STAGING = YES
 LIBNL_DEPENDENCIES = host-bison
 LIBNL_MAKE = $(MAKE1)
+LIBNL_BINARIES = class-add class-delete class-list classid-lookup cls-add \
+	cls-delete cls-list link-list pktloc-lookup qdisc-add qdisc-delete \
+	qdisc-list
 
 define LIBNL_UNINSTALL_TARGET_CMDS
 	rm -r $(TARGET_DIR)/usr/lib/libnl.* $(TARGET_DIR)/usr/lib/libnl-*.*
 	rm -rf $(TARGET_DIR)/usr/lib/libnl
 endef
 
+define LIBNL_REMOVE_TOOLS
+	rm -rf $(addprefix $(TARGET_DIR)/usr/sbin/nl-, $(LIBNL_BINARIES))
+endef
+
+ifneq ($(BR2_PACKAGE_LIBNL_TOOLS),y)
+LIBNL_POST_INSTALL_TARGET_HOOKS += LIBNL_REMOVE_TOOLS
+endif
+
 $(eval $(call AUTOTARGETS))
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 2/3 hostapd: bump to version 1.0

Bump to version 1.0
Also convert to gentargets.

---
 package/hostapd/Config.in                          |    6 ++-
 package/hostapd/hostapd-0.7.3-ht40-secondary.patch |   52 --------------------
 package/hostapd/hostapd-0.7.3-libnl3.patch         |   15 ------
 package/hostapd/hostapd.mk                         |   38 +++++++-------
 4 files changed, 23 insertions(+), 88 deletions(-)
 delete mode 100644 package/hostapd/hostapd-0.7.3-ht40-secondary.patch
 delete mode 100644 package/hostapd/hostapd-0.7.3-libnl3.patch
package/hostapd/Config.in +4 -2
index 376a087..4a474c3 100644
@@ -10,14 +10,16 @@ config BR2_PACKAGE_HOSTAPD
 
 	  http://hostap.epitest.fi/
 
+if BR2_PACKAGE_HOSTAPD
+
 config BR2_PACKAGE_HOSTAPD_EAP
 	bool "Enable EAP"
-	depends on BR2_PACKAGE_HOSTAPD
 	help
 	  Enable support for EAP and RADIUS.
 
 config BR2_PACKAGE_HOSTAPD_WPS
 	bool "Enable WPS"
-	depends on BR2_PACKAGE_HOSTAPD
 	help
 	  Enable support for Wi-Fi Protected Setup.
+
+endif
package/hostapd/hostapd-0.7.3-ht40-secondary.patch deleted +0 -52

52 lines not on this page · raw message

package/hostapd/hostapd-0.7.3-libnl3.patch deleted +0 -15
deleted file mode 100644
index e47da73..0000000
@@ -1,15 +0,0 @@
---- a/src/drivers/drivers.mak	2011-11-29 19:09:23.889942913 +0100
-+++ b/src/drivers/drivers.mak	2011-11-29 19:09:40.637381428 +0100
-@@ -31,10 +31,10 @@
- NEED_AP_MLME=y
- NEED_NETLINK=y
- NEED_LINUX_IOCTL=y
--DRV_LIBS += -lnl
-+DRV_LIBS += -lnl-3
- 
- ifdef CONFIG_LIBNL20
--DRV_LIBS += -lnl-genl
-+DRV_LIBS += -lnl-genl-3
- DRV_CFLAGS += -DCONFIG_LIBNL20
- endif
- endif
package/hostapd/hostapd.mk +19 -19
index 26ebf1d..d9ee4f0 100644
@@ -4,11 +4,12 @@
 #
 #############################################################
 
-HOSTAPD_VERSION = 0.7.3
+HOSTAPD_VERSION = 1.0
 HOSTAPD_SITE = http://hostap.epitest.fi/releases
 HOSTAPD_SUBDIR = hostapd
 HOSTAPD_CONFIG = $(HOSTAPD_DIR)/$(HOSTAPD_SUBDIR)/.config
 HOSTAPD_DEPENDENCIES = libnl
+HOSTAPD_CFLAGS = $(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/libnl3/
 HOSTAPD_LDFLAGS = $(TARGET_LDFLAGS)
 
 # libnl needs -lm (for rint) if linking statically
@@ -17,8 +18,7 @@ HOSTAPD_LDFLAGS += -lm
 endif
 
 define HOSTAPD_LIBNL_CONFIG
-	echo "CONFIG_LIBNL20=y" >>$(HOSTAPD_CONFIG)
-	echo "CFLAGS += -I$(STAGING_DIR)/usr/include/libnl3/" >>$(HOSTAPD_CONFIG)
+	echo "CONFIG_LIBNL32=y" >>$(HOSTAPD_CONFIG)
 endef
 
 define HOSTAPD_CRYPTO_CONFIG
@@ -27,18 +27,24 @@ define HOSTAPD_CRYPTO_CONFIG
 	echo "CONFIG_INTERNAL_LIBTOMMATH_FAST=y" >>$(HOSTAPD_CONFIG)
 endef
 
-# Try to use openssl for TLS if it's already available
-# gnutls is also supported for TLS
+# Try to use openssl or gnutls if it's already available
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 	HOSTAPD_DEPENDENCIES += openssl
 define HOSTAPD_TLS_CONFIG
 	echo "CONFIG_TLS=openssl" >>$(HOSTAPD_CONFIG)
 endef
 else
+ifeq ($(BR2_PACKAGE_GNUTLS),y)
+	HOSTAPD_DEPENDENCIES += gnutls
+define HOSTAPD_TLS_CONFIG
+	echo "CONFIG_TLS=gnutls" >>$(HOSTAPD_CONFIG)
+endef
+else
 define HOSTAPD_TLS_CONFIG
 	echo "CONFIG_TLS=internal" >>$(HOSTAPD_CONFIG)
 endef
 endif
+endif
 
 ifeq ($(BR2_PACKAGE_HOSTAPD_EAP),y)
 define HOSTAPD_EAP_CONFIG
@@ -76,14 +82,7 @@ endef
 endif
 
 define HOSTAPD_CONFIGURE_CMDS
-	cp $(@D)/$(HOSTAPD_SUBDIR)/defconfig $(HOSTAPD_CONFIG)
-	$(SED) "s/\/local//" $(@D)/$(HOSTAPD_SUBDIR)/Makefile
-	echo "CFLAGS += $(TARGET_CFLAGS)" >>$(HOSTAPD_CONFIG)
-	echo "LDFLAGS += $(HOSTAPD_LDFLAGS)" >>$(HOSTAPD_CONFIG)
-	echo "CC = $(TARGET_CC)" >>$(HOSTAPD_CONFIG)
-# Drivers
-	$(SED) "s/^#CONFIG_DRIVER_WIRED/CONFIG_DRIVER_WIRED/" $(HOSTAPD_CONFIG)
-	$(SED) "s/^#CONFIG_DRIVER_NL80211/CONFIG_DRIVER_NL80211/" $(HOSTAPD_CONFIG)
+	cp $(@D)/hostapd/defconfig $(HOSTAPD_CONFIG)
 # Misc
 	$(SED) "s/^CONFIG_IPV6/#CONFIG_IPV6/" $(HOSTAPD_CONFIG)
 	$(SED) "s/^#CONFIG_IEEE80211N/CONFIG_IEEE80211N/" $(HOSTAPD_CONFIG)
@@ -96,6 +95,12 @@ define HOSTAPD_CONFIGURE_CMDS
 	$(HOSTAPD_LIBNL_CONFIG)
 endef
 
+define HOSTAPD_BUILD_CMDS
+	$(TARGET_MAKE_ENV) CFLAGS="$(HOSTAPD_CFLAGS)" \
+		LDFLAGS="$(TARGET_LDFLAGS)" \
+		$(MAKE) CC="$(TARGET_CC)" -C $(@D)/$(HOSTAPD_SUBDIR)
+endef
+
 define HOSTAPD_INSTALL_TARGET_CMDS
 	$(INSTALL) -m 0755 -D $(@D)/$(HOSTAPD_SUBDIR)/hostapd \
 		$(TARGET_DIR)/usr/sbin/hostapd
@@ -103,9 +108,4 @@ define HOSTAPD_INSTALL_TARGET_CMDS
 		$(TARGET_DIR)/usr/bin/hostapd_cli
 endef
 
-define HOSTAPD_UNINSTALL_TARGET_CMDS
-	rm -f $(TARGET_DIR)/usr/sbin/hostapd
-	rm -f $(TARGET_DIR)/usr/bin/hostapd
-endef
-
-$(eval $(call AUTOTARGETS))
+$(eval $(call GENTARGETS))
Signature · 1 line
1.7.3.4
#2 lore raw

PATCH 2/3 hostapd: bump to version 1.0

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Gustavo> Bump to version 1.0
Gustavo> Also convert to gentargets.

Committed to next, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH 3/3 wpa_supplicant: bump to version 1.0

In reply to Gustavo Zacarias

Bump to version 1.0
Also convert to gentargets.

---
 package/wpa_supplicant/Config.in                   |    9 +-
 .../wpa_supplicant-0.7.3-dbus-emit-property.patch  |   61 -------------
 .../wpa_supplicant-0.7.3-ht40-secondary.patch      |   52 ------------
 .../wpa_supplicant-0.7.3-libnl-3.patch             |   15 ----
 ...pa_supplicant-0.7.3-nl80211-cipher-suites.patch |   89 --------------------
 package/wpa_supplicant/wpa_supplicant.mk           |   73 +++++++++-------
 6 files changed, 44 insertions(+), 255 deletions(-)
 delete mode 100644 package/wpa_supplicant/wpa_supplicant-0.7.3-dbus-emit-property.patch
 delete mode 100644 package/wpa_supplicant/wpa_supplicant-0.7.3-ht40-secondary.patch
 delete mode 100644 package/wpa_supplicant/wpa_supplicant-0.7.3-libnl-3.patch
 delete mode 100644 package/wpa_supplicant/wpa_supplicant-0.7.3-nl80211-cipher-suites.patch
 mode change 100755 => 100644 package/wpa_supplicant/wpa_supplicant.conf
package/wpa_supplicant/Config.in +4 -5
index 8ac2576..d7cefe3 100644
@@ -5,27 +5,25 @@ config BR2_PACKAGE_WPA_SUPPLICANT
 
 	  http://hostap.epitest.fi/wpa_supplicant/
 
+if BR2_PACKAGE_WPA_SUPPLICANT
+
 config BR2_PACKAGE_WPA_SUPPLICANT_EAP
 	bool "Enable EAP"
-	depends on BR2_PACKAGE_WPA_SUPPLICANT
 	help
 	  Enable support for EAP.
 
 config BR2_PACKAGE_WPA_SUPPLICANT_CLI
 	bool "Install wpa_cli binary"
-	depends on BR2_PACKAGE_WPA_SUPPLICANT
 	help
 	  Install wpa_cli command line utility
 
 config BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE
 	bool "Install wpa_passphrase binary"
-	depends on BR2_PACKAGE_WPA_SUPPLICANT
 	help
 	  Install wpa_passphrase command line utility
 
 config BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT
 	bool "Enable support for soft AP"
-	depends on BR2_PACKAGE_WPA_SUPPLICANT
 	help
 	  With this option enabled, wpa_supplicant can act as
 	  access point. This can be used for open and WPA2-Personal networks
@@ -34,6 +32,7 @@ config BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT
 
 config BR2_PACKAGE_WPA_SUPPLICANT_WPS
 	bool "Enable support for WPS"
-	depends on BR2_PACKAGE_WPA_SUPPLICANT
 	help
 	  Enable support for Wi-Fi Protected Setup (WPS)
+
+endif
package/wpa_supplicant/wpa_supplicant-0.7.3-dbus-emit-property.patch deleted +0 -61

61 lines not on this page · raw message

package/wpa_supplicant/wpa_supplicant-0.7.3-ht40-secondary.patch deleted +0 -52

52 lines not on this page · raw message

package/wpa_supplicant/wpa_supplicant-0.7.3-libnl-3.patch deleted +0 -15
deleted file mode 100644
index a460c2a..0000000
@@ -1,15 +0,0 @@
---- a/src/drivers/drivers.mak	2011-11-29 19:19:56.684221050 +0100
-+++ b/src/drivers/drivers.mak	2011-11-29 19:20:12.199609246 +0100
-@@ -31,10 +31,10 @@
- NEED_AP_MLME=y
- NEED_NETLINK=y
- NEED_LINUX_IOCTL=y
--DRV_LIBS += -lnl
-+DRV_LIBS += -lnl-3
- 
- ifdef CONFIG_LIBNL20
--DRV_LIBS += -lnl-genl
-+DRV_LIBS += -lnl-genl-3
- DRV_CFLAGS += -DCONFIG_LIBNL20
- endif
- endif
package/wpa_supplicant/wpa_supplicant-0.7.3-nl80211-cipher-suites.patch deleted +0 -89

89 lines not on this page · raw message

package/wpa_supplicant/wpa_supplicant.conf +0 -0
old mode 100755
new mode 100644
package/wpa_supplicant/wpa_supplicant.mk +40 -33

130 lines not on this page · raw message

Signature · 1 line
1.7.3.4
#4 lore raw

PATCH 3/3 wpa_supplicant: bump to version 1.0

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Gustavo> Bump to version 1.0
Gustavo> Also convert to gentargets.

..

Gustavo> +define WPA_SUPPLICANT_INSTALL_TARGET_CMDS
Gustavo> + $(WPA_SUPPLICANT_INSTALL_CLI)
Gustavo> + $(WPA_SUPPLICANT_INSTALL_PASSPHRASE)
Gustavo> +endef
Gustavo> +
Gustavo> +ifeq ($(BR2_PACKAGE_DBUS),y)

 Gustavo>  define WPA_SUPPLICANT_INSTALL_DBUS
 Gustavo>  	$(INSTALL) -D \
 Gustavo>  	  $(@D)/wpa_supplicant/dbus/dbus-wpa_supplicant.conf \

Gustavo> @@ -113,23 +127,16 @@ define WPA_SUPPLICANT_INSTALL_DBUS
Gustavo> $(@D)/wpa_supplicant/dbus/$(WPA_SUPPLICANT_DBUS_SERVICE).service \

..

Gustavo> -define WPA_SUPPLICANT_UNINSTALL_TARGET_CMDS
Gustavo> - rm -f $(addprefix $(TARGET_DIR)/usr/sbin/, $(WPA_SUPPLICANT_TARGET_BINS))
Gustavo> - rm -f $(TARGET_DIR)/etc/dbus-1/system.d/wpa_supplicant.conf
Gustavo> - rm -f $(TARGET_DIR)/usr/share/dbus-1/system-services/$(WPA_SUPPLICANT_DBUS_SERVICE).service
Gustavo> - rm -f $(TARGET_DIR)/usr/etc/wpa_supplicant.conf
Gustavo> +define WPA_SUPPLICANT_INSTALL_TARGET_CMDS
Gustavo> + $(INSTALL) -m 0755 -D $(@D)/$(WPA_SUPPLICANT_SUBDIR)/wpa_supplicant \
Gustavo> + $(TARGET_DIR)/usr/sbin/wpa_supplicant

You seem to have WPA_SUPPLICANT_INSTALL_TARGET_CMDS twice?

Signature · 1 line
Bye, Peter Korsgaard
#5 lore raw

PATCH 3/3 wpa_supplicant: bump to version 1.0

Quoted 1 line · Peter Korsgaard

You seem to have WPA_SUPPLICANT_INSTALL_TARGET_CMDS twice?

Leftovers! Sorry, sent v2 fixed.
Regards.

#6 lore raw

PATCH 1/3 libnl: bump to version 3.2.9 and enhance

In reply to Gustavo Zacarias
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Gustavo> Bump to version 3.2.9 and add an option to install the tools. Gustavo> Since they're not usually required we default to N to reduce size.

Committed to next, thanks.

Signature · 1 line
Bye, Peter Korsgaard