All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] wifi-test-suite: Initial recipe for wifi test suite.
@ 2018-12-23  8:24 Ankit Navik
  2018-12-23 16:06 ` Reto Schneider
  2018-12-23 21:04 ` Khem Raj
  0 siblings, 2 replies; 6+ messages in thread
From: Ankit Navik @ 2018-12-23  8:24 UTC (permalink / raw)
  To: openembedded-devel

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 <ankit.tarot@gmail.com>
---
 .../wifi-test-suite/wifi-test-suite_git.bb         | 43 ++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb

diff --git a/meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb b/meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb
new file mode 100644
index 0000000..3890f2f
--- /dev/null
+++ b/meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb
@@ -0,0 +1,43 @@
+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"
+
+
+do_compile () {
+	oe_runmake
+}
+
+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 0755 ${S}/WTGService/WTG ${D}${sbindir}
+	install -m 0755 ${S}/console_src/wfa_con ${D}${sbindir}
+# Test scripts
+	install -m 0644 ${S}/scripts/getipconfig.sh ${D}${sbindir} # Must copy
+	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/findprocess.sh ${D}${sbindir}
+	install -m 0644 ${S}/scripts/getpid.sh ${D}${sbindir}
+	install -m 0644 ${S}/scripts/getpstats.sh ${D}${sbindir}
+	install -m 0644 ${S}/scripts/gpstats.sh ${D}${sbindir}
+	install -m 0644 ${S}/scripts/sta_reset_parm ${D}${sbindir}
+	install -m 0644 ${S}/scripts/stoping.sh ${D}${sbindir}
+	install -m 0644 ${S}/scripts/updatepid.sh ${D}${sbindir}
+	install -m 0644 ${S}/scripts/wfaping6.sh ${D}${sbindir}
+	install -m 0644 ${S}/scripts/wfaping.sh ${D}${sbindir}
+	install -m 0644 ${S}/scripts/wfa_test_cli.sh ${D}${sbindir}
+}
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] wifi-test-suite: Initial recipe for wifi test suite.
  2018-12-23  8:24 [PATCH] wifi-test-suite: Initial recipe for wifi test suite Ankit Navik
@ 2018-12-23 16:06 ` Reto Schneider
  2018-12-24 17:01   ` Ankit Navik
  2018-12-23 21:04 ` Khem Raj
  1 sibling, 1 reply; 6+ messages in thread
From: Reto Schneider @ 2018-12-23 16:06 UTC (permalink / raw)
  To: openembedded-devel

On 12/23/18 9:24 AM, Ankit Navik wrote:
> Add generic recipe for wifi test suite from wifi alliance.
> Suite is to support certification program development and device certification.

I did pretty much the same a few weeks ago [1] for a MIPS/musl based IoT
gateway [2] (DUT).

What I learned:
 - You will need some patches for the makefiles [3]
 - When using musl, you will need something like this (parts of it) [4] too
 - If you are using the Busybox utils, those scripts will not work an
need to be adapted. Our Testhouse did do this for us, so I do not know
exactly what changes where needed.

> +do_compile () {
> +	oe_runmake
> +}

Pretty sure this is not needed. My recipe at least does have this.

> +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}

I do not think that you need the static libraries.

> +	install -d ${D}${sbindir}
> +	install -m 0755 ${S}/dut/wfa_dut ${D}${sbindir}
> +	install -m 0755 ${S}/ca/wfa_ca ${D}${sbindir}
> +	install -m 0755 ${S}/WTGService/WTG ${D}${sbindir}
> +	install -m 0755 ${S}/console_src/wfa_con ${D}${sbindir}
> +# Test scripts
> +	install -m 0644 ${S}/scripts/getipconfig.sh ${D}${sbindir} # Must copy

They have hard coded the path to this script [5][6]. You will need to
fix the installation location or their C code.

> +	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/findprocess.sh ${D}${sbindir}
> +	install -m 0644 ${S}/scripts/getpid.sh ${D}${sbindir}
> +	install -m 0644 ${S}/scripts/getpstats.sh ${D}${sbindir}
> +	install -m 0644 ${S}/scripts/gpstats.sh ${D}${sbindir}
> +	install -m 0644 ${S}/scripts/sta_reset_parm ${D}${sbindir}
> +	install -m 0644 ${S}/scripts/stoping.sh ${D}${sbindir}
> +	install -m 0644 ${S}/scripts/updatepid.sh ${D}${sbindir}
> +	install -m 0644 ${S}/scripts/wfaping6.sh ${D}${sbindir}
> +	install -m 0644 ${S}/scripts/wfaping.sh ${D}${sbindir}
> +	install -m 0644 ${S}/scripts/wfa_test_cli.sh ${D}${sbindir}
> +}

How about "install -m 0755 -D ${S}/scripts/*.sh ${D}${bindir}" for the
scripts?

[1]
https://github.com/husqvarnagroup/smart-garden-gateway-yocto-meta-gardena/blob/master/recipes-wifi-alliance/wifi-testsuite/wifi-testsuite_git.bb
[2] https://github.com/husqvarnagroup/smart-garden-gateway-public
[3] https://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT/pull/42
[4]
https://github.com/husqvarnagroup/smart-garden-gateway-wifi-alliance-test-suite/compare/eb2799fbc28a2e5b309e2e85d0fa0b8e9cd0d100...master
[5]
https://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT/blob/master/lib/wfa_cs.c#L322
[6]
https://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT/blob/master/lib/wfa_cs.c#L2118




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] wifi-test-suite: Initial recipe for wifi test suite.
  2018-12-23  8:24 [PATCH] wifi-test-suite: Initial recipe for wifi test suite Ankit Navik
  2018-12-23 16:06 ` Reto Schneider
