wifi-test-suite: Initial recipe for wifi test suite.
PATCH v3 1/1 wifi-test-suite: Initial recipe for wifi test suite.
Add generic recipe for wifi test suite from wifi alliance.
Suite is to support certification program development and device certification.
--- ...-Use-toolchain-from-environment-variables.patch | 92 ++++++++++++++++++++++ ...-include-removes-unnedded-stuff-and-add-n.patch | 45 +++++++++++ .../0003-fix-path-to-usr-sbin-for-script.patch | 35 ++++++++ .../wifi-test-suite/wifi-test-suite_git.bb | 35 ++++++++ 4 files changed, 207 insertions(+) create mode 100644 meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch create mode 100644 meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch create mode 100644 meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch create mode 100644 meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch new file +92 -0
@@ -0,0 +1,92 @@ +From 6b822b36739222d0c864249992b5d28e3ff4d948 Mon Sep 17 00:00:00 2001 +From: Adrian Friedli <[email protected]> +Date: Mon, 3 Sep 2018 17:58:27 +0200 +Subject: [PATCH] Use toolchain from environment variables + +Upstream-Status: Submitted [https://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT/pull/42] +Signed-off-by: Adrian Friedli <[email protected]> +Signed-off-by: Ankit Navik <[email protected]> +--- + Makefile.inc | 7 ++++--- + WTGService/Makefile | 2 +- + console_src/Makefile | 2 +- + lib/Makefile | 6 +++--- + 4 files changed, 9 insertions(+), 8 deletions(-) + +diff --git a/Makefile.inc b/Makefile.inc +index b0edf5a..0094bdf 100644 +--- a/Makefile.inc ++++ b/Makefile.inc +@@ -13,14 +13,15 @@ + # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE + # USE OR PERFORMANCE OF THIS SOFTWARE. + # +-CC = gcc ++CC ?= gcc ++AR ?= ar + LIB=lib + DUT=dut + CA=ca + UCC=ucc + CON=console_src + WTG=WTGService +-MAKE=make ++MAKE?=make + + # This is for WMM-PS + #for Ext TG +@@ -46,7 +47,7 @@ CFLAGS = -g -O2 -D_REENTRANT -Wall -I../inc + + DUTLIBS = ../lib/libwfa_dut.a -lpthread + CALIBS = ../lib/libwfa_ca.a -lpthread +-RANLIB = ranlib ++RANLIB ?= ranlib + + LIBWFA_NAME_DUT = libwfa_dut.a + LIBWFA_NAME_CA = libwfa_ca.a +diff --git a/WTGService/Makefile b/WTGService/Makefile +index 5312eb6..4855771 100644 +--- a/WTGService/Makefile ++++ b/WTGService/Makefile +@@ -13,7 +13,7 @@ + # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE + # USE OR PERFORMANCE OF THIS SOFTWARE. + # +-CC=gcc ++CC?=gcc + CFLAGS= -Wall + LIB=-lpthread + +diff --git a/console_src/Makefile b/console_src/Makefile +index 8282283..d1098eb 100644 +--- a/console_src/Makefile ++++ b/console_src/Makefile +@@ -14,7 +14,7 @@ + # USE OR PERFORMANCE OF THIS SOFTWARE. + # + +-CC = gcc ++CC ?= gcc + CFLAGS = -g -DWFA_DEBUG -pthread + + TARGETS = wfa_con +diff --git a/lib/Makefile b/lib/Makefile +index ffcef94..299b8d6 100644 +--- a/lib/Makefile ++++ b/lib/Makefile +@@ -17,9 +17,9 @@ + include ../Makefile.inc + + all: ${LIB_OBJS} +- ar crv ${LIBWFA_NAME} $? +- ar crv ${LIBWFA_NAME_DUT} ${LIB_OBJS_DUT} +- ar crv ${LIBWFA_NAME_CA} ${LIB_OBJS_CA} ++ $(AR) crv ${LIBWFA_NAME} $? ++ $(AR) crv ${LIBWFA_NAME_DUT} ${LIB_OBJS_DUT} ++ $(AR) crv ${LIBWFA_NAME_CA} ${LIB_OBJS_CA} + ${RANLIB} ${LIBWFA_NAME} ${LIBWFA_NAME_DUT} ${LIBWFA_NAME_CA} + + wfa_tg.o: wfa_tg.c ../inc/wfa_agt.h ../inc/wfa_types.h ../inc/wfa_rsp.h ../inc/wfa_tlv.h ../inc/wfa_tg.h +-- +2.7.4 +
meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch new file +45 -0
45 lines not on this page · raw message
meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch new file +35 -0
@@ -0,0 +1,35 @@ +From ee5ffceb8c29cb66f323158123c9103d47965184 Mon Sep 17 00:00:00 2001 +From: Ankit Navik <[email protected]> +Date: Tue, 25 Dec 2018 01:12:32 +0530 +Subject: [PATCH 3/3] fix path to /usr/sbin for script + +Signed-off-by: Ankit Navik <[email protected]> +--- + lib/wfa_cs.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/lib/wfa_cs.c b/lib/wfa_cs.c +index 6b1f5a2..2a18533 100644 +--- a/lib/wfa_cs.c ++++ b/lib/wfa_cs.c +@@ -319,7 +319,7 @@ int wfaStaGetIpConfig(int len, BYTE *caCmdBuf, int *respLen, BYTE *respBuf) + /* + * check a script file (the current implementation specific) + */ +- ret = access("/usr/local/sbin/getipconfig.sh", F_OK); ++ ret = access("/usr/sbin/getipconfig.sh", F_OK); + if(ret == -1) + { + ipconfigResp->status = STATUS_ERROR; +@@ -2115,7 +2115,7 @@ int wfaStaPresetParams(int len, BYTE *caCmdBuf, int *respLen, BYTE *respBuf) + st = remove("/tmp/processid.txt"); + } + +- sprintf(cmdStr, "/usr/local/sbin/findprocess.sh %s /tmp/processid.txt\n", "wpa_supplicant"); ++ sprintf(cmdStr, "/usr/sbin/findprocess.sh %s /tmp/processid.txt\n", "wpa_supplicant"); + st = system(cmdStr); + + tmpfd = fopen("/tmp/processid.txt", "r+"); +-- +2.7.4 +
meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb new file +35 -0
@@ -0,0 +1,35 @@ +SUMMARY = "Wi-Fi Test Suite Linux Control Agent" +DESCRIPTION = "Wi-Fi Test Suite is a software platform originally developed \ +by Wi-Fi Alliance, the global non-profit industry association that brings you \ +Wi-Fi, to support certification program development and device certification." +HOMEPAGE = "https://www.wi-fi.org/certification/wi-fi-test-suite" +LICENSE = "ISC" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=0542427ed5c315ca34aa09ae7a85ed32" +SECTION = "test" + +S = "${WORKDIR}/git" +SRCREV = "f7a8d7ef7d1a831c1bb47de21fa083536ea2f3a9" +SRC_URI = "git://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT.git \ + file://0001-Use-toolchain-from-environment-variables.patch \ + file://0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch \ + file://0003-fix-path-to-usr-sbin-for-script.patch \ +" + +# Fix for non glib based rpc and to avoid host path QA error +CFLAGS += "-I${STAGING_INCDIR}/tirpc" + +do_install () { + install -d ${D}${libdir} + install -m 0644 ${S}/lib/libwfa.a ${D}${libdir} + install -m 0644 ${S}/lib/libwfa_ca.a ${D}${libdir} + install -m 0644 ${S}/lib/libwfa_dut.a ${D}${libdir} + install -d ${D}${sbindir} + install -m 0755 ${S}/dut/wfa_dut ${D}${sbindir} + install -m 0755 ${S}/ca/wfa_ca ${D}${sbindir} + install -m 0644 ${S}/scripts/*.sh ${D}${sbindir} + install -m 0644 ${S}/scripts/arp_neigh_loop ${D}${sbindir} + install -m 0644 ${S}/scripts/dev_send_frame ${D}${sbindir} + install -m 0644 ${S}/scripts/sta_reset_parm ${D}${sbindir} +} + +INSANE_SKIP_${PN} = "ldflags"
Signature · 1 line
2.7.4
Hi Ankit
I provided some additional comments inline
Quoted 120 lines · Ankit Navik
Add generic recipe for wifi test suite from wifi alliance.
Suite is to support certification program development and device certification.Signed-off-by Ankit Navik <[email protected]>--- ...-Use-toolchain-from-environment-variables.patch | 92 ++++++++++++++++++++++ ...-include-removes-unnedded-stuff-and-add-n.patch | 45 +++++++++++ .../0003-fix-path-to-usr-sbin-for-script.patch | 35 ++++++++ .../wifi-test-suite/wifi-test-suite_git.bb | 35 ++++++++ 4 files changed, 207 insertions(+) create mode 100644 meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch create mode 100644 meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch create mode 100644 meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch create mode 100644 meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bbmeta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch new file +92
-0@@ -0,0 +1,92 @@ +From 6b822b36739222d0c864249992b5d28e3ff4d948 Mon Sep 17 00:00:00 2001 +From: Adrian Friedli <[email protected]> +Date: Mon, 3 Sep 2018 17:58:27 +0200 +Subject: [PATCH] Use toolchain from environment variables + +Upstream-Status: Submitted [https://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT/pull/42] +Signed-off-by: Adrian Friedli <[email protected]> +Signed-off-by: Ankit Navik <[email protected]> +--- + Makefile.inc | 7 ++++--- + WTGService/Makefile | 2 +- + console_src/Makefile | 2 +- + lib/Makefile | 6 +++--- + 4 files changed, 9 insertions(+), 8 deletions(-) + +diff --git a/Makefile.inc b/Makefile.inc +index b0edf5a..0094bdf 100644 +--- a/Makefile.inc ++++ b/Makefile.inc +@@ -13,14 +13,15 @@ + # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE + # USE OR PERFORMANCE OF THIS SOFTWARE. + # +-CC = gcc ++CC ?= gcc ++AR ?= ar + LIB=lib + DUT=dut + CA=ca + UCC=ucc + CON=console_src + WTG=WTGService +-MAKE=make ++MAKE?=make + + # This is for WMM-PS + #for Ext TG +@@ -46,7 +47,7 @@ CFLAGS = -g -O2 -D_REENTRANT -Wall -I../inc + + DUTLIBS = ../lib/libwfa_dut.a -lpthread + CALIBS = ../lib/libwfa_ca.a -lpthread +-RANLIB = ranlib ++RANLIB ?= ranlib + + LIBWFA_NAME_DUT = libwfa_dut.a + LIBWFA_NAME_CA = libwfa_ca.a +diff --git a/WTGService/Makefile b/WTGService/Makefile +index 5312eb6..4855771 100644 +--- a/WTGService/Makefile ++++ b/WTGService/Makefile +@@ -13,7 +13,7 @@ + # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE + # USE OR PERFORMANCE OF THIS SOFTWARE. + # +-CC=gcc ++CC?=gcc + CFLAGS= -Wall + LIB=-lpthread + +diff --git a/console_src/Makefile b/console_src/Makefile +index 8282283..d1098eb 100644 +--- a/console_src/Makefile ++++ b/console_src/Makefile +@@ -14,7 +14,7 @@ + # USE OR PERFORMANCE OF THIS SOFTWARE. + # + +-CC = gcc ++CC ?= gcc + CFLAGS = -g -DWFA_DEBUG -pthread + + TARGETS = wfa_con +diff --git a/lib/Makefile b/lib/Makefile +index ffcef94..299b8d6 100644 +--- a/lib/Makefile ++++ b/lib/Makefile +@@ -17,9 +17,9 @@ + include ../Makefile.inc + + all: ${LIB_OBJS} +- ar crv ${LIBWFA_NAME} $? +- ar crv ${LIBWFA_NAME_DUT} ${LIB_OBJS_DUT} +- ar crv ${LIBWFA_NAME_CA} ${LIB_OBJS_CA} ++ $(AR) crv ${LIBWFA_NAME} $? ++ $(AR) crv ${LIBWFA_NAME_DUT} ${LIB_OBJS_DUT} ++ $(AR) crv ${LIBWFA_NAME_CA} ${LIB_OBJS_CA} + ${RANLIB} ${LIBWFA_NAME} ${LIBWFA_NAME_DUT} ${LIBWFA_NAME_CA} + + wfa_tg.o: wfa_tg.c ../inc/wfa_agt.h ../inc/wfa_types.h ../inc/wfa_rsp.h ../inc/wfa_tlv.h ../inc/wfa_tg.h +-- +2.7.4 +meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch new file +0
-0
meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch line 5
Quoted 5 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch new file +5
-0@@ -0,0 +1,45 @@ +From 451b162c903a1ef070a75dc18171620f3beef7b3 Mon Sep 17 00:00:00 2001 +From: Ankit Navik <[email protected]> +Date: Tue, 25 Dec 2018 00:36:59 +0530 +Subject: [PATCH 2/3] Add missing include, removes unnedded stuff and add non + glib rpc
typo here, I guess you mean glibc.
Quoted 87 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch new file +40
-0+ +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Reto Schneider <[email protected]> +Signed-off-by: Ankit Navik <[email protected]> +--- + Makefile | 2 +- + inc/wfa_tg.h | 3 +++ + 2 files changed, 4 insertions(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 2c41a17..5c4ad8c 100644 +--- a/Makefile ++++ b/Makefile +@@ -15,7 +15,7 @@ + # + include Makefile.inc + +-DIRS= ${LIB} ${DUT} ${CA} ${TC} ${WTG} ${CON} ++DIRS= ${LIB} ${DUT} ${CA} ${TC} + + all: + for i in ${DIRS}; do \ +diff --git a/inc/wfa_tg.h b/inc/wfa_tg.h +index 799bf9f..a1804dd 100644 +--- a/inc/wfa_tg.h ++++ b/inc/wfa_tg.h +@@ -24,6 +24,9 @@ + #ifndef _WFA_TG_H + #define _WFA_TG_H + ++#ifndef _WINDOWS ++#include <pthread.h> ++#endif + #include <sys/time.h> + + /* maximum number of streams to support */ +-- +2.7.4 +meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch new file +35
-0@@ -0,0 +1,35 @@ +From ee5ffceb8c29cb66f323158123c9103d47965184 Mon Sep 17 00:00:00 2001 +From: Ankit Navik <[email protected]> +Date: Tue, 25 Dec 2018 01:12:32 +0530 +Subject: [PATCH 3/3] fix path to /usr/sbin for script + +Signed-off-by: Ankit Navik <[email protected]> +--- + lib/wfa_cs.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/lib/wfa_cs.c b/lib/wfa_cs.c +index 6b1f5a2..2a18533 100644 +--- a/lib/wfa_cs.c ++++ b/lib/wfa_cs.c +@@ -319,7 +319,7 @@ int wfaStaGetIpConfig(int len, BYTE *caCmdBuf, int *respLen, BYTE *respBuf) + /* + * check a script file (the current implementation specific) + */ +- ret = access("/usr/local/sbin/getipconfig.sh", F_OK); ++ ret = access("/usr/sbin/getipconfig.sh", F_OK); + if(ret == -1) + { + ipconfigResp->status = STATUS_ERROR; +@@ -2115,7 +2115,7 @@ int wfaStaPresetParams(int len, BYTE *caCmdBuf, int *respLen, BYTE *respBuf) + st = remove("/tmp/processid.txt"); + } + +- sprintf(cmdStr, "/usr/local/sbin/findprocess.sh %s /tmp/processid.txt\n", "wpa_supplicant"); ++ sprintf(cmdStr, "/usr/sbin/findprocess.sh %s /tmp/processid.txt\n", "wpa_supplicant"); + st = system(cmdStr); + + tmpfd = fopen("/tmp/processid.txt", "r+"); +-- +2.7.4 +meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb new file +0
-0
meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb line 8
Quoted 8 lines
meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb new file +8
-0@@ -0,0 +1,35 @@ +SUMMARY = "Wi-Fi Test Suite Linux Control Agent" +DESCRIPTION = "Wi-Fi Test Suite is a software platform originally developed \ +by Wi-Fi Alliance, the global non-profit industry association that brings you \ +Wi-Fi, to support certification program development and device certification." +HOMEPAGE = "https://www.wi-fi.org/certification/wi-fi-test-suite" +LICENSE = "ISC" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=0542427ed5c315ca34aa09ae7a85ed32" +SECTION = "test"
I see above that some scripts are calling wpa_supplicant, but its not in RDEPENDS
probably that needs to be added here via RDEPENDS_${PN}
meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb line 18
Quoted 10 lines
meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb new file +10
-0+ +S = "${WORKDIR}/git" +SRCREV = "f7a8d7ef7d1a831c1bb47de21fa083536ea2f3a9" +SRC_URI = "git://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT.git \ + file://0001-Use-toolchain-from-environment-variables.patch \ + file://0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch \ + file://0003-fix-path-to-usr-sbin-for-script.patch \ +" + +# Fix for non glib based rpc and to avoid host path QA error
latest glibc uses tirpc too. so this comment should not call out glibc host path QA could still be valid.
meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb line 29
Quoted 11 lines
meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb new file +11
-0+CFLAGS += "-I${STAGING_INCDIR}/tirpc" + +do_install () { + install -d ${D}${libdir} + install -m 0644 ${S}/lib/libwfa.a ${D}${libdir} + install -m 0644 ${S}/lib/libwfa_ca.a ${D}${libdir} + install -m 0644 ${S}/lib/libwfa_dut.a ${D}${libdir} + install -d ${D}${sbindir} + install -m 0755 ${S}/dut/wfa_dut ${D}${sbindir} + install -m 0755 ${S}/ca/wfa_ca ${D}${sbindir} + install -m 0644 ${S}/scripts/*.sh ${D}${sbindir}
scripts should be 0755
meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb line 32
Quoted 3 lines
meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb new file +3
-0+ install -m 0644 ${S}/scripts/arp_neigh_loop ${D}${sbindir} + install -m 0644 ${S}/scripts/dev_send_frame ${D}${sbindir} + install -m 0644 ${S}/scripts/sta_reset_parm ${D}${sbindir}
are these config files or scripts which are executed, in case of scripts then 0755 is right mode
meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb line 35
Quoted 3 lines
meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb new file +3
-0+} + +INSANE_SKIP_${PN} = "ldflags"
why do we need this ?
Quoted 8 lines
--
2.7.4--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Hi Raj,
Quoted 305 lines · Khem Raj
Hi Ankit
I provided some additional comments inline
Quoted 3 lines · Ankit Navik
Add generic recipe for wifi test suite from wifi alliance. Suite is to support certification program development and device
certification.
Quoted 4 lines
Signed-off-by Ankit Navik <[email protected]>--- ...-Use-toolchain-from-environment-variables.patch | 92++++++++++++++++++++++
Quoted 5 lines
...-include-removes-unnedded-stuff-and-add-n.patch | 45 +++++++++++ .../0003-fix-path-to-usr-sbin-for-script.patch | 35 ++++++++ .../wifi-test-suite/wifi-test-suite_git.bb | 35 ++++++++ 4 files changed, 207 insertions(+) create mode 100644
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patchQuoted 1 line
create mode 100644
meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patchQuoted 1 line
create mode 100644
meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patchQuoted 1 line
create mode 100644 meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb
Quoted 2 lines
diff --git
a/meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patchb/meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patchQuoted 4 lines
new file mode 100644
index 0000000..9ee4a51
---/dev/null
+++
b/meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patchmeta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch line 6
Quoted 7 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch new file +6
-0@@ -0,0 +1,92 @@ +From 6b822b36739222d0c864249992b5d28e3ff4d948 Mon Sep 17 00:00:00 2001 +From: Adrian Friedli <[email protected]> +Date: Mon, 3 Sep 2018 17:58:27 +0200 +Subject: [PATCH] Use toolchain from environment variables + +Upstream-Status: Submitted [https://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT/pull/42]
Quoted 5 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch new file +5
-0+Signed-off-by: Adrian Friedli <[email protected]> +Signed-off-by: Ankit Navik <[email protected]> +--- + Makefile.inc | 7 ++++--- + WTGService/Makefile | 2 +-meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch
Quoted 10 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch new file +10
-0+ console_src/Makefile | 2 +- + lib/Makefile | 6 +++--- + 4 files changed, 9 insertions(+), 8 deletions(-) + +diff --git a/Makefile.inc b/Makefile.inc +index b0edf5a..0094bdf 100644 +--- a/Makefile.inc ++++ b/Makefile.inc +@@ -13,14 +13,15 @@ + # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTIONWITH THE
Quoted 21 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch new file +21
-0+ # USE OR PERFORMANCE OF THIS SOFTWARE. + # +-CC = gcc ++CC ?= gcc ++AR ?= ar + LIB=lib + DUT=dut + CA=ca + UCC=ucc + CON=console_src + WTG=WTGService +-MAKE=make ++MAKE?=make + + # This is for WMM-PS + #for Ext TG +@@ -46,7 +47,7 @@ CFLAGS = -g -O2 -D_REENTRANT -Wall -I../inc + + DUTLIBS = ../lib/libwfa_dut.a -lpthread + CALIBS = ../lib/libwfa_ca.a -lpthread +-RANLIB = ranlibmeta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch
Quoted 10 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch new file +10
-0++RANLIB ?= ranlib + + LIBWFA_NAME_DUT = libwfa_dut.a + LIBWFA_NAME_CA = libwfa_ca.a +diff --git a/WTGService/Makefile b/WTGService/Makefile +index 5312eb6..4855771 100644 +--- a/WTGService/Makefile ++++ b/WTGService/Makefile +@@ -13,7 +13,7 @@ + # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTIONWITH THE
Quoted 25 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch new file +25
-0+ # USE OR PERFORMANCE OF THIS SOFTWARE. + # +-CC=gcc ++CC?=gcc + CFLAGS= -Wall + LIB=-lpthread + +diff --git a/console_src/Makefile b/console_src/Makefile +index 8282283..d1098eb 100644 +--- a/console_src/Makefile ++++ b/console_src/Makefile +@@ -14,7 +14,7 @@ + # USE OR PERFORMANCE OF THIS SOFTWARE. + # + +-CC = gcc ++CC ?= gcc + CFLAGS = -g -DWFA_DEBUG -pthread + + TARGETS = wfa_con +diff --git a/lib/Makefile b/lib/Makefile +index ffcef94..299b8d6 100644 +--- a/lib/Makefile ++++ b/lib/Makefile +@@ -17,9 +17,9 @@meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch
Quoted 10 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch new file +10
-0+ include ../Makefile.inc + + all: ${LIB_OBJS} +- ar crv ${LIBWFA_NAME} $? +- ar crv ${LIBWFA_NAME_DUT} ${LIB_OBJS_DUT} +- ar crv ${LIBWFA_NAME_CA} ${LIB_OBJS_CA} ++ $(AR) crv ${LIBWFA_NAME} $? ++ $(AR) crv ${LIBWFA_NAME_DUT} ${LIB_OBJS_DUT} ++ $(AR) crv ${LIBWFA_NAME_CA} ${LIB_OBJS_CA} + ${RANLIB} ${LIBWFA_NAME} ${LIBWFA_NAME_DUT}${LIBWFA_NAME_CA}
Review line 89
Quoted 2 lines
(quoted diff) +2
-0+ + wfa_tg.o: wfa_tg.c ../inc/wfa_agt.h ../inc/wfa_types.h
../inc/wfa_rsp.h../inc/wfa_tlv.h../inc/wfa_tg.hQuoted 4 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch new file +3
-0+-- +2.7.4 +diff --git
a/meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patchb/meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patchQuoted 4 lines
new file mode 100644
index 0000000..43be917
---/dev/null
+++
b/meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patchmeta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch line 4
Quoted 5 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch new file +4
-0@@ -0,0 +1,45 @@ +From 451b162c903a1ef070a75dc18171620f3beef7b3 Mon Sep 17 00:00:00 2001 +From: Ankit Navik <[email protected]> +Date: Tue, 25 Dec 2018 00:36:59 +0530 +Subject: [PATCH 2/3] Add missing include, removes unnedded stuff andadd non
meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch line 5
Quoted 1 line
meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch new file +1
-0+ glib rpctypo here, I guess you mean glibc.
Quoted 40 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch new file +40
-0+ +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Reto Schneider <[email protected]> +Signed-off-by: Ankit Navik <[email protected]> +--- + Makefile | 2 +- + inc/wfa_tg.h | 3 +++ + 2 files changed, 4 insertions(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 2c41a17..5c4ad8c 100644 +--- a/Makefile ++++ b/Makefile +@@ -15,7 +15,7 @@ + # + include Makefile.inc + +-DIRS= ${LIB} ${DUT} ${CA} ${TC} ${WTG} ${CON} ++DIRS= ${LIB} ${DUT} ${CA} ${TC} + + all: + for i in ${DIRS}; do \ +diff --git a/inc/wfa_tg.h b/inc/wfa_tg.h +index 799bf9f..a1804dd 100644 +--- a/inc/wfa_tg.h ++++ b/inc/wfa_tg.h +@@ -24,6 +24,9 @@ + #ifndef _WFA_TG_H + #define _WFA_TG_H + ++#ifndef _WINDOWS ++#include <pthread.h> ++#endif + #include <sys/time.h> + + /* maximum number of streams to support */ +-- +2.7.4 +Quoted 1 line
diff --git
a/meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patchb/meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patchQuoted 4 lines
new file mode 100644
index 0000000..23dae6a
---/dev/null
+++
b/meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patchQuoted 6 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch new file +5
-0@@ -0,0 +1,35 @@ +From ee5ffceb8c29cb66f323158123c9103d47965184 Mon Sep 17 00:00:00 2001 +From: Ankit Navik <[email protected]> +Date: Tue, 25 Dec 2018 01:12:32 +0530 +Subject: [PATCH 3/3] fix path to /usr/sbin for script +meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch line 15
Quoted 10 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch new file +10
-0+Signed-off-by: Ankit Navik <[email protected]> +--- + lib/wfa_cs.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/lib/wfa_cs.c b/lib/wfa_cs.c +index 6b1f5a2..2a18533 100644 +--- a/lib/wfa_cs.c ++++ b/lib/wfa_cs.c +@@ -319,7 +319,7 @@ int wfaStaGetIpConfig(int len, BYTE *caCmdBuf, int*respLen, BYTE *respBuf)
meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch
Quoted 9 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch new file +9
-0+ /* + * check a script file (the current implementation specific) + */ +- ret = access("/usr/local/sbin/getipconfig.sh", F_OK); ++ ret = access("/usr/sbin/getipconfig.sh", F_OK); + if(ret == -1) + { + ipconfigResp->status = STATUS_ERROR; +@@ -2115,7 +2115,7 @@ int wfaStaPresetParams(int len, BYTE *caCmdBuf,int *respLen, BYTE *respBuf)
meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch
Quoted 4 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch new file +4
-0+ st = remove("/tmp/processid.txt"); + } + +- sprintf(cmdStr, "/usr/local/sbin/findprocess.sh %s/tmp/processid.txt\n", "
wpa_supplicant");Review line 29
Quoted 1 line
(quoted diff) +1
-0++ sprintf(cmdStr, "/usr/sbin/findprocess.sh %s/tmp/processid.txt\n", "
wpa_supplicant");Review
Quoted 7 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch new file +6
-0+ st = system(cmdStr); + + tmpfd = fopen("/tmp/processid.txt", "r+"); +-- +2.7.4 +(quoted diff) +0
-0wifi-test-suite_git.bb b/meta-oe/recipes-connectivity/wifi-test-suite/ wifi-test-suite_git.bb
meta-oe/recipes-connectivity/wifi-test-suite/
Quoted 4 lines
new file mode 100644
index 0000000..164d5d6meta-oe/recipes-connectivity/wifi-test-suite/ new file +0
-0wifi-test-suite_git.bb
meta-oe/recipes-connectivity/wifi-test-suite/ line 2
Quoted 3 lines
meta-oe/recipes-connectivity/wifi-test-suite/ new file +2
-0@@ -0,0 +1,35 @@ +SUMMARY = "Wi-Fi Test Suite Linux Control Agent" +DESCRIPTION = "Wi-Fi Test Suite is a software platform originallydeveloped \
meta-oe/recipes-connectivity/wifi-test-suite/ line 3
Quoted 1 line
meta-oe/recipes-connectivity/wifi-test-suite/ new file +1
-0+by Wi-Fi Alliance, the global non-profit industry association thatbrings you \
meta-oe/recipes-connectivity/wifi-test-suite/ line 4
Quoted 1 line
meta-oe/recipes-connectivity/wifi-test-suite/ new file +1
-0+Wi-Fi, to support certification program development and devicecertification."
meta-oe/recipes-connectivity/wifi-test-suite/ line 7
Quoted 3 lines
meta-oe/recipes-connectivity/wifi-test-suite/ new file +3
-0+HOMEPAGE = "https://www.wi-fi.org/certification/wi-fi-test-suite" +LICENSE = "ISC" +LIC_FILES_CHKSUM ="file://LICENSE.txt;md5=0542427ed5c315ca34aa09ae7a85ed32"
meta-oe/recipes-connectivity/wifi-test-suite/ line 8
Quoted 1 line
meta-oe/recipes-connectivity/wifi-test-suite/ new file +1
-0+SECTION = "test"I see above that some scripts are calling
wpa_supplicant, but its not in RDEPENDS
probably that needs to be added here via RDEPENDS_${PN}meta-oe/recipes-connectivity/wifi-test-suite/ line 12
Quoted 4 lines
meta-oe/recipes-connectivity/wifi-test-suite/ new file +4
-0+ +S = "${WORKDIR}/git" +SRCREV = "f7a8d7ef7d1a831c1bb47de21fa083536ea2f3a9" +SRC_URI = "git://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT.git\
meta-oe/recipes-connectivity/wifi-test-suite/ line 14
Quoted 2 lines
meta-oe/recipes-connectivity/wifi-test-suite/ new file +2
-0+ file://0001-Use-toolchain-from-environment-variables.patch \ +file://0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch \
meta-oe/recipes-connectivity/wifi-test-suite/ line 18
Quoted 4 lines
meta-oe/recipes-connectivity/wifi-test-suite/ new file +4
-0+ file://0003-fix-path-to-usr-sbin-for-script.patch \ +" + +# Fix for non glib based rpc and to avoid host path QA errorlatest glibc uses tirpc too. so this comment should not call out glibc host path QA could still be valid.
meta-oe/recipes-connectivity/wifi-test-suite/ line 29
Quoted 11 lines
meta-oe/recipes-connectivity/wifi-test-suite/ new file +11
-0+CFLAGS += "-I${STAGING_INCDIR}/tirpc" + +do_install () { + install -d ${D}${libdir} + install -m 0644 ${S}/lib/libwfa.a ${D}${libdir} + install -m 0644 ${S}/lib/libwfa_ca.a ${D}${libdir} + install -m 0644 ${S}/lib/libwfa_dut.a ${D}${libdir} + install -d ${D}${sbindir} + install -m 0755 ${S}/dut/wfa_dut ${D}${sbindir} + install -m 0755 ${S}/ca/wfa_ca ${D}${sbindir} + install -m 0644 ${S}/scripts/*.sh ${D}${sbindir}scripts should be 0755
meta-oe/recipes-connectivity/wifi-test-suite/ line 32
Quoted 3 lines
meta-oe/recipes-connectivity/wifi-test-suite/ new file +3
-0+ install -m 0644 ${S}/scripts/arp_neigh_loop ${D}${sbindir} + install -m 0644 ${S}/scripts/dev_send_frame ${D}${sbindir} + install -m 0644 ${S}/scripts/sta_reset_parm ${D}${sbindir}are these config files or scripts which are executed, in case of scripts then 0755 is right mode
Quoted 6 lines
meta-oe/recipes-connectivity/wifi-test-suite/ line 35
Quoted 3 lines
meta-oe/recipes-connectivity/wifi-test-suite/ new file +3
-0+} + +INSANE_SKIP_${PN} = "ldflags"why do we need this ?
There was an error " No GNU_HASH in the ELF binary" and "didn't pass LDFLAGS? [ldflags]"
Regards, Ankit
Quoted 10 lines
Quoted 9 lines
--
2.7.4--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 275 lines · Ankit Navik
Hi Raj,
Quoted 271 lines · Khem Raj
Hi Ankit
I provided some additional comments inline
Quoted 120 lines · Ankit Navik
Add generic recipe for wifi test suite from wifi alliance.
Suite is to support certification program development and device certification.Signed-off-by Ankit Navik <[email protected]>--- ...-Use-toolchain-from-environment-variables.patch | 92 ++++++++++++++++++++++ ...-include-removes-unnedded-stuff-and-add-n.patch | 45 +++++++++++ .../0003-fix-path-to-usr-sbin-for-script.patch | 35 ++++++++ .../wifi-test-suite/wifi-test-suite_git.bb | 35 ++++++++ 4 files changed, 207 insertions(+) create mode 100644 meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch create mode 100644 meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch create mode 100644 meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch create mode 100644 meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bbmeta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch new file +92
-0@@ -0,0 +1,92 @@ +From 6b822b36739222d0c864249992b5d28e3ff4d948 Mon Sep 17 00:00:00 2001 +From: Adrian Friedli <[email protected]> +Date: Mon, 3 Sep 2018 17:58:27 +0200 +Subject: [PATCH] Use toolchain from environment variables + +Upstream-Status: Submitted [https://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT/pull/42] +Signed-off-by: Adrian Friedli <[email protected]> +Signed-off-by: Ankit Navik <[email protected]> +--- + Makefile.inc | 7 ++++--- + WTGService/Makefile | 2 +- + console_src/Makefile | 2 +- + lib/Makefile | 6 +++--- + 4 files changed, 9 insertions(+), 8 deletions(-) + +diff --git a/Makefile.inc b/Makefile.inc +index b0edf5a..0094bdf 100644 +--- a/Makefile.inc ++++ b/Makefile.inc +@@ -13,14 +13,15 @@ + # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE + # USE OR PERFORMANCE OF THIS SOFTWARE. + # +-CC = gcc ++CC ?= gcc ++AR ?= ar + LIB=lib + DUT=dut + CA=ca + UCC=ucc + CON=console_src + WTG=WTGService +-MAKE=make ++MAKE?=make + + # This is for WMM-PS + #for Ext TG +@@ -46,7 +47,7 @@ CFLAGS = -g -O2 -D_REENTRANT -Wall -I../inc + + DUTLIBS = ../lib/libwfa_dut.a -lpthread + CALIBS = ../lib/libwfa_ca.a -lpthread +-RANLIB = ranlib ++RANLIB ?= ranlib + + LIBWFA_NAME_DUT = libwfa_dut.a + LIBWFA_NAME_CA = libwfa_ca.a +diff --git a/WTGService/Makefile b/WTGService/Makefile +index 5312eb6..4855771 100644 +--- a/WTGService/Makefile ++++ b/WTGService/Makefile +@@ -13,7 +13,7 @@ + # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE + # USE OR PERFORMANCE OF THIS SOFTWARE. + # +-CC=gcc ++CC?=gcc + CFLAGS= -Wall + LIB=-lpthread + +diff --git a/console_src/Makefile b/console_src/Makefile +index 8282283..d1098eb 100644 +--- a/console_src/Makefile ++++ b/console_src/Makefile +@@ -14,7 +14,7 @@ + # USE OR PERFORMANCE OF THIS SOFTWARE. + # + +-CC = gcc ++CC ?= gcc + CFLAGS = -g -DWFA_DEBUG -pthread + + TARGETS = wfa_con +diff --git a/lib/Makefile b/lib/Makefile +index ffcef94..299b8d6 100644 +--- a/lib/Makefile ++++ b/lib/Makefile +@@ -17,9 +17,9 @@ + include ../Makefile.inc + + all: ${LIB_OBJS} +- ar crv ${LIBWFA_NAME} $? +- ar crv ${LIBWFA_NAME_DUT} ${LIB_OBJS_DUT} +- ar crv ${LIBWFA_NAME_CA} ${LIB_OBJS_CA} ++ $(AR) crv ${LIBWFA_NAME} $? ++ $(AR) crv ${LIBWFA_NAME_DUT} ${LIB_OBJS_DUT} ++ $(AR) crv ${LIBWFA_NAME_CA} ${LIB_OBJS_CA} + ${RANLIB} ${LIBWFA_NAME} ${LIBWFA_NAME_DUT} ${LIBWFA_NAME_CA} + + wfa_tg.o: wfa_tg.c ../inc/wfa_agt.h ../inc/wfa_types.h ../inc/wfa_rsp.h ../inc/wfa_tlv.h ../inc/wfa_tg.h +-- +2.7.4 +meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch new file +0
-0meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch line 5
Quoted 5 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch new file +5
-0@@ -0,0 +1,45 @@ +From 451b162c903a1ef070a75dc18171620f3beef7b3 Mon Sep 17 00:00:00 2001 +From: Ankit Navik <[email protected]> +Date: Tue, 25 Dec 2018 00:36:59 +0530 +Subject: [PATCH 2/3] Add missing include, removes unnedded stuff and add non + glib rpctypo here, I guess you mean glibc.
Quoted 87 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch new file +40
-0+ +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Reto Schneider <[email protected]> +Signed-off-by: Ankit Navik <[email protected]> +--- + Makefile | 2 +- + inc/wfa_tg.h | 3 +++ + 2 files changed, 4 insertions(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 2c41a17..5c4ad8c 100644 +--- a/Makefile ++++ b/Makefile +@@ -15,7 +15,7 @@ + # + include Makefile.inc + +-DIRS= ${LIB} ${DUT} ${CA} ${TC} ${WTG} ${CON} ++DIRS= ${LIB} ${DUT} ${CA} ${TC} + + all: + for i in ${DIRS}; do \ +diff --git a/inc/wfa_tg.h b/inc/wfa_tg.h +index 799bf9f..a1804dd 100644 +--- a/inc/wfa_tg.h ++++ b/inc/wfa_tg.h +@@ -24,6 +24,9 @@ + #ifndef _WFA_TG_H + #define _WFA_TG_H + ++#ifndef _WINDOWS ++#include <pthread.h> ++#endif + #include <sys/time.h> + + /* maximum number of streams to support */ +-- +2.7.4 +meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch new file +35
-0@@ -0,0 +1,35 @@ +From ee5ffceb8c29cb66f323158123c9103d47965184 Mon Sep 17 00:00:00 2001 +From: Ankit Navik <[email protected]> +Date: Tue, 25 Dec 2018 01:12:32 +0530 +Subject: [PATCH 3/3] fix path to /usr/sbin for script + +Signed-off-by: Ankit Navik <[email protected]> +--- + lib/wfa_cs.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/lib/wfa_cs.c b/lib/wfa_cs.c +index 6b1f5a2..2a18533 100644 +--- a/lib/wfa_cs.c ++++ b/lib/wfa_cs.c +@@ -319,7 +319,7 @@ int wfaStaGetIpConfig(int len, BYTE *caCmdBuf, int *respLen, BYTE *respBuf) + /* + * check a script file (the current implementation specific) + */ +- ret = access("/usr/local/sbin/getipconfig.sh", F_OK); ++ ret = access("/usr/sbin/getipconfig.sh", F_OK); + if(ret == -1) + { + ipconfigResp->status = STATUS_ERROR; +@@ -2115,7 +2115,7 @@ int wfaStaPresetParams(int len, BYTE *caCmdBuf, int *respLen, BYTE *respBuf) + st = remove("/tmp/processid.txt"); + } + +- sprintf(cmdStr, "/usr/local/sbin/findprocess.sh %s /tmp/processid.txt\n", "wpa_supplicant"); ++ sprintf(cmdStr, "/usr/sbin/findprocess.sh %s /tmp/processid.txt\n", "wpa_supplicant"); + st = system(cmdStr); + + tmpfd = fopen("/tmp/processid.txt", "r+"); +-- +2.7.4 +meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb new file +0
-0meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb line 8
Quoted 8 lines
meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb new file +8
-0@@ -0,0 +1,35 @@ +SUMMARY = "Wi-Fi Test Suite Linux Control Agent" +DESCRIPTION = "Wi-Fi Test Suite is a software platform originally developed \ +by Wi-Fi Alliance, the global non-profit industry association that brings you \ +Wi-Fi, to support certification program development and device certification." +HOMEPAGE = "https://www.wi-fi.org/certification/wi-fi-test-suite" +LICENSE = "ISC" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=0542427ed5c315ca34aa09ae7a85ed32" +SECTION = "test"I see above that some scripts are calling
wpa_supplicant, but its not in RDEPENDS
probably that needs to be added here via RDEPENDS_${PN}meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb line 18
Quoted 10 lines
meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb new file +10
-0+ +S = "${WORKDIR}/git" +SRCREV = "f7a8d7ef7d1a831c1bb47de21fa083536ea2f3a9" +SRC_URI = "git://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT.git \ + file://0001-Use-toolchain-from-environment-variables.patch \ + file://0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch \ + file://0003-fix-path-to-usr-sbin-for-script.patch \ +" + +# Fix for non glib based rpc and to avoid host path QA errorlatest glibc uses tirpc too. so this comment should not call out glibc host path QA could still be valid.
meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb line 29
Quoted 11 lines
meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb new file +11
-0+CFLAGS += "-I${STAGING_INCDIR}/tirpc" + +do_install () { + install -d ${D}${libdir} + install -m 0644 ${S}/lib/libwfa.a ${D}${libdir} + install -m 0644 ${S}/lib/libwfa_ca.a ${D}${libdir} + install -m 0644 ${S}/lib/libwfa_dut.a ${D}${libdir} + install -d ${D}${sbindir} + install -m 0755 ${S}/dut/wfa_dut ${D}${sbindir} + install -m 0755 ${S}/ca/wfa_ca ${D}${sbindir} + install -m 0644 ${S}/scripts/*.sh ${D}${sbindir}scripts should be 0755
meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb line 32
Quoted 3 lines
meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb new file +3
-0+ install -m 0644 ${S}/scripts/arp_neigh_loop ${D}${sbindir} + install -m 0644 ${S}/scripts/dev_send_frame ${D}${sbindir} + install -m 0644 ${S}/scripts/sta_reset_parm ${D}${sbindir}are these config files or scripts which are executed, in case of scripts then 0755 is right mode
Quoted 8 lines
Quoted 5 lines
meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb line 35
Quoted 3 lines
meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb new file +3
-0+} + +INSANE_SKIP_${PN} = "ldflags"why do we need this ?
There was an error " No
GNU_HASHin the ELF binary" and "didn't pass LDFLAGS? [ldflags]"
You might want to add
TARGET_CC_ARCH += "${LDFLAGS}"
to fix gnu hash errors.
Quoted 11 lines
Regards, Ankit
Quoted 10 lines
Quoted 10 lines
--
2.7.4--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Thank you Raj for your suggestion.
will fix in v4 patch.
Quoted 343 lines · Khem Raj
Quoted 11 lines · Ankit Navik
Hi Raj,
Quoted 7 lines · Khem Raj
Hi Ankit
I provided some additional comments inline
On Tue, Dec 25, 2018 at 12:23 AM Ankit Navik <[email protected]>
Quoted 3 lines · wrote:
Quoted 3 lines
Quoted 3 lines
Add generic recipe for wifi test suite from wifi alliance. Suite is to support certification program development and device
certification.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Signed-off-by Ankit Navik <[email protected]>--- ...-Use-toolchain-from-environment-variables.patch | 92++++++++++++++++++++++
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
...-include-removes-unnedded-stuff-and-add-n.patch | 45 +++++++++++ .../0003-fix-path-to-usr-sbin-for-script.patch | 35 ++++++++ .../wifi-test-suite/wifi-test-suite_git.bb | 35 ++++++++ 4 files changed, 207 insertions(+) create mode 100644
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patchQuoted 1 line
Quoted 1 line
Quoted 1 line
create mode 100644
meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patchQuoted 1 line
Quoted 1 line
Quoted 1 line
create mode 100644
meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patchQuoted 1 line
Quoted 1 line
Quoted 1 line
create mode 100644 meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
diff --git
a/meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patchb/meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patchQuoted 4 lines
Quoted 4 lines
Quoted 4 lines
new file mode 100644
index 0000000..9ee4a51
---/dev/null
+++
b/meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patchQuoted 2 lines
Quoted 2 lines
Review line 1
Quoted 2 lines
(quoted diff) +1
-0@@ -0,0 +1,92 @@ +From 6b822b36739222d0c864249992b5d28e3ff4d948 Mon Sep 17 00:00:002001
Quoted 5 lines
Quoted 5 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch
Quoted 5 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch new file +5
-0+From: Adrian Friedli <[email protected]> +Date: Mon, 3 Sep 2018 17:58:27 +0200 +Subject: [PATCH] Use toolchain from environment variables + +Upstream-Status: Submitted [https://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT/pull/42]
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch new file +7
-0+Signed-off-by: Adrian Friedli <[email protected]> +Signed-off-by: Ankit Navik <[email protected]> +--- + Makefile.inc | 7 ++++--- + WTGService/Makefile | 2 +- + console_src/Makefile | 2 +- + lib/Makefile | 6 +++---Quoted 8 lines
Quoted 8 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch
Quoted 8 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch new file +8
-0+ 4 files changed, 9 insertions(+), 8 deletions(-) + +diff --git a/Makefile.inc b/Makefile.inc +index b0edf5a..0094bdf 100644 +--- a/Makefile.inc ++++ b/Makefile.inc +@@ -13,14 +13,15 @@ + # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR INCONNECTION WITH THE
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch new file +23
-0+ # USE OR PERFORMANCE OF THIS SOFTWARE. + # +-CC = gcc ++CC ?= gcc ++AR ?= ar + LIB=lib + DUT=dut + CA=ca + UCC=ucc + CON=console_src + WTG=WTGService +-MAKE=make ++MAKE?=make + + # This is for WMM-PS + #for Ext TG +@@ -46,7 +47,7 @@ CFLAGS = -g -O2 -D_REENTRANT -Wall -I../inc + + DUTLIBS = ../lib/libwfa_dut.a -lpthread + CALIBS = ../lib/libwfa_ca.a -lpthread +-RANLIB = ranlib ++RANLIB ?= ranlib +Quoted 8 lines
Quoted 8 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch
Quoted 8 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch new file +8
-0+ LIBWFA_NAME_DUT = libwfa_dut.a + LIBWFA_NAME_CA = libwfa_ca.a +diff --git a/WTGService/Makefile b/WTGService/Makefile +index 5312eb6..4855771 100644 +--- a/WTGService/Makefile ++++ b/WTGService/Makefile +@@ -13,7 +13,7 @@ + # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR INCONNECTION WITH THE
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch new file +27
-0+ # USE OR PERFORMANCE OF THIS SOFTWARE. + # +-CC=gcc ++CC?=gcc + CFLAGS= -Wall + LIB=-lpthread + +diff --git a/console_src/Makefile b/console_src/Makefile +index 8282283..d1098eb 100644 +--- a/console_src/Makefile ++++ b/console_src/Makefile +@@ -14,7 +14,7 @@ + # USE OR PERFORMANCE OF THIS SOFTWARE. + # + +-CC = gcc ++CC ?= gcc + CFLAGS = -g -DWFA_DEBUG -pthread + + TARGETS = wfa_con +diff --git a/lib/Makefile b/lib/Makefile +index ffcef94..299b8d6 100644 +--- a/lib/Makefile ++++ b/lib/Makefile +@@ -17,9 +17,9 @@ + include ../Makefile.inc +Quoted 8 lines
Quoted 8 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch
Quoted 8 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch new file +8
-0+ all: ${LIB_OBJS} +- ar crv ${LIBWFA_NAME} $? +- ar crv ${LIBWFA_NAME_DUT} ${LIB_OBJS_DUT} +- ar crv ${LIBWFA_NAME_CA} ${LIB_OBJS_CA} ++ $(AR) crv ${LIBWFA_NAME} $? ++ $(AR) crv ${LIBWFA_NAME_DUT} ${LIB_OBJS_DUT} ++ $(AR) crv ${LIBWFA_NAME_CA} ${LIB_OBJS_CA} + ${RANLIB} ${LIBWFA_NAME} ${LIBWFA_NAME_DUT}${LIBWFA_NAME_CA}
Quoted 2 lines
Quoted 2 lines
Review line 89
Quoted 2 lines
(quoted diff) +2
-0+ + wfa_tg.o: wfa_tg.c ../inc/wfa_agt.h ../inc/wfa_types.h
../inc/wfa_rsp.h../inc/wfa_tlv.h../inc/wfa_tg.hQuoted 4 lines
Quoted 4 lines
Quoted 4 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0001-Use-toolchain-from-environment-variables.patch new file +3
-0+-- +2.7.4 +diff --git
a/meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patchb/meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patchQuoted 4 lines
Quoted 4 lines
Quoted 4 lines
new file mode 100644
index 0000000..43be917
---/dev/null
+++
b/meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patchQuoted 2 lines
Quoted 2 lines
Review line 1
Quoted 2 lines
(quoted diff) +1
-0@@ -0,0 +1,45 @@ +From 451b162c903a1ef070a75dc18171620f3beef7b3 Mon Sep 17 00:00:002001
Quoted 3 lines
Quoted 3 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch
Quoted 3 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch new file +3
-0+From: Ankit Navik <[email protected]> +Date: Tue, 25 Dec 2018 00:36:59 +0530 +Subject: [PATCH 2/3] Add missing include, removes unnedded stuff andadd non
Quoted 37 lines
Quoted 37 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch line 5
Quoted 1 line
meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch new file +1
-0+ glib rpctypo here, I guess you mean glibc.
Quoted 33 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch new file +33
-0+ +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Reto Schneider <[email protected]> +Signed-off-by: Ankit Navik <[email protected]> +--- + Makefile | 2 +- + inc/wfa_tg.h | 3 +++ + 2 files changed, 4 insertions(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 2c41a17..5c4ad8c 100644 +--- a/Makefile ++++ b/Makefile +@@ -15,7 +15,7 @@ + # + include Makefile.inc + +-DIRS= ${LIB} ${DUT} ${CA} ${TC} ${WTG} ${CON} ++DIRS= ${LIB} ${DUT} ${CA} ${TC} + + all: + for i in ${DIRS}; do \ +diff --git a/inc/wfa_tg.h b/inc/wfa_tg.h +index 799bf9f..a1804dd 100644 +--- a/inc/wfa_tg.h ++++ b/inc/wfa_tg.h +@@ -24,6 +24,9 @@ + #ifndef _WFA_TG_H + #define _WFA_TG_H + ++#ifndef _WINDOWS ++#include <pthread.h>Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch new file +7
-0++#endif + #include <sys/time.h> + + /* maximum number of streams to support */ +-- +2.7.4 +diff --git
a/meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patchb/meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patchQuoted 4 lines
Quoted 4 lines
Quoted 4 lines
new file mode 100644
index 0000000..23dae6a
---/dev/null
+++
b/meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patchQuoted 2 lines
Quoted 2 lines
Review line 1
Quoted 2 lines
(quoted diff) +1
-0@@ -0,0 +1,35 @@ +From ee5ffceb8c29cb66f323158123c9103d47965184 Mon Sep 17 00:00:002001
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch new file +6
-0+From: Ankit Navik <[email protected]> +Date: Tue, 25 Dec 2018 01:12:32 +0530 +Subject: [PATCH 3/3] fix path to /usr/sbin for script + +Signed-off-by: Ankit Navik <[email protected]> +---Quoted 8 lines
Quoted 8 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch
Quoted 8 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch new file +8
-0+ lib/wfa_cs.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/lib/wfa_cs.c b/lib/wfa_cs.c +index 6b1f5a2..2a18533 100644 +--- a/lib/wfa_cs.c ++++ b/lib/wfa_cs.c +@@ -319,7 +319,7 @@ int wfaStaGetIpConfig(int len, BYTE *caCmdBuf,int *respLen, BYTE *respBuf)
Quoted 9 lines
Quoted 9 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch
Quoted 9 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch new file +9
-0+ /* + * check a script file (the current implementation specific) + */ +- ret = access("/usr/local/sbin/getipconfig.sh", F_OK); ++ ret = access("/usr/sbin/getipconfig.sh", F_OK); + if(ret == -1) + { + ipconfigResp->status = STATUS_ERROR; +@@ -2115,7 +2115,7 @@ int wfaStaPresetParams(int len, BYTE*caCmdBuf, int *respLen, BYTE *respBuf)
Quoted 4 lines
Quoted 4 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch
Quoted 4 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch new file +4
-0+ st = remove("/tmp/processid.txt"); + } + +- sprintf(cmdStr, "/usr/local/sbin/findprocess.sh %s/tmp/processid.txt\n", "
wpa_supplicant");Quoted 1 line
Quoted 1 line
Review line 29
Quoted 1 line
(quoted diff) +1
-0++ sprintf(cmdStr, "/usr/sbin/findprocess.sh %s/tmp/processid.txt\n", "
wpa_supplicant");Quoted 7 lines
Quoted 7 lines
Review
Quoted 7 lines
meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script.patch new file +6
-0+ st = system(cmdStr); + + tmpfd = fopen("/tmp/processid.txt", "r+"); +-- +2.7.4 +(quoted diff) +0
-0wifi-test-suite_git.bb b/meta-oe/recipes-connectivity/wifi-test-suite/ wifi-test-suite_git.bb
Quoted 4 lines
Quoted 4 lines
meta-oe/recipes-connectivity/wifi-test-suite/
Quoted 4 lines
new file mode 100644
index 0000000..164d5d6meta-oe/recipes-connectivity/wifi-test-suite/ new file +0
-0wifi-test-suite_git.bb
Quoted 3 lines
Quoted 3 lines
meta-oe/recipes-connectivity/wifi-test-suite/ line 2
Quoted 3 lines
meta-oe/recipes-connectivity/wifi-test-suite/ new file +2
-0@@ -0,0 +1,35 @@ +SUMMARY = "Wi-Fi Test Suite Linux Control Agent" +DESCRIPTION = "Wi-Fi Test Suite is a software platform originallydeveloped \
Quoted 1 line
Quoted 1 line
meta-oe/recipes-connectivity/wifi-test-suite/ line 3
Quoted 1 line
meta-oe/recipes-connectivity/wifi-test-suite/ new file +1
-0+by Wi-Fi Alliance, the global non-profit industry association thatbrings you \
Quoted 1 line
Quoted 1 line
meta-oe/recipes-connectivity/wifi-test-suite/ line 4
Quoted 1 line
meta-oe/recipes-connectivity/wifi-test-suite/ new file +1
-0+Wi-Fi, to support certification program development and devicecertification."
Quoted 3 lines
Quoted 3 lines
meta-oe/recipes-connectivity/wifi-test-suite/ line 7
Quoted 3 lines
meta-oe/recipes-connectivity/wifi-test-suite/ new file +3
-0+HOMEPAGE = "https://www.wi-fi.org/certification/wi-fi-test-suite" +LICENSE = "ISC" +LIC_FILES_CHKSUM ="file://LICENSE.txt;md5=0542427ed5c315ca34aa09ae7a85ed32"
Quoted 10 lines
Quoted 10 lines
meta-oe/recipes-connectivity/wifi-test-suite/ line 8
Quoted 1 line
meta-oe/recipes-connectivity/wifi-test-suite/ new file +1
-0+SECTION = "test"I see above that some scripts are calling
wpa_supplicant, but its not in RDEPENDS
probably that needs to be added here via RDEPENDS_${PN}meta-oe/recipes-connectivity/wifi-test-suite/ line 12
Quoted 4 lines
meta-oe/recipes-connectivity/wifi-test-suite/ new file +4
-0+ +S = "${WORKDIR}/git" +SRCREV = "f7a8d7ef7d1a831c1bb47de21fa083536ea2f3a9" +SRC_URI = "git://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT.git \
Quoted 2 lines
Quoted 2 lines
meta-oe/recipes-connectivity/wifi-test-suite/ line 14
Quoted 2 lines
meta-oe/recipes-connectivity/wifi-test-suite/ new file +2
-0+ file://0001-Use-toolchain-from-environment-variables.patch \ +file://0002-Add-missing-include-removes-unnedded-stuff-and-add-n.patch \
Quoted 30 lines
Quoted 30 lines
meta-oe/recipes-connectivity/wifi-test-suite/ line 18
Quoted 4 lines
meta-oe/recipes-connectivity/wifi-test-suite/ new file +4
-0+ file://0003-fix-path-to-usr-sbin-for-script.patch \ +" + +# Fix for non glib based rpc and to avoid host path QA errorlatest glibc uses tirpc too. so this comment should not call out glibc host path QA could still be valid.
meta-oe/recipes-connectivity/wifi-test-suite/ line 29
Quoted 11 lines
meta-oe/recipes-connectivity/wifi-test-suite/ new file +11
-0+CFLAGS += "-I${STAGING_INCDIR}/tirpc" + +do_install () { + install -d ${D}${libdir} + install -m 0644 ${S}/lib/libwfa.a ${D}${libdir} + install -m 0644 ${S}/lib/libwfa_ca.a ${D}${libdir} + install -m 0644 ${S}/lib/libwfa_dut.a ${D}${libdir} + install -d ${D}${sbindir} + install -m 0755 ${S}/dut/wfa_dut ${D}${sbindir} + install -m 0755 ${S}/ca/wfa_ca ${D}${sbindir} + install -m 0644 ${S}/scripts/*.sh ${D}${sbindir}scripts should be 0755
meta-oe/recipes-connectivity/wifi-test-suite/ line 32
Quoted 3 lines
meta-oe/recipes-connectivity/wifi-test-suite/ new file +3
-0+ install -m 0644 ${S}/scripts/arp_neigh_loop ${D}${sbindir} + install -m 0644 ${S}/scripts/dev_send_frame ${D}${sbindir} + install -m 0644 ${S}/scripts/sta_reset_parm ${D}${sbindir}are these config files or scripts which are executed, in case of scripts then 0755 is right mode
Quoted 7 lines
Quoted 5 lines
meta-oe/recipes-connectivity/wifi-test-suite/ line 35
Quoted 3 lines
meta-oe/recipes-connectivity/wifi-test-suite/ new file +3
-0+} + +INSANE_SKIP_${PN} = "ldflags"why do we need this ?
There was an error " No
GNU_HASHin the ELF binary" and "didn't passLDFLAGS? [ldflags]"
Quoted 1 line
You might want to add
TARGET_CC_ARCH+= "${LDFLAGS}"to fix gnu hash errors.
Quoted 11 lines
Regards, Ankit
Quoted 10 lines
Quoted 10 lines
--
2.7.4--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel