developer | 9037957 | 2024-05-29 17:23:20 +0800 | [diff] [blame^] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" |
| 2 | SRC_URI_append_camera = " \ |
| 3 | file://wpa_supplicant.service \ |
| 4 | file://wpa_supplicant.conf \ |
| 5 | " |
| 6 | SRC_URI_append_hybrid = " \ |
| 7 | file://wpa_supplicant.service \ |
| 8 | file://configure_wpa_supplicant.sh \ |
| 9 | " |
| 10 | SRC_URI_append_client = " \ |
| 11 | file://wpa_supplicant.service \ |
| 12 | file://configure_wpa_supplicant.sh \ |
| 13 | " |
| 14 | SRC_URI_append_extender = " file://wpa_supplicant-global.service" |
| 15 | |
| 16 | EXTRA_OEMAKE = "CONFIG_BUILD_WPA_CLIENT_SO=y" |
| 17 | FILES_SOLIBSDEV = "" |
| 18 | do_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 | |
| 27 | do_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 | } |
| 31 | do_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 | } |
| 35 | do_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 | |
| 40 | do_install_append_extender () { |
| 41 | install -m 0755 ${WORKDIR}/wpa_supplicant-global.service ${D}${systemd_unitdir}/system/ |
| 42 | } |
| 43 | |
| 44 | FILES_${PN} += "${libdir}/libwpa_client.so" |
| 45 | FILES_${PN} += "${includedir}/wpa_ctrl.h" |
| 46 | |
| 47 | FILES_${PN}_append_camera = " \ |
| 48 | ${systemd_unitdir}/system/wpa_supplicant.service \ |
| 49 | ${sysconfdir}/wpa_supplicant.conf \ |
| 50 | " |
| 51 | FILES_${PN}_append_hybrid = " \ |
| 52 | ${systemd_unitdir}/system/wpa_supplicant.service \ |
| 53 | /lib/rdk/configure_wpa_supplicant.sh \ |
| 54 | " |
| 55 | FILES_${PN}_append_client = " \ |
| 56 | ${systemd_unitdir}/system/wpa_supplicant.service \ |
| 57 | /lib/rdk/configure_wpa_supplicant.sh \ |
| 58 | " |
| 59 | |
| 60 | inherit systemd |
| 61 | SYSTEMD_SERVICE_${PN}_camera = "wpa_supplicant.service" |
| 62 | SYSTEMD_AUTO_ENABLE_camera = "enable" |
| 63 | FILES_${PN}_append_camera += "${systemd_unitdir}/system/*" |
| 64 | |
| 65 | SYSTEMD_SERVICE_${PN}_hybrid = "wpa_supplicant.service" |
| 66 | SYSTEMD_AUTO_ENABLE_hybrid = "enable" |
| 67 | FILES_${PN}_append_hybrid += "${systemd_unitdir}/system/*" |
| 68 | |
| 69 | SYSTEMD_SERVICE_${PN}_client = "wpa_supplicant.service" |
| 70 | SYSTEMD_AUTO_ENABLE_client = "enable" |
| 71 | FILES_${PN}_append_client += "${systemd_unitdir}/system/*" |
| 72 | |
| 73 | SYSTEMD_SERVICE_${PN}_extender = "wpa_supplicant-global.service" |
| 74 | SYSTEMD_AUTO_ENABLE_${PN}_extender = "enable" |
| 75 | |