@ 2018-12-23 21:04 ` Khem Raj
  2018-12-24 16:59   ` Ankit Navik
  1 sibling, 1 reply; 6+ messages in thread
From: Khem Raj @ 2018-12-23 21:04 UTC (permalink / raw)
  To: Ankit Navik; +Cc: openembeded-devel

Fails on mips

http://errors.yoctoproject.org/Errors/Details/213432/

musl
http://errors.yoctoproject.org/Errors/Details/213424/

On Sun, Dec 23, 2018 at 12:23 AM Ankit Navik <ankit.tarot@gmail.com> wrote:
>
> 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 <ankit.tarot@gmail.com>
> ---
>  .../wifi-test-suite/wifi-test-suite_git.bb         | 43 ++++++++++++++++++++++
>  1 file changed, 43 insertions(+)
>  create mode 100644 meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb
>
> diff --git a/meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb b/meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb
> new file mode 100644
> index 0000000..3890f2f
> --- /dev/null
> +++ b/meta-oe/recipes-connectivity/wifi-test-suite/wifi-test-suite_git.bb
> @@ -0,0 +1,43 @@
> +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"
> +
> +
> +do_compile () {
> +       oe_runmake
> +}
> +
> +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 0755 ${S}/WTGService/WTG ${D}${sbindir}
> +       install -m 0755 ${S}/console_src/wfa_con ${D}${sbindir}
> +# Test scripts
> +       install -m 0644 ${S}/scripts/getipconfig.sh ${D}${sbindir} # Must copy
> +       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/findprocess.sh ${D}${sbindir}
> +       install -m 0644 ${S}/scripts/getpid.sh ${D}${sbindir}
> +       install -m 0644 ${S}/scripts/getpstats.sh ${D}${sbindir}
> +       install -m 0644 ${S}/scripts/gpstats.sh ${D}${sbindir}
> +       install -m 0644 ${S}/scripts/sta_reset_parm ${D}${sbindir}
> +       install -m 0644 ${S}/scripts/stoping.sh ${D}${sbindir}
> +       install -m 0644 ${S}/scripts/updatepid.sh ${D}${sbindir}
> +       install -m 0644 ${S}/scripts/wfaping6.sh ${D}${sbindir}
> +       install -m 0644 ${S}/scripts/wfaping.sh ${D}${sbindir}
> +       install -m 0644 ${S}/scripts/wfa_test_cli.sh ${D}${sbindir}
> +}
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] wifi-test-suite: Initial recipe for wifi test suite.
  2018-12-23 21:04 ` Khem Raj
@ 2018-12-24 16:59   ` Ankit Navik
  0 siblings, 0 replies; 6+ messages in thread
