blob: a140ae58124097c6dd7ac14b218b0e925ab5d6f7 [file] [log] [blame]
developer90379572024-05-29 17:23:20 +08001SRC_URI_append = " \
2 ${CMF_GIT_ROOT}/rdkb/devices/raspberrypi/hal;protocol=${CMF_GIT_PROTOCOL};branch=${CMF_GIT_BRANCH};destsuffix=git/source/wifi/devices_rpi;name=wifihal-raspberrypi \
3"
4
5SRCREV_wifihal-raspberrypi = "${AUTOREV}"
6
7DEPENDS +=" libev wpa-supplicant"
8DEPENDS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'OneWifi', ' rdk-wifi-hal', '', d)}"
9LDFLAGS_append = " -lev -lwpa_client -lpthread"
10
11do_configure_prepend(){
12 rm ${S}/wifi_hal.c
13 rm ${S}/Makefile.am
14 ln -sf ${S}/devices_rpi/source/wifi/wifi_hal.c ${S}/wifi_hal.c
15 ln -sf ${S}/devices_rpi/source/wifi/client_wifi_hal.c ${S}/client_wifi_hal.c
16 ln -sf ${S}/devices_rpi/source/wifi/wifi_hostapd_interface.c ${S}/wifi_hostapd_interface.c
17 ln -sf ${S}/devices_rpi/source/wifi/rpi_wifi_hal_assoc_devices_details.c ${S}/rpi_wifi_hal_assoc_devices_details.c
18 ln -sf ${S}/devices_rpi/source/wifi/rpi_wifi_hal_version_3.c ${S}/rpi_wifi_hal_version_3.c
19 ln -sf ${S}/devices_rpi/source/wifi/wifi_hal_rpi.h ${S}/wifi_hal_rpi.h
20 ln -sf ${S}/devices_rpi/source/wifi/Makefile.am ${S}/Makefile.am
21}
22
23do_install_append(){
24 install -d ${D}/usr/bin
25 install -m 777 ${B}/wifihal ${D}/usr/bin/
26}
27
28CFLAGS_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'extender', '-D_RPI_EXTENDER_', '', d)}"
29CFLAGS_append = " -DWIFI_HAL_VERSION_3 "
30CFLAGS_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'OneWifi', ' -D_ONE_WIFI_ ', '', d)}"
31
32RDEPENDS_${PN} += "wpa-supplicant"
33