blob: fdfd3381e12c8bc5ae1f1ae2089fdd5cf5ffc52c [file] [log] [blame]
developer90379572024-05-29 17:23:20 +08001FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
2SRC_URI_append_camera = " \
3 file://wpa_supplicant.service \
4 file://wpa_supplicant.conf \
5"
6SRC_URI_append_hybrid = " \
7 file://wpa_supplicant.service \
8 file://configure_wpa_supplicant.sh \
9"
10SRC_URI_append_client = " \
11 file://wpa_supplicant.service \
12 file://configure_wpa_supplicant.sh \
13"
14SRC_URI_append_extender = " file://wpa_supplicant-global.service"
15
16EXTRA_OEMAKE = "CONFIG_BUILD_WPA_CLIENT_SO=y"
17FILES_SOLIBSDEV = ""
18do_install_append () {
19 install -d ${D}${includedir}
20 install -d ${D}${libdir}
21 install -d ${D}/lib/rdk/
22
23 install -m 0777 ${S}/wpa_supplicant/libwpa_client.so ${D}${libdir}/
24 install -m 0644 ${S}/src/common/wpa_ctrl.h ${D}${includedir}/
25}
26
27do_install_append_camera() {
28 install -D -m 0644 ${WORKDIR}/wpa_supplicant.service ${D}/lib/systemd/system/wpa_supplicant.service
29 install -D -m 0644 ${WORKDIR}/wpa_supplicant.conf ${D}/etc/wpa_supplicant.conf
30}
31do_install_append_hybrid() {
32 install -D -m 0644 ${WORKDIR}/wpa_supplicant.service ${D}/lib/systemd/system/wpa_supplicant.service
33 install -D -m 0755 ${WORKDIR}/configure_wpa_supplicant.sh ${D}/lib/rdk/
34}
35do_install_append_client() {
36 install -D -m 0644 ${WORKDIR}/wpa_supplicant.service ${D}/lib/systemd/system/wpa_supplicant.service
37 install -D -m 0755 ${WORKDIR}/configure_wpa_supplicant.sh ${D}/lib/rdk/
38}
39
40do_install_append_extender () {
41 install -m 0755 ${WORKDIR}/wpa_supplicant-global.service ${D}${systemd_unitdir}/system/
42}
43
44FILES_${PN} += "${libdir}/libwpa_client.so"
45FILES_${PN} += "${includedir}/wpa_ctrl.h"
46
47FILES_${PN}_append_camera = " \
48 ${systemd_unitdir}/system/wpa_supplicant.service \
49 ${sysconfdir}/wpa_supplicant.conf \
50"
51FILES_${PN}_append_hybrid = " \
52 ${systemd_unitdir}/system/wpa_supplicant.service \
53 /lib/rdk/configure_wpa_supplicant.sh \
54"
55FILES_${PN}_append_client = " \
56 ${systemd_unitdir}/system/wpa_supplicant.service \
57 /lib/rdk/configure_wpa_supplicant.sh \
58"
59
60inherit systemd
61SYSTEMD_SERVICE_${PN}_camera = "wpa_supplicant.service"
62SYSTEMD_AUTO_ENABLE_camera = "enable"
63FILES_${PN}_append_camera += "${systemd_unitdir}/system/*"
64
65SYSTEMD_SERVICE_${PN}_hybrid = "wpa_supplicant.service"
66SYSTEMD_AUTO_ENABLE_hybrid = "enable"
67FILES_${PN}_append_hybrid += "${systemd_unitdir}/system/*"
68
69SYSTEMD_SERVICE_${PN}_client = "wpa_supplicant.service"
70SYSTEMD_AUTO_ENABLE_client = "enable"
71FILES_${PN}_append_client += "${systemd_unitdir}/system/*"
72
73SYSTEMD_SERVICE_${PN}_extender = "wpa_supplicant-global.service"
74SYSTEMD_AUTO_ENABLE_${PN}_extender = "enable"
75