From: Ankit Navik @ 2018-12-24 16:59 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembeded-devel

Hi Raj,

On Mon, Dec 24, 2018 at 2:34 AM Khem Raj <raj.khem@gmail.com> wrote:

> Fails on mips
>
> http://errors.yoctoproject.org/Errors/Details/213432/
>
> musl
> http://errors.yoctoproject.org/Errors/Details/213424/


Let me fix it in v2 patch.
Regards,
Ankit

>
>
> On Sun, Dec 23, 2018 at 12:23 AM Ankit Navik <ankit.tarot@gmail.com>
> wrote:
> >
> > 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 <ankit.tarot@gmail.com>
> > ---
> >  .../wifi-test-suite/wifi-test-suite_git.bb         | 43
> ++++++++++++++++++++++
> >  1 file changed, 43 insertions(+)
> >  create mode 100644 meta-oe/recipes-connectivity/wifi-test-suite/
> wifi-test-suite_git.bb
> >
> > diff --git a/meta-oe/recipes-connectivity/wifi-test-suite/
> wifi-test-suite_git.bb b/meta-oe/recipes-connectivity/wifi-test-suite/
> wifi-test-suite_git.bb
> > new file mode 100644
> > index 0000000..3890f2f
> > --- /dev/null
> > +++ b/meta-oe/recipes-connectivity/wifi-test-suite/
> wifi-test-suite_git.bb
> > @@ -0,0 +1,43 @@
> > +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
> "
> > +
> > +
> > +do_compile () {
> > +       oe_runmake
> > +}
> > +
> > +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 0755 ${S}/WTGService/WTG ${D}${sbindir}
> > +       install -m 0755 ${S}/console_src/wfa_con ${D}${sbindir}
> > +# Test scripts
> > +       install -m 0644 ${S}/scripts/getipconfig.sh ${D}${sbindir} #
> Must copy
> > +       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/findprocess.sh ${D}${sbindir}
> > +       install -m 0644 ${S}/scripts/getpid.sh ${D}${sbindir}
> > +       install -m 0644 ${S}/scripts/getpstats.sh ${D}${sbindir}
> > +       install -m 0644 ${S}/scripts/gpstats.sh ${D}${sbindir}
> > +       install -m 0644 ${S}/scripts/sta_reset_parm ${D}${sbindir}
> > +       install -m 0644 ${S}/scripts/stoping.sh ${D}${sbindir}
> > +       install -m 0644 ${S}/scripts/updatepid.sh ${D}${sbindir}
> > +       install -m 0644 ${S}/scripts/wfaping6.sh ${D}${sbindir}
> > +       install -m 0644 ${S}/scripts/wfaping.sh ${D}${sbindir}
> > +       install -m 0644 ${S}/scripts/wfa_test_cli.sh ${D}${sbindir}
> > +}
> > --
> > 2.7.4
> >
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] wifi-test-suite: Initial recipe for wifi test suite.
  2018-12-23 16:06 ` Reto Schneider
@ 2018-12-24 17:01   ` Ankit Navik
  2018-12-24 18:37     ` Ankit Navik
  0 siblings, 1 reply; 6+ messages in thread
From: Ankit Navik @ 2018-12-24 17:01 UTC (permalink / raw)
  To: Reto Schneider; +Cc: openembeded-devel

Hi Schneider,
Thank you for your valuable feedback.

On Sun, Dec 23, 2018 at 9:52 PM Reto Schneider <code@reto-schneider.ch>
wrote:

> On 12/23/18 9:24 AM, Ankit Navik wrote:
> > Add generic recipe for wifi test suite from wifi alliance.
> > Suite is to support certification program development and device
> certification.
>
> I did pretty much the same a few weeks ago [1] for a MIPS/musl based IoT
> gateway [2] (DUT).
>
> What I learned:
>  - You will need some patches for the makefiles [3]
>

You patch got failed when I tried to compile using
bitbake wifi-test-suite -c compile -f
CC ?= gcc --> I think, this is not required.
It is better to use as implicit variable itself.

 - When using musl, you will need something like this (parts of it) [4] too
>  - If you are using the Busybox utils, those scripts will not work an
> need to be adapted. Our Testhouse did do this for us, so I do not know
> exactly what changes where needed.
>
> Let me check this and other comments as well.

Regards, Ankit


> > +do_compile () {
> > +     oe_runmake
> > +}
>
> Pretty sure this is not needed. My recipe at least does have this.
>
> > +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}
>
> I do not think that you need the static libraries.
>
> > +     install -d ${D}${sbindir}
> > +     install -m 0755 ${S}/dut/wfa_dut ${D}${sbindir}
> > +     install -m 0755 ${S}/ca/wfa_ca ${D}${sbindir}
> > +     install -m 0755 ${S}/WTGService/WTG ${D}${sbindir}
> > +     install -m 0755 ${S}/console_src/wfa_con ${D}${sbindir}
> > +# Test scripts
> > +     install -m 0644 ${S}/scripts/getipconfig.sh ${D}${sbindir} # Must
> copy
>
> They have hard coded the path to this script [5][6]. You will need to
> fix the installation location or their C code.
>
> > +     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/findprocess.sh ${D}${sbindir}
> > +     install -m 0644 ${S}/scripts/getpid.sh ${D}${sbindir}
> > +     install -m 0644 ${S}/scripts/getpstats.sh ${D}${sbindir}
> > +     install -m 0644 ${S}/scripts/gpstats.sh ${D}${sbindir}
> > +     install -m 0644 ${S}/scripts/sta_reset_parm ${D}${sbindir}
> > +     install -m 0644 ${S}/scripts/stoping.sh ${D}${sbindir}
> > +     install -m 0644 ${S}/scripts/updatepid.sh ${D}${sbindir}
> > +     install -m 0644 ${S}/scripts/wfaping6.sh ${D}${sbindir}
> > +     install -m 0644 ${S}/scripts/wfaping.sh ${D}${sbindir}
> > +     install -m 0644 ${S}/scripts/wfa_test_cli.sh ${D}${sbindir}
> > +}
>
> How about "install -m 0755 -D ${S}/scripts/*.sh ${D}${bindir}" for the
> scripts?
>
> [1]
>
> https://github.com/husqvarnagroup/smart-garden-gateway-yocto-meta-gardena/blob/master/recipes-wifi-alliance/wifi-testsuite/wifi-testsuite_git.bb
> [2] https://github.com/husqvarnagroup/smart-garden-gateway-public
> [3] https://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT/pull/42
> [4]
>
> https://github.com/husqvarnagroup/smart-garden-gateway-wifi-alliance-test-suite/compare/eb2799fbc28a2e5b309e2e85d0fa0b8e9cd0d100...master
> [5]
>
> https://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT/blob/master/lib/wfa_cs.c#L322
> [6]
>
> https://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT/blob/master/lib/wfa_cs.c#L2118
>
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] wifi-test-suite: Initial recipe for wifi test suite.
  2018-12-24 17:01   ` Ankit Navik
