developer | 9037957 | 2024-05-29 17:23:20 +0800 | [diff] [blame^] | 1 | SRC_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 | |
| 5 | SRCREV_wifihal-raspberrypi = "${AUTOREV}" |
| 6 | |
| 7 | DEPENDS +=" libev wpa-supplicant" |
| 8 | DEPENDS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'OneWifi', ' rdk-wifi-hal', '', d)}" |
| 9 | LDFLAGS_append = " -lev -lwpa_client -lpthread" |
| 10 | |
| 11 | do_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 | |
| 23 | do_install_append(){ |
| 24 | install -d ${D}/usr/bin |
| 25 | install -m 777 ${B}/wifihal ${D}/usr/bin/ |
| 26 | } |
| 27 | |
| 28 | CFLAGS_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'extender', '-D_RPI_EXTENDER_', '', d)}" |
| 29 | CFLAGS_append = " -DWIFI_HAL_VERSION_3 " |
| 30 | CFLAGS_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'OneWifi', ' -D_ONE_WIFI_ ', '', d)}" |
| 31 | |
| 32 | RDEPENDS_${PN} += "wpa-supplicant" |
| 33 | |