summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity/wifi-test-suite
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-connectivity/wifi-test-suite')
-rw-r--r--meta-oe/recipes-connectivity/wifi-test-suite/files/0005-wfa_cmdproc-Store-return-value-into-location.patch (renamed from meta-oe/recipes-connectivity/wifi-test-suite/files/0001-wfa_cmdproc-Store-return-value-into-location.patch)0
-rw-r--r--meta-oe/recipes-connectivity/wifi-test-suite/files/0006-make-CFLAGS-appendable.patch60
-rw-r--r--meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_10.10.1.bb11
3 files changed, 69 insertions, 2 deletions
diff --git a/meta-oe/recipes-connectivity/wifi-test-suite/files/0001-wfa_cmdproc-Store-return-value-into-location.patch b/meta-oe/recipes-connectivity/wifi-test-suite/files/0005-wfa_cmdproc-Store-return-value-into-location.patch
index 074f0fe7bb..074f0fe7bb 100644
--- a/meta-oe/recipes-connectivity/wifi-test-suite/files/0001-wfa_cmdproc-Store-return-value-into-location.patch
+++ b/meta-oe/recipes-connectivity/wifi-test-suite/files/0005-wfa_cmdproc-Store-return-value-into-location.patch
diff --git a/meta-oe/recipes-connectivity/wifi-test-suite/files/0006-make-CFLAGS-appendable.patch b/meta-oe/recipes-connectivity/wifi-test-suite/files/0006-make-CFLAGS-appendable.patch
new file mode 100644
index 0000000000..9d20403866
--- /dev/null
+++ b/meta-oe/recipes-connectivity/wifi-test-suite/files/0006-make-CFLAGS-appendable.patch
@@ -0,0 +1,60 @@
1From ef4ead927f69452c95b80e5bf042f67897f67e9d Mon Sep 17 00:00:00 2001
2From: Alper Ak <alperyasinak1@gmail.com>
3Date: Mon, 23 Jun 2025 15:46:37 +0300
4Subject: [PATCH] Allow extra CFLAGS via EXTRA_CFLAGS variable
5
6This patch introduces an EXTRA_CFLAGS variable to the Makefile, which is
7appended to CFLAGS. This allows users or external build systems to pass
8their additional compiler flags.
9
10Upstream-Status: Submitted [https://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT/pull/61]
11
12Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
13---
14 Makefile.inc | 15 ++++++++-------
15 1 file changed, 8 insertions(+), 7 deletions(-)
16
17diff --git a/Makefile.inc b/Makefile.inc
18index 0094bdf..76729b9 100644
19--- a/Makefile.inc
20+++ b/Makefile.inc
21@@ -22,28 +22,29 @@ UCC=ucc
22 CON=console_src
23 WTG=WTGService
24 MAKE?=make
25+EXTRA_CFLAGS ?=
26
27 # This is for WMM-PS
28 #for Ext TG
29-#CFLAGS = -g -O2 -D_REENTRANT -DWFA_WMM_PS_EXT -Wall -I../inc
30+#CFLAGS = -g -O2 -D_REENTRANT -DWFA_WMM_PS_EXT -Wall -I../inc ${EXTRA_CFLAGS}
31
32 ## for WMM-AC, WMM-PS, Voice, PMF, TDLS Test-Bed
33-#CFLAGS = -g -O2 -D_REENTRANT -DWFA_WMM_PS_EXT -DWFA_WMM_AC -DWFA_VOICE_EXT -DWFA_STA_TB -Wall -I../inc
34+#CFLAGS = -g -O2 -D_REENTRANT -DWFA_WMM_PS_EXT -DWFA_WMM_AC -DWFA_VOICE_EXT -DWFA_STA_TB -Wall -I../inc ${EXTRA_CFLAGS}
35
36 ## for WMM-AC, WMM-PS Test-Bed
37-#CFLAGS = -g -O2 -D_REENTRANT -DWFA_WMM_PS_EXT -DWFA_WMM_AC -DWFA_STA_TB -Wall -I../inc
38+#CFLAGS = -g -O2 -D_REENTRANT -DWFA_WMM_PS_EXT -DWFA_WMM_AC -DWFA_STA_TB -Wall -I../inc ${EXTRA_CFLAGS}
39
40 ## for non-Test-Bed WMM-AC, WMM-PS and Voice
41-#CFLAGS = -g -O2 -D_REENTRANT -DWFA_WMM_PS_EXT -DWFA_WMM_AC -DWFA_VOICE_EXT -Wall -I../inc
42+#CFLAGS = -g -O2 -D_REENTRANT -DWFA_WMM_PS_EXT -DWFA_WMM_AC -DWFA_VOICE_EXT -Wall -I../inc ${EXTRA_CFLAGS}
43
44 ## for PC-ENDPOINT
45-#CFLAGS = -g -O2 -D_REENTRANT -DWFA_WMM_PS_EXT -DWFA_WMM_AC -DWFA_VOICE_EXT -DWFA_PC_CONSOLE -Wall -I../inc
46+#CFLAGS = -g -O2 -D_REENTRANT -DWFA_WMM_PS_EXT -DWFA_WMM_AC -DWFA_VOICE_EXT -DWFA_PC_CONSOLE -Wall -I../inc ${EXTRA_CFLAGS}
47
48 ## for PC-ENDPOINT No Voice
49-#CFLAGS = -g -O2 -D_REENTRANT -DWFA_WMM_PS_EXT -DWFA_WMM_AC -DWFA_PC_CONSOLE -DWFA_STA_TB -Wall -I../inc
50+#CFLAGS = -g -O2 -D_REENTRANT -DWFA_WMM_PS_EXT -DWFA_WMM_AC -DWFA_PC_CONSOLE -DWFA_STA_TB -Wall -I../inc ${EXTRA_CFLAGS}
51
52 # This is for WPA2 as default
53-CFLAGS = -g -O2 -D_REENTRANT -Wall -I../inc
54+CFLAGS = -g -O2 -D_REENTRANT -Wall -I../inc ${EXTRA_CFLAGS}
55
56 DUTLIBS = ../lib/libwfa_dut.a -lpthread
57 CALIBS = ../lib/libwfa_ca.a -lpthread
58--
592.43.0
60
diff --git a/meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_10.10.1.bb b/meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_10.10.1.bb
index eda01ca388..357789ad88 100644
--- a/meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_10.10.1.bb
+++ b/meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_10.10.1.bb
@@ -7,7 +7,6 @@ LICENSE = "ISC"
7LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=0542427ed5c315ca34aa09ae7a85ed32" 7LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=0542427ed5c315ca34aa09ae7a85ed32"
8SECTION = "test" 8SECTION = "test"
9 9
10S = "${WORKDIR}/git"
11SRCREV = "12e85fbeca8ca21a632d18e55089a8a7606d64aa" 10SRCREV = "12e85fbeca8ca21a632d18e55089a8a7606d64aa"
12SRC_URI = "git://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT.git;branch=master;protocol=https \ 11SRC_URI = "git://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT.git;branch=master;protocol=https \
13 file://0001-Use-toolchain-from-environment-variables.patch \ 12 file://0001-Use-toolchain-from-environment-variables.patch \
@@ -15,7 +14,8 @@ SRC_URI = "git://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT.git;branch=m
15 file://0003-fix-path-to-usr-sbin-for-script-and-make-script-for-.patch \ 14 file://0003-fix-path-to-usr-sbin-for-script-and-make-script-for-.patch \
16 file://0004-run-ranlib-per-library-and-use-AR.patch \ 15 file://0004-run-ranlib-per-library-and-use-AR.patch \
17 file://fno-common.patch \ 16 file://fno-common.patch \
18 file://0001-wfa_cmdproc-Store-return-value-into-location.patch \ 17 file://0005-wfa_cmdproc-Store-return-value-into-location.patch \
18 file://0006-make-CFLAGS-appendable.patch \
19" 19"
20 20
21# to avoid host path QA error 21# to avoid host path QA error
@@ -38,3 +38,10 @@ do_install () {
38} 38}
39 39
40RDEPENDS:${PN} = "wpa-supplicant" 40RDEPENDS:${PN} = "wpa-supplicant"
41
42# http://errors.yoctoproject.org/Errors/Details/766893/
43# wfa_cmdproc.c:467:68: error: passing argument 3 of 'strtok_r' from incompatible pointer type [-Wincompatible-pointer-types]
44# wfa_cs.c:4175:57: error: initialization of 'caStaGetEventDetails_t *' {aka 'struct ca_sta_get_event_details *'} from incompatible pointer type 'caStaMngServ_t *' {aka 'struct ca_sta_manage_service *'} [-Wincompatible-pointer-types]
45CFLAGS += "-Wno-error=incompatible-pointer-types"
46
47export EXTRA_CFLAGS = "${CFLAGS}"