@ 2018-12-24 18:37     ` Ankit Navik
  0 siblings, 0 replies; 6+ messages in thread
From: Ankit Navik @ 2018-12-24 18:37 UTC (permalink / raw)
  To: Reto Schneider; +Cc: openembeded-devel

On Mon, Dec 24, 2018 at 10:31 PM Ankit Navik <ankit.tarot@gmail.com> wrote:

> Hi Schneider,
> Thank you for your valuable feedback.
>
> On Sun, Dec 23, 2018 at 9:52 PM Reto Schneider <code@reto-schneider.ch>
> wrote:
>
>> On 12/23/18 9:24 AM, Ankit Navik wrote:
>> > Add generic recipe for wifi test suite from wifi alliance.
>> > Suite is to support certification program development and device
>> certification.
>>
>> I did pretty much the same a few weeks ago [1] for a MIPS/musl based IoT
>> gateway [2] (DUT).
>>
>> What I learned:
>>  - You will need some patches for the makefiles [3]
>>
>
> You patch got failed when I tried to compile using
> bitbake wifi-test-suite -c compile -f
> CC ?= gcc --> I think, this is not required.
> It is better to use as implicit variable itself.
>

Sorry my bad, your patch is working. It was my mistake.

>
>  - When using musl, you will need something like this (parts of it) [4] too
>>  - If you are using the Busybox utils, those scripts will not work an
>> need to be adapted. Our Testhouse did do this for us, so I do not know
>> exactly what changes where needed.
>>
>> Let me check this and other comments as well.
>
> Regards, Ankit
>
>
>> > +do_compile () {
>> > +     oe_runmake
>> > +}
>>
>> Pretty sure this is not needed. My recipe at least does have this.
>>
>> > +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}
>>
>> I do not think that you need the static libraries.
>>
>> > +     install -d ${D}${sbindir}
>> > +     install -m 0755 ${S}/dut/wfa_dut ${D}${sbindir}
>> > +     install -m 0755 ${S}/ca/wfa_ca ${D}${sbindir}
>> > +     install -m 0755 ${S}/WTGService/WTG ${D}${sbindir}
>> > +     install -m 0755 ${S}/console_src/wfa_con ${D}${sbindir}
>> > +# Test scripts
>> > +     install -m 0644 ${S}/scripts/getipconfig.sh ${D}${sbindir} # Must
>> copy
>>
>> They have hard coded the path to this script [5][6]. You will need to
>> fix the installation location or their C code.
>>
>> > +     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/findprocess.sh ${D}${sbindir}
>> > +     install -m 0644 ${S}/scripts/getpid.sh ${D}${sbindir}
>> > +     install -m 0644 ${S}/scripts/getpstats.sh ${D}${sbindir}
>> > +     install -m 0644 ${S}/scripts/gpstats.sh ${D}${sbindir}
>> > +     install -m 0644 ${S}/scripts/sta_reset_parm ${D}${sbindir}
>> > +     install -m 0644 ${S}/scripts/stoping.sh ${D}${sbindir}
>> > +     install -m 0644 ${S}/scripts/updatepid.sh ${D}${sbindir}
>> > +     install -m 0644 ${S}/scripts/wfaping6.sh ${D}${sbindir}
>> > +     install -m 0644 ${S}/scripts/wfaping.sh ${D}${sbindir}
>> > +     install -m 0644 ${S}/scripts/wfa_test_cli.sh ${D}${sbindir}
>> > +}
>>
>> How about "install -m 0755 -D ${S}/scripts/*.sh ${D}${bindir}" for the
>> scripts?
>>
>> [1]
>>
>> https://github.com/husqvarnagroup/smart-garden-gateway-yocto-meta-gardena/blob/master/recipes-wifi-alliance/wifi-testsuite/wifi-testsuite_git.bb
>> [2] https://github.com/husqvarnagroup/smart-garden-gateway-public
>> [3] https://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT/pull/42
>> [4]
>>
>> https://github.com/husqvarnagroup/smart-garden-gateway-wifi-alliance-test-suite/compare/eb2799fbc28a2e5b309e2e85d0fa0b8e9cd0d100...master
>> [5]
>>
>> https://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT/blob/master/lib/wfa_cs.c#L322
>> [6]
>>
>> https://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT/blob/master/lib/wfa_cs.c#L2118
>>
>>
>> --
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>>
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-12-24 18:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-23  8:24 [PATCH] wifi-test-suite: Initial recipe for wifi test suite Ankit Navik
2018-12-23 16:06 ` Reto Schneider
2018-12-24 17:01   ` Ankit Navik
2018-12-24 18:37     ` Ankit Navik
2018-12-23 21:04 ` Khem Raj
2018-12-24 16:59   ` Ankit Navik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.