Skip to content
Snippets Groups Projects
Commit ff3f528c authored by Stefan Schmidt's avatar Stefan Schmidt
Browse files

Merge branch 'stefan/wifi-initial' into 'kirkstone'

Initial support for Wi-Fi services

See merge request eclipse/oniro-oh/meta-openharmony!115
parents 38482a3e 94defaa3
No related branches found
No related tags found
No related merge requests found
[Unit]
Description=OpenHarmony Wi-Fi HAL service
[Service]
Type=exec
User=root
Group=root
SupplementaryGroups=shell
ExecStart=/usr/bin/wifi_hal_service
Restart=on-failure
StartLimitInterval=300
StartLimitBurst=5
[Install]
WantedBy=multi-user.target
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
[Unit]
Description=OpenHarmony Wi-Fi manager service (SA: 1125 1126 1127 1128)
Requires=samgr.service
After=samgr.service
[Service]
Type=notify
ExecStartPre=!install -o root -g root -m 0755 -d /data/dhcp
User=root
Group=root
SupplementaryGroups=shell
ExecStart=/usr/bin/sa_main /system/profile/wifi_manager_service.xml
Restart=on-failure
StartLimitInterval=300
StartLimitBurst=5
[Install]
WantedBy=multi-user.target
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
...@@ -11,7 +11,7 @@ diff --git a/uhdf2/ohos.build b/uhdf2/ohos.build ...@@ -11,7 +11,7 @@ diff --git a/uhdf2/ohos.build b/uhdf2/ohos.build
index f56e333..38db541 100644 index f56e333..38db541 100644
--- a/uhdf2/ohos.build --- a/uhdf2/ohos.build
+++ b/uhdf2/ohos.build +++ b/uhdf2/ohos.build
@@ -6,43 +6,17 @@ @@ -6,43 +6,25 @@
"//drivers/adapter/uhdf2/osal:libhdf_utils", "//drivers/adapter/uhdf2/osal:libhdf_utils",
"//drivers/adapter/uhdf2/ipc:libhdf_ipc_adapter", "//drivers/adapter/uhdf2/ipc:libhdf_ipc_adapter",
"//drivers/adapter/uhdf2/hdi:libhdi", "//drivers/adapter/uhdf2/hdi:libhdi",
...@@ -61,6 +61,14 @@ index f56e333..38db541 100644 ...@@ -61,6 +61,14 @@ index f56e333..38db541 100644
+ "module_list": [ + "module_list": [
+ "//drivers/peripheral/display/hal:hdi_display", + "//drivers/peripheral/display/hal:hdi_display",
+ "//device/hihope/hardware/display:display_gralloc" + "//device/hihope/hardware/display:display_gralloc"
+ ]
+ },
+ "wlan_device_driver": {
+ "module_list": [
+ "//drivers/peripheral/wlan/client:wifi_driver_client",
+ "//drivers/peripheral/wlan/hal:wifi_hal",
+ "//drivers/peripheral/wlan/hdi_service:wifi_hdi_device",
+ "//drivers/peripheral/wlan/hdi_service:wifi_hdi_c_device"
] ]
} }
} }
...@@ -361,6 +361,8 @@ OPENHARMONY_PARTS += "common:common" ...@@ -361,6 +361,8 @@ OPENHARMONY_PARTS += "common:common"
OPENHARMONY_PARTS += "communication:dsoftbus_standard" OPENHARMONY_PARTS += "communication:dsoftbus_standard"
OPENHARMONY_PARTS += "communication:ipc" OPENHARMONY_PARTS += "communication:ipc"
OPENHARMONY_PARTS += "communication:ipc_js" OPENHARMONY_PARTS += "communication:ipc_js"
OPENHARMONY_PARTS += "communication:wifi_standard"
OPENHARMONY_PARTS += "communication:wifi_native_js"
OPENHARMONY_PARTS += "developtools:bytrace_standard" OPENHARMONY_PARTS += "developtools:bytrace_standard"
OPENHARMONY_PARTS += "developtools:hdc_standard" OPENHARMONY_PARTS += "developtools:hdc_standard"
OPENHARMONY_PARTS += "distributeddatamgr:appdatamgr_jskits" OPENHARMONY_PARTS += "distributeddatamgr:appdatamgr_jskits"
...@@ -376,6 +378,7 @@ OPENHARMONY_PARTS += "global:resmgr_standard" ...@@ -376,6 +378,7 @@ OPENHARMONY_PARTS += "global:resmgr_standard"
OPENHARMONY_PARTS += "graphic:graphic_standard" OPENHARMONY_PARTS += "graphic:graphic_standard"
OPENHARMONY_PARTS += "hdf:hdf" OPENHARMONY_PARTS += "hdf:hdf"
OPENHARMONY_PARTS += "hdf:display_device_driver" OPENHARMONY_PARTS += "hdf:display_device_driver"
OPENHARMONY_PARTS += "hdf:wlan_device_driver"
OPENHARMONY_PARTS += "hiviewdfx:faultloggerd" OPENHARMONY_PARTS += "hiviewdfx:faultloggerd"
OPENHARMONY_PARTS += "hiviewdfx:hilog" OPENHARMONY_PARTS += "hiviewdfx:hilog"
OPENHARMONY_PARTS += "hiviewdfx:hilog_native" OPENHARMONY_PARTS += "hiviewdfx:hilog_native"
...@@ -409,6 +412,7 @@ OPENHARMONY_PARTS += "startup:startup_l2" ...@@ -409,6 +412,7 @@ OPENHARMONY_PARTS += "startup:startup_l2"
OPENHARMONY_PARTS += "telephony:core_service" OPENHARMONY_PARTS += "telephony:core_service"
OPENHARMONY_PARTS += "telephony:ril_adapter" OPENHARMONY_PARTS += "telephony:ril_adapter"
OPENHARMONY_PARTS += "utils:utils_base" OPENHARMONY_PARTS += "utils:utils_base"
OPENHARMONY_PARTS += "wpa_supplicant-2.9:wpa_supplicant-2.9"
OPENHARMONY_PARTS += "${@bb.utils.contains('DISTRO_FEATURES', 'acts', 'xts:phone_tests', '', d)}" OPENHARMONY_PARTS += "${@bb.utils.contains('DISTRO_FEATURES', 'acts', 'xts:phone_tests', '', d)}"
export XTS_SUITENAME = "${@bb.utils.contains('DISTRO_FEATURES', 'acts', 'acts', '', d)}" export XTS_SUITENAME = "${@bb.utils.contains('DISTRO_FEATURES', 'acts', 'acts', '', d)}"
...@@ -810,6 +814,40 @@ RDEPENDS:${PN}-dsoftbus-ptest += "musl libcxx" ...@@ -810,6 +814,40 @@ RDEPENDS:${PN}-dsoftbus-ptest += "musl libcxx"
RDEPENDS:${PN}-dsoftbus-ptest += "${PN}-dsoftbus ${PN}-hilog" RDEPENDS:${PN}-dsoftbus-ptest += "${PN}-dsoftbus ${PN}-hilog"
RDEPENDS:${PN}-ptest += "${PN}-dsoftbus-ptest" RDEPENDS:${PN}-ptest += "${PN}-dsoftbus-ptest"
# //foundation/communication/wifi
PACKAGES =+ "${PN}-wifi"
SYSTEMD_PACKAGES += "${PN}-wifi"
SYSTEMD_SERVICE:${PN}-wifi = "wifi_standard.service wifi_hal.service"
SRC_URI += "file://wifi_standard.service file://wifi_hal.service"
do_install:append() {
install -d ${D}/${systemd_unitdir}/system
install -m 644 ${WORKDIR}/wifi_standard.service ${D}${systemd_unitdir}/system/
install -m 644 ${WORKDIR}/wifi_hal.service ${D}${systemd_unitdir}/system/
rm -f ${D}${sysconfdir}/openharmony/init/wifi_standard.cfg
rm -f ${D}${sysconfdir}/openharmony/init/wifi_hal_service.cfg
}
FILES:${PN}-wifi = " \
${libdir}/libwifi*${SOLIBS} \
${libdir}/libdhcp_manager_service*${SOLIBS} \
${bindir}/dhcp_server \
${bindir}/dhcp_client_service \
${libdir}/openharmony/profile/wifi_manager_service.xml \
${bindir}/wifi_hal_service \
"
RDEPENDS:${PN} += "${PN}-wifi"
RDEPENDS:${PN}-wifi += "musl libcxx"
RDEPENDS:${PN}-wifi += "${PN}-samgr ${PN}-hilog ${PN}-libutils ${PN}-ipc ${PN}-safwk ${PN}-aafwk ${PN}-notification-ces ${PN}-appexecfwk"
RDEPENDS:${PN}-wifi += "${PN}-thirdparty-wpa-supplicant"
# //foundation/communication/wifi_native_js
PACKAGES =+ "${PN}-wifi-native-js"
FILES:${PN}-wifi-native-js = " \
${libdir}/module/libwifi_native_js*${SOLIBS} \
"
RDEPENDS:${PN} += "${PN}-wifi-native-js"
RDEPENDS:${PN}-wifi-native-js += "musl libcxx ${PN}-wifi"
RDEPENDS:${PN}-wifi-native-js += "${PN}-samgr ${PN}-hilog ${PN}-libutils ${PN}-ipc ${PN}-safwk ${PN}-aafwk ${PN}-notification-ces ${PN}-appexecfwk ${PN}-ace-napi"
# //foundation/distributedschedule/samgr # //foundation/distributedschedule/samgr
PACKAGES =+ "${PN}-samgr" PACKAGES =+ "${PN}-samgr"
FILES:${PN}-samgr = " \ FILES:${PN}-samgr = " \
...@@ -1187,6 +1225,24 @@ RDEPENDS:${PN}-peripheral-input += "musl libcxx" ...@@ -1187,6 +1225,24 @@ RDEPENDS:${PN}-peripheral-input += "musl libcxx"
RDEPENDS:${PN}-peripheral-input += "${PN}-hilog ${PN}-libutils ${PN}-uhdf2" RDEPENDS:${PN}-peripheral-input += "${PN}-hilog ${PN}-libutils ${PN}-uhdf2"
RDEPENDS:${PN} += "${PN}-peripheral-input" RDEPENDS:${PN} += "${PN}-peripheral-input"
# //drivers/peripheral/wlan
PACKAGES =+ "${PN}-peripheral-wlan"
do_install:append() {
install -m 644 ${B}/hdf/hdf/libwifi_driver_client.z.so ${D}${libdir}/
install -m 644 ${B}/hdf/hdf/libwifi_hal.z.so ${D}${libdir}/
install -m 644 ${B}/hdf/hdf/libwifi_hdi_c_device.z.so ${D}${libdir}/
install -m 644 ${B}/hdf/hdf/libwifi_hdi_device.z.so ${D}${libdir}/
}
FILES:${PN}-peripheral-wlan = " \
${libdir}/libwifi_driver_client*${SOLIBS} \
${libdir}/libwifi_hal*${SOLIBS} \
${libdir}/libwifi_hdi_c_device*${SOLIBS} \
${libdir}/libwifi_hdi_device*${SOLIBS} \
"
RDEPENDS:${PN}-peripheral-wlan += "musl libcxx"
RDEPENDS:${PN}-peripheral-wlan += "${PN}-hilog ${PN}-libutils ${PN}-uhdf2 ${PN}-ipc"
RDEPENDS:${PN} += "${PN}-peripheral-wlan"
# //base/miscservices/time # //base/miscservices/time
PACKAGES =+ "${PN}-timeservice" PACKAGES =+ "${PN}-timeservice"
SYSTEMD_PACKAGES += "${PN}-timeservice" SYSTEMD_PACKAGES += "${PN}-timeservice"
...@@ -2042,6 +2098,17 @@ RDEPENDS:${PN}-thirdparty-weston += "${PN}-hilog ${PN}-libutils ${PN}-thirdparty ...@@ -2042,6 +2098,17 @@ RDEPENDS:${PN}-thirdparty-weston += "${PN}-hilog ${PN}-libutils ${PN}-thirdparty
RDEPENDS:${PN}-thirdparty-weston += "${PN}-thirdparty-libinput ${PN}-thirdparty-libevdev ${PN}-thirdparty-eudev ${PN}-thirdparty-pixman ${PN}-display-gralloc" RDEPENDS:${PN}-thirdparty-weston += "${PN}-thirdparty-libinput ${PN}-thirdparty-libevdev ${PN}-thirdparty-eudev ${PN}-thirdparty-pixman ${PN}-display-gralloc"
RDEPENDS:${PN} += "${PN}-thirdparty-weston" RDEPENDS:${PN} += "${PN}-thirdparty-weston"
PACKAGES =+ "${PN}-thirdparty-wpa-supplicant"
FILES:${PN}-thirdparty-wpa-supplicant = " \
${bindir}/hostapd \
${bindir}/wpa_cli \
${bindir}/wpa_supplicant \
${libdir}/libwpa*${SOLIBS} \
"
RDEPENDS:${PN}-thirdparty-wpa-supplicant += "musl libcxx"
RDEPENDS:${PN}-thirdparty-wpa-supplicant += "${PN}-peripheral-wlan"
RDEPENDS:${PN} += "${PN}-thirdparty-wpa-supplicant"
# Disable all ptest suites that are know to not work for now. When the x-bit is # Disable all ptest suites that are know to not work for now. When the x-bit is
# not set, the ptest is visible (using `ptest-runner -l`), but no test cases # not set, the ptest is visible (using `ptest-runner -l`), but no test cases
# will be run when executing it. # will be run when executing it.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment