blob: 95e20504b3a68f0818df1016492231486c45e2f6 [file] [log] [blame]
developer90379572024-05-29 17:23:20 +08001require ccsp_common_filogic.inc
2
3FILESEXTRAPATHS_prepend := "${THISDIR}/ccsp-wifi-agent:${THISDIR}/files:"
4
5DEPENDS_remove = " opensync-2.4.1"
6DEPENDS_append = " opensync mesh-agent"
7
8CFLAGS_append = " -DWIFI_HAL_VERSION_3 -Wno-unused-function -DCONFIG_MBO"
9LDFLAGS_append = " -ldl "
10CFLAGS_remove = " -Wno-mismatched-dealloc -Wno-enum-conversion "
11CFLAGS_append_aarch64 = " -Wno-error "
12
13SRC_URI += " \
14 file://checkonewifi.sh \
15 file://bridge_mode.sh \
16 file://onewifi_pre_start.sh \
17 file://mac80211.sh \
18 file://init-uci-config.service \
19"
20#SYSTEMD_AUTO_ENABLE_${PN} = "enable"
21SYSTEMD_SERVICE_${PN} += " init-uci-config.service"
22
23do_install_append(){
24 install -m 777 ${WORKDIR}/checkonewifi.sh ${D}/usr/ccsp/wifi/checkwifi.sh
25 install -m 777 ${WORKDIR}/bridge_mode.sh ${D}/usr/ccsp/wifi/
26 install -m 777 ${WORKDIR}/onewifi_pre_start.sh ${D}/usr/ccsp/wifi/
27 install -d ${D}${systemd_unitdir}/system/
28 install -m 0644 ${WORKDIR}/init-uci-config.service ${D}${systemd_unitdir}/system
29 install -m 777 ${WORKDIR}/mac80211.sh ${D}/usr/ccsp/wifi/
30}
31
32FILES_${PN} += " \
33 ${prefix}/ccsp/wifi/checkwifi.sh \
34 ${prefix}/ccsp/wifi/bridge_mode.sh \
35 ${prefix}/ccsp/wifi/onewifi_pre_start.sh \
36 ${prefix}/ccsp/wifi/mac80211.sh \
37 ${systemd_unitdir}/system/init-uci-config.service \
38 /usr/bin/wifi_events_consumer \
39"
40