hostap-utils-0.4.7: use LDFLAGS (fixes QA error)
authorJeremy Lainé <jeremy.laine@m4x.org>
Wed, 8 Apr 2009 08:42:23 +0000 (08:42 +0000)
committerJeremy Lainé <jeremy.laine@m4x.org>
Wed, 8 Apr 2009 08:42:23 +0000 (08:42 +0000)
recipes/hostap/hostap-utils-0.4.7/ldflags.patch [new file with mode: 0644]
recipes/hostap/hostap-utils_0.4.7.bb

diff --git a/recipes/hostap/hostap-utils-0.4.7/ldflags.patch b/recipes/hostap/hostap-utils-0.4.7/ldflags.patch
new file mode 100644 (file)
index 0000000..d2ca298
--- /dev/null
@@ -0,0 +1,24 @@
+diff -urN hostap-utils-0.4.7.orig/Makefile hostap-utils-0.4.7/Makefile
+--- hostap-utils-0.4.7.orig/Makefile   2005-01-01 06:42:51.000000000 +0000
++++ hostap-utils-0.4.7/Makefile        2009-04-08 08:36:46.000000000 +0000
+@@ -14,17 +14,17 @@
+ hostap_crypt_conf: hostap_crypt_conf.c
+ hostap_diag: hostap_diag.o util.o
+-      $(CC) -o hostap_diag $(CFLAGS) hostap_diag.o util.o
++      $(CC) -o hostap_diag $(CFLAGS) $(LDFLAGS) hostap_diag.o util.o
+ hostap_diag.o: hostap_diag.c util.h
+ util.o: util.c util.h
+ hostap_io_debug: hostap_io_debug.c
+-      $(CC) -o hostap_io_debug $(CFLAGS) hostap_io_debug.c
++      $(CC) -o hostap_io_debug $(CFLAGS) $(LDFLAGS) hostap_io_debug.c
+ hostap_rid: hostap_rid.o util.o
+-      $(CC) -o hostap_rid $(CFLAGS) hostap_rid.o util.o
++      $(CC) -o hostap_rid $(CFLAGS) $(LDFLAGS) hostap_rid.o util.o
+ hostap_rid.o: hostap_rid.c util.h
index 9fe362b..5635947 100644 (file)
@@ -1 +1,23 @@
-require hostap-utils.inc
+DESCRIPTION = "User mode helpers for the hostap driver"
+HOMEPAGE = "http://hostap.epitest.fi"
+SECTION = "kernel/userland"
+PRIORITY = "optional"
+LICENSE = "GPL"
+PR = "r6"
+
+SRC_URI = "http://hostap.epitest.fi/releases/hostap-utils-${PV}.tar.gz \
+          file://hostap-fw-load.patch;patch=1 \
+          file://ldflags.patch;patch=1"
+
+S = "${WORKDIR}/hostap-utils-${PV}"
+
+BINARIES = "hostap_crypt_conf hostap_diag hostap_fw_load hostap_io_debug \
+           hostap_rid prism2_param prism2_srec split_combined_hex"
+
+do_install() {
+       install -d ${D}${sbindir}/
+       for f in ${BINARIES}
+       do
+               install -m 0755 $f ${D}${sbindir}/
+       done
+}