developer | 9037957 | 2024-05-29 17:23:20 +0800 | [diff] [blame^] | 1 | require ccsp_common_filogic.inc |
| 2 | |
| 3 | FILESEXTRAPATHS_prepend := "${THISDIR}/ccsp-wifi-agent:${THISDIR}/files:" |
| 4 | |
| 5 | DEPENDS_remove = " opensync-2.4.1" |
| 6 | DEPENDS_append = " opensync mesh-agent" |
| 7 | |
| 8 | CFLAGS_append = " -DWIFI_HAL_VERSION_3 -Wno-unused-function -DCONFIG_MBO" |
| 9 | LDFLAGS_append = " -ldl " |
| 10 | CFLAGS_remove = " -Wno-mismatched-dealloc -Wno-enum-conversion " |
| 11 | CFLAGS_append_aarch64 = " -Wno-error " |
| 12 | |
| 13 | SRC_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" |
| 21 | SYSTEMD_SERVICE_${PN} += " init-uci-config.service" |
| 22 | |
| 23 | do_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 | |
| 32 | FILES_${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 | |