diff --git a/hm-git-patch/build/lite/components/communication.json b/hm-git-patch/build/lite/components/communication.json new file mode 100755 index 0000000000000000000000000000000000000000..4188f6699966d4ba3636d929f7c1c0e831aee6eb --- /dev/null +++ b/hm-git-patch/build/lite/components/communication.json @@ -0,0 +1,206 @@ +{ + "components": [ + { + "component": "ipc_lite", + "description": "Lite interprosses communication.", + "optional": "true", + "dirs": [ + "foundation/communication/ipc_lite" + ], + "targets": [ + "//foundation/communication/ipc_lite:liteipc_adapter" + ], + "rom": "", + "ram": "", + "output": [ "libliteipc_adapter.so" ], + "adapted_kernel": [ + "liteos_a", + "linux" + ], + "features": [], + "deps": { + "third_party": [ + "bounds_checking_function" + ], + "components": [ + "hilog", + "utils_base" + ] + } + }, + { + "component": "softbus_lite", + "description": "", + "optional": "true", + "dirs": [ + "foundation/communication/softbus_lite" + ], + "targets": [ + "//foundation/communication/softbus_lite:softbus" + ], + "rom": "", + "ram": "", + "output": [ + "softbus_lite.so", + "discovery.a" + ], + "adapted_kernel": [ + "liteos_a", + "linux", + "liteos_m" + ], + "features": [], + "deps": { + "third_party": [ + "mbedtls", + "bounds_checking_function", + "cjson", + "wpa_supplicant" + ], + "kernel_special": {}, + "board_special": {}, + "components": [ + "hichainsdk", + "syspara_lite", + "permission" + ] + } + }, + { + "component": "dsoftbus", + "description": "dsoftbus open sources software", + "optional": "true", + "dirs": [ + "foundation/communication/dsoftbus" + ], + "targets": [ + "//foundation/communication/dsoftbus:dsoftbus" + ], + "rom": "1.92M", + "ram": "", + "output": [ + "libsoftbus_client_frame.z.so", + "libsoftbus_server.z.so" + ], + "adapted_kernel": [ + "liteos_a", + "linux", + "liteos_m" + ], + "features": [], + "deps": { + "third_party": [ + "mbedtls", + "bounds_checking_function", + "cjson", + "wpa_supplicant" + ], + "kernel_special": {}, + "board_special": {}, + "components": [ + "hichainsdk", + "syspara_lite", + "permission" + ] + } + }, + { + "component": "wpa_supplicant", + "description": "WPA supplicant open sources software.", + "optional": "true", + "dirs": [ + "third_party/wpa_supplicant" + ], + "targets": [ + "//third_party/wpa_supplicant/wpa_supplicant-2.9:wpa_supplicant" + ], + "rom": "", + "ram": "", + "output": [ "wpa_supplicant.so" ], + "adapted_kernel": [ "liteos_a", "linux" ], + "features": [], + "deps": { + "third_party": [], + "kernel_special": {}, + "board_special": {}, + "components": ["peripheral_wlan"] + } + }, + { + "component": "wifi_lite", + "description": "Wifi service based on liteos-m and linux.", + "optional": "true", + "dirs": [ + "foundation/communication/wifi_lite" + ], + "targets": [ + "//foundation/communication/wifi_lite:wifi" + ], + "rom": "", + "ram": "", + "output": [ ], + "adapted_kernel": [ "liteos_m", "linux" ], + "features": [], + "deps": { + "third_party": [ + "wpa_supplicant", + "bounds_checking_function" + ], + "kernel_special": {}, + "board_special": {}, + "components": [ + "samgr_lite", + "drivers_framework", + "adapter_uhdf", + "peripheral_wlan" + ] + } + }, + { + "component": "wifi_aware", + "description": "WiFi Aware", + "optional": "true", + "dirs": [ + "foundation/communication/wifi_aware" + ], + "targets": [ + "//foundation/communication/wifi_aware:wifiaware" + ], + "rom": "", + "ram": "", + "output": [ ], + "adapted_kernel": [ "liteos_m" ], + "features": [], + "deps": { + "components": [ + ], + "third_party": [] + } + }, + { + "component": "bluetooth", + "description": "bt service based on linux.", + "optional": "true", + "dirs": [ + "foundation/communication/bluetooth" + ], + "targets": [ + "//foundation/communication/bluetooth:bluetooth" + ], + "rom": "", + "ram": "", + "output": [ ], + "adapted_kernel": [ "liteos_m", "linux" ], + "features": [], + "deps": { + "third_party": [ + "bounds_checking_function" + ], + "kernel_special": {}, + "board_special": {}, + "components": [ + ] + } + } + ] +} diff --git a/hm-git-patch/foundation/communication/bluetooth/BUILD.gn b/hm-git-patch/foundation/communication/bluetooth/BUILD.gn new file mode 100755 index 0000000000000000000000000000000000000000..91a766d3678e56bbaba0212079a93a84aff0e329 --- /dev/null +++ b/hm-git-patch/foundation/communication/bluetooth/BUILD.gn @@ -0,0 +1,18 @@ +#Copyright (c) 2020 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//build/lite/config/component/lite_component.gni") + +lite_component("bluetooth") { + features = [ "$ohos_vendor_adapter_dir/hals/communication/bluetooth:btservice" ] +} diff --git a/hm-git-patch/foundation/communication/ipc_lite/BUILD.gn b/hm-git-patch/foundation/communication/ipc_lite/BUILD.gn new file mode 100755 index 0000000000000000000000000000000000000000..9ad60072697a179db75caac6bbb7682775f3e00c --- /dev/null +++ b/hm-git-patch/foundation/communication/ipc_lite/BUILD.gn @@ -0,0 +1,78 @@ +# Copyright (c) 2020 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//build/lite/config/component/lite_component.gni") +import("//build/lite/ndk/ndk.gni") + +if (ohos_kernel_type == "liteos_a") { + shared_library("liteipc_adapter") { + sources = [ + "frameworks/liteipc/src/liteipc_adapter.c", + "frameworks/liteipc/src/serializer.c", + ] + cflags = [ "-fPIC" ] + cflags += [ "-Wall" ] + ldflags = [ "-lrt" ] + cflags_cc = cflags + public_configs = [ ":liteipc_external_library_config" ] + include_dirs = [ + "frameworks/liteipc/include", + "//third_party/bounds_checking_function/include", + ] + public_deps = [ "//third_party/bounds_checking_function/:libsec_shared" ] + deps = [ "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared" ] + } + config("liteipc_external_library_config") { + include_dirs = [ + "//foundation/communication/ipc_lite/interfaces/kits", + "//utils/native/lite/include", + ] + } +} else { + shared_library("liteipc_adapter") { + sources = [ + "frameworks/liteipc/src/serializer.c", + "frameworks/liteipc_linux/src/liteipc_adapter.c", + ] + public_configs = [ ":liteipc_external_library_config" ] + include_dirs = [ + "frameworks/liteipc_linux/include", + "frameworks/liteipc/include", + "//third_party/bounds_checking_function/include", + ] + ldflags = [ + "-lstdc++", + "-lpthread", + "-lrt", + ] + deps = [ "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared" ] + public_deps = [ "//third_party/bounds_checking_function/:libsec_shared" ] + defines = [ "LITE_LINUX_BINDER_IPC" ] + } + config("liteipc_external_library_config") { + include_dirs = [ + "//foundation/communication/ipc_lite/interfaces/kits", + "//utils/native/lite/include", + ] + } +} + +lite_component("liteipc") { + features = [ ":liteipc_adapter" ] +} + +ndk_lib("liteipc_ndk") { + lib_extension = ".so" + deps = [ ":liteipc_adapter" ] + head_files = [ "//foundation/communication/ipc_lite/interfaces/kits" ] +} diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000000000000000000000000000000000000..30e51ef1098b7918477951fadd581fa2114b02af --- /dev/null +++ b/readme.txt @@ -0,0 +1,3 @@ +执行hm-ingenic.sh,就可以下载代码,下载的代码OpenHarmony-2.2-Beta2按照hm-git-patch目录打patch即可编译通过。 +hm-git-patch这个patch做的修改已经提交issue和pull +request到https://gitee.com/openharmony,需要华为合入主分支,等主分支合入后,这个hm-git-patch就不需要了。