blob: 50229f80781e7f467c14ea000e881684f7feaa4c [file] [log] [blame]
developerb9b4cd12022-10-11 13:18:59 +08001DESCRIPTION = "testmode daemon for nl80211"
2SECTION = "applications"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
5
6DEPENDS += "libnl-tiny"
developer8bd3e5a2023-03-02 17:10:52 +08007RDEPENDS_${PN} += "bash"
developerb9b4cd12022-10-11 13:18:59 +08008inherit pkgconfig cmake
9
10SRC_URI = " \
11 file://COPYING;subdir=git/src \
12 file://src;subdir=git \
13 file://ated.sh;subdir=git \
14 file://iwpriv.sh;subdir=git \
developer8bd3e5a2023-03-02 17:10:52 +080015 file://001-RDKB-ash-to-bash.patch;apply=no \
developerb9b4cd12022-10-11 13:18:59 +080016 "
17
18S = "${WORKDIR}/git/src"
19
20CFLAGS_append = " -I=${includedir}/libnl-tiny "
21
developer8bd3e5a2023-03-02 17:10:52 +080022do_mtk_patches() {
23 cd ${S}/../
24
25 if [ ! -e mtk_wifi_patch_applied ]; then
26 patch -p1 < ${WORKDIR}/001-RDKB-ash-to-bash.patch
27 fi
28 touch mtk_wifi_patch_applied
29}
30addtask mtk_patches after do_patch before do_configure
developerb9b4cd12022-10-11 13:18:59 +080031
32do_install_append() {
33 install -d ${D}${sbindir}
34 install -m 0755 ${WORKDIR}/git/ated.sh ${D}${sbindir}/ated
35 install -m 0755 ${WORKDIR}/git/iwpriv.sh ${D}${sbindir}/iwpriv
developer69410122023-01-13 16:28:41 +080036 install -m 0755 ${WORKDIR}/git/iwpriv.sh ${D}${sbindir}/mwctl
developerb9b4cd12022-10-11 13:18:59 +080037}
38