/
wifi-testsuite_git.bb
43 lines (36 loc) · 1.3 KB
/
wifi-testsuite_git.bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
SUMMARY = "Wi-Fi Test Suite Linux Control Agent"
LICENSE = "ISC"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=0542427ed5c315ca34aa09ae7a85ed32"
SRC_URI = " \
git://stash.dss.husqvarnagroup.com:7999/sg/smart-garden-gateway-wifi-alliance-test-suite.git;protocol=ssh \
file://eth0.network.disabled \
file://wifi-testsuite-install.sh \
"
PR = "r4"
PV = "10.10.1+git${SRCPV}"
SRCREV = "63cd320851e875ee278a4b019b9ad537104cc21b"
DEPENDS = "libtirpc"
# procps supports the arguments 'a' and 'x' which are used by WTS
RDEPENDS_${PN} = "\
procps \
wpa-supplicant-cli \
"
S = "${WORKDIR}/git"
FILES_${PN} += "\
/usr/local/sbin/ \
${systemd_unitdir}/network \
"
do_install () {
install -d ${D}${bindir}
install -m 0755 ${S}/ca/wfa_ca ${D}${bindir}
install -m 0755 ${S}/dut/wfa_dut ${D}${bindir}
install -m 0755 ${WORKDIR}/wifi-testsuite-install.sh ${D}${bindir}/wifi-testsuite-install
install -m 0755 -D ${S}/scripts/*.sh ${D}${bindir}
# Workaround for the hardcoded paths
install -d ${D}/usr/local/sbin
ln -s ${bindir}/getipconfig.sh ${D}/usr/local/sbin/
ln -s ${bindir}/findprocess.sh ${D}/usr/local/sbin/
# Configure static address on eth0
install -d 0755 ${D}${systemd_unitdir}/network
install -m 0644 ${WORKDIR}/eth0.network.disabled ${D}${systemd_unitdir}/network
}