Compare commits
12 Commits
a10775c300
...
a8f4c0d892
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a8f4c0d892 | ||
|
|
a14497b3ff | ||
|
|
f3b1bccee8 | ||
|
|
00f9bedc6e | ||
|
|
deb4085b13 | ||
|
|
8fcd9d9094 | ||
|
|
9790647a6d | ||
|
|
ae43b13993 | ||
|
|
9f2a9ecd35 | ||
|
|
62dd893130 | ||
|
|
cfb7ce9a37 | ||
|
|
4f51800b9c |
@ -1,7 +1,7 @@
|
|||||||
From 15e2ccf02e15fd6e9ea0e8f86b013ff49b8533e5 Mon Sep 17 00:00:00 2001
|
From 618550c53de305101d2bd0946839aa6e57c86e96 Mon Sep 17 00:00:00 2001
|
||||||
From: heppen <hepeng68@huawei.com>
|
From: heppen <hepeng68@huawei.com>
|
||||||
Date: Tue, 26 Sep 2023 17:22:20 +0800
|
Date: Wed, 20 Dec 2023 18:54:05 +0800
|
||||||
Subject: [PATCH] adapt compilation for softbus_client
|
Subject: [PATCH] adapt compilation for softbus client
|
||||||
|
|
||||||
---
|
---
|
||||||
adapter/BUILD.gn | 2 +-
|
adapter/BUILD.gn | 2 +-
|
||||||
@ -22,11 +22,10 @@ Subject: [PATCH] adapt compilation for softbus_client
|
|||||||
core/authentication/src/auth_session_key.c | 2 +-
|
core/authentication/src/auth_session_key.c | 2 +-
|
||||||
.../lane_manager/src/lnn_lane_link_proc.c | 2 +-
|
.../lane_manager/src/lnn_lane_link_proc.c | 2 +-
|
||||||
.../lane_manager/src/lnn_select_rule.c | 2 +-
|
.../lane_manager/src/lnn_select_rule.c | 2 +-
|
||||||
.../net_buscenter/src/lnn_network_manager.c | 2 +-
|
|
||||||
core/common/include/softbus_def.h | 4 +-
|
core/common/include/softbus_def.h | 4 +-
|
||||||
core/common/message_handler/message_handler.c | 8 -
|
core/common/message_handler/message_handler.c | 8 -
|
||||||
.../standard/softbus_permission.cpp | 151 +++++-----
|
.../standard/softbus_permission.cpp | 151 +++++-----
|
||||||
.../softbus_property/softbus_feature_config.c | 6 +-
|
.../softbus_property/softbus_feature_config.c | 4 +-
|
||||||
.../common/src/softbus_thread_pool.c | 3 +-
|
.../common/src/softbus_thread_pool.c | 3 +-
|
||||||
core/frame/BUILD.gn | 6 +-
|
core/frame/BUILD.gn | 6 +-
|
||||||
.../src/permission_status_change_cb.cpp | 18 +-
|
.../src/permission_status_change_cb.cpp | 18 +-
|
||||||
@ -34,7 +33,7 @@ Subject: [PATCH] adapt compilation for softbus_client
|
|||||||
.../standard/init/src/softbus_server_stub.cpp | 137 ++++-----
|
.../standard/init/src/softbus_server_stub.cpp | 137 ++++-----
|
||||||
.../tcp_direct/src/trans_tcp_direct_manager.c | 2 +-
|
.../tcp_direct/src/trans_tcp_direct_manager.c | 2 +-
|
||||||
.../tcp_direct/src/trans_tcp_direct_wifi.c | 2 +-
|
.../tcp_direct/src/trans_tcp_direct_wifi.c | 2 +-
|
||||||
30 files changed, 458 insertions(+), 331 deletions(-)
|
29 files changed, 456 insertions(+), 329 deletions(-)
|
||||||
create mode 100644 core/authentication/include/auth_config.h
|
create mode 100644 core/authentication/include/auth_config.h
|
||||||
create mode 100644 core/authentication/src/auth_config.c
|
create mode 100644 core/authentication/src/auth_config.c
|
||||||
|
|
||||||
@ -715,19 +714,6 @@ index 79712a6..ec66978 100644
|
|||||||
|
|
||||||
#define LNN_LINK_DEFAULT_SCORE 60 /* Indicates that scoring is not supported */
|
#define LNN_LINK_DEFAULT_SCORE 60 /* Indicates that scoring is not supported */
|
||||||
|
|
||||||
diff --git a/core/bus_center/lnn/net_buscenter/src/lnn_network_manager.c b/core/bus_center/lnn/net_buscenter/src/lnn_network_manager.c
|
|
||||||
index 91856d8..36ea248 100644
|
|
||||||
--- a/core/bus_center/lnn/net_buscenter/src/lnn_network_manager.c
|
|
||||||
+++ b/core/bus_center/lnn/net_buscenter/src/lnn_network_manager.c
|
|
||||||
@@ -34,7 +34,7 @@
|
|
||||||
#define LNN_DELIMITER_INSIDE ":"
|
|
||||||
|
|
||||||
#define LNN_DEFAULT_IF_NAME_WLAN "wlan0"
|
|
||||||
-#define LNN_DEFAULT_IF_NAME_ETH "eth0"
|
|
||||||
+#define LNN_DEFAULT_IF_NAME_ETH "enp7s0"
|
|
||||||
#define LNN_DEFAULT_IF_NAME_BR "br0"
|
|
||||||
#define LNN_DEFAULT_IF_NAME_BLE "ble0"
|
|
||||||
|
|
||||||
diff --git a/core/common/include/softbus_def.h b/core/common/include/softbus_def.h
|
diff --git a/core/common/include/softbus_def.h b/core/common/include/softbus_def.h
|
||||||
index 2edb7f5..a34aa50 100644
|
index 2edb7f5..a34aa50 100644
|
||||||
--- a/core/common/include/softbus_def.h
|
--- a/core/common/include/softbus_def.h
|
||||||
@ -972,7 +958,7 @@ index e2b3ac7..5016dec 100644
|
|||||||
+ return SOFTBUS_OK;
|
+ return SOFTBUS_OK;
|
||||||
}
|
}
|
||||||
diff --git a/core/common/softbus_property/softbus_feature_config.c b/core/common/softbus_property/softbus_feature_config.c
|
diff --git a/core/common/softbus_property/softbus_feature_config.c b/core/common/softbus_property/softbus_feature_config.c
|
||||||
index 442c8e0..6fc5cd7 100644
|
index 442c8e0..6bf83a7 100644
|
||||||
--- a/core/common/softbus_property/softbus_feature_config.c
|
--- a/core/common/softbus_property/softbus_feature_config.c
|
||||||
+++ b/core/common/softbus_property/softbus_feature_config.c
|
+++ b/core/common/softbus_property/softbus_feature_config.c
|
||||||
@@ -39,10 +39,10 @@
|
@@ -39,10 +39,10 @@
|
||||||
@ -988,15 +974,6 @@ index 442c8e0..6fc5cd7 100644
|
|||||||
#define LNN_SUPPORT_CAPBILITY 62
|
#define LNN_SUPPORT_CAPBILITY 62
|
||||||
#define AUTH_ABILITY_COLLECTION 0
|
#define AUTH_ABILITY_COLLECTION 0
|
||||||
#define ADAPTER_LOG_LEVEL 0
|
#define ADAPTER_LOG_LEVEL 0
|
||||||
@@ -50,7 +50,7 @@
|
|
||||||
#define DEFAULT_STORAGE_PATH "/data/service/el1/public"
|
|
||||||
#endif
|
|
||||||
#define LNN_UDID_INIT_DELAY_LEN 1000
|
|
||||||
-#define LNN_NET_IF_NAME "0:eth0,1:wlan0,2:br0,3:ble0"
|
|
||||||
+#define LNN_NET_IF_NAME "0:enp7s0,1:wlan0,2:br0,3:ble0"
|
|
||||||
#define LNN_MAX_CONCURENT_NUM 2
|
|
||||||
#define DEFAULT_DISC_FREQ_LOW ((5 << 16) | 12)
|
|
||||||
#define DEFAULT_DISC_FREQ_MID ((5 << 16) | 24)
|
|
||||||
diff --git a/core/connection/common/src/softbus_thread_pool.c b/core/connection/common/src/softbus_thread_pool.c
|
diff --git a/core/connection/common/src/softbus_thread_pool.c b/core/connection/common/src/softbus_thread_pool.c
|
||||||
index 854cfbb..71dad93 100644
|
index 854cfbb..71dad93 100644
|
||||||
--- a/core/connection/common/src/softbus_thread_pool.c
|
--- a/core/connection/common/src/softbus_thread_pool.c
|
||||||
|
|||||||
@ -7,9 +7,12 @@
|
|||||||
%global binder_dest_path /usr/lib/modules/%(uname -r)/binder
|
%global binder_dest_path /usr/lib/modules/%(uname -r)/binder
|
||||||
%global ashmem_dest_path /usr/lib/modules/%(uname -r)/ashmem
|
%global ashmem_dest_path /usr/lib/modules/%(uname -r)/ashmem
|
||||||
|
|
||||||
|
%define with_ashmem 0
|
||||||
|
%define with_install_ko 0
|
||||||
|
|
||||||
Name: communication_ipc
|
Name: communication_ipc
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
Release: 1%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: Inter-process communication (IPC) and Remote Procedure Call (RPC)
|
Summary: Inter-process communication (IPC) and Remote Procedure Call (RPC)
|
||||||
License: Apache-2.0 and GPL-2.0
|
License: Apache-2.0 and GPL-2.0
|
||||||
URL: https://gitee.com/openharmony/communication_ipc
|
URL: https://gitee.com/openharmony/communication_ipc
|
||||||
@ -82,6 +85,9 @@ mv %{third_party_path}/third_party_mbedtls-%{oh_version} %{third_party_path}/mbe
|
|||||||
%setup -q -D -T -a 6 -c -n %{_builddir}
|
%setup -q -D -T -a 6 -c -n %{_builddir}
|
||||||
%patch -P3 -p1 -d %{_builddir}/binder
|
%patch -P3 -p1 -d %{_builddir}/binder
|
||||||
|
|
||||||
|
%setup -q -D -T -a 16 -c -n %{_builddir}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
@ -96,8 +102,10 @@ mv %{third_party_path}/third_party_mbedtls-%{oh_version} %{third_party_path}/mbe
|
|||||||
cd %{_builddir}/binder
|
cd %{_builddir}/binder
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%if 0%{?with_ashmem}
|
||||||
cd %{_builddir}/ashmem/src
|
cd %{_builddir}/ashmem/src
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d -m 0755 %{buildroot}/%{_includedir}/ipc
|
install -d -m 0755 %{buildroot}/%{_includedir}/ipc
|
||||||
@ -173,9 +181,11 @@ install -m 0755 %{SOURCE15} %{buildroot}/%{build_opt}/openeuler/compiler_gn/foun
|
|||||||
install -d %{buildroot}/%{binder_dest_path}/
|
install -d %{buildroot}/%{binder_dest_path}/
|
||||||
install -d %{buildroot}/%{ashmem_dest_path}/
|
install -d %{buildroot}/%{ashmem_dest_path}/
|
||||||
install -m 0755 %{_builddir}/binder/binder_linux.ko %{buildroot}/%{binder_dest_path}/
|
install -m 0755 %{_builddir}/binder/binder_linux.ko %{buildroot}/%{binder_dest_path}/
|
||||||
|
%if 0%{?with_ashmem}
|
||||||
install -m 0755 %{_builddir}/ashmem/src/ashmem_linux.ko %{buildroot}/%{ashmem_dest_path}/
|
install -m 0755 %{_builddir}/ashmem/src/ashmem_linux.ko %{buildroot}/%{ashmem_dest_path}/
|
||||||
|
%endif
|
||||||
mkdir -p %{buildroot}/usr/share/pp
|
mkdir -p %{buildroot}/usr/share/pp
|
||||||
cp -pdf %{_builddir}/binder.pp %{buildroot}/usr/share/pp
|
install -m 0755 %{SOURCE17} %{buildroot}/usr/share/pp/binder.pp
|
||||||
|
|
||||||
#create soft link
|
#create soft link
|
||||||
ln -s /usr/mbedtls/include %{buildroot}%{build_opt}/openeuler/compiler_gn/third_party/mbedtls/include
|
ln -s /usr/mbedtls/include %{buildroot}%{build_opt}/openeuler/compiler_gn/third_party/mbedtls/include
|
||||||
@ -197,14 +207,32 @@ ln -s /usr/include/dsoftbus %{buildroot}%{build_opt}/openeuler/compiler_gn/found
|
|||||||
%{_includedir}/dsoftbus/*
|
%{_includedir}/dsoftbus/*
|
||||||
/system/*
|
/system/*
|
||||||
/%{binder_dest_path}/*.ko
|
/%{binder_dest_path}/*.ko
|
||||||
|
%if 0%{?with_ashmem}
|
||||||
/%{ashmem_dest_path}/*.ko
|
/%{ashmem_dest_path}/*.ko
|
||||||
|
%endif
|
||||||
%{build_opt}/*
|
%{build_opt}/*
|
||||||
/usr/share/pp
|
/usr/share/pp
|
||||||
|
|
||||||
%post
|
%post
|
||||||
semodule -X 300 -i /usr/share/pp/binder.pp
|
semodule -X 300 -i /usr/share/pp/binder.pp
|
||||||
|
|
||||||
|
%if 0%{?with_install_ko}
|
||||||
|
insmod /%{binder_dest_path}/*.ko
|
||||||
|
%if 0%{?with_ashmem}
|
||||||
|
insmod /%{ashmem_dest_path}/*.ko
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
# Wed Jun 05 2024 Hong Xu Ming <2298061238@qq.com> - 1.0.0-4
|
||||||
|
- modify the definition with_ashmem from 1 to 0
|
||||||
|
|
||||||
|
* Wed Dec 20 2023 Peng He <hepeng68@huawei.com> - 1.0.0-3
|
||||||
|
- correct default ethernet interface from enp7s0 to eth0
|
||||||
|
|
||||||
|
* Mon Dec 18 2023 yanansong <songyanan5@huawei.com> - 1.0.0-2
|
||||||
|
- enable linux ko building and insmod it
|
||||||
|
|
||||||
* Sun Oct 08 2023 Peng He <hepeng68@huawei.com> - 1.0.0-1
|
* Sun Oct 08 2023 Peng He <hepeng68@huawei.com> - 1.0.0-1
|
||||||
* Thu Nov 22 2023 JiaQi Zhao <zhaojiaqi18@huawei.com> - 1.0.0-1
|
* Thu Nov 22 2023 JiaQi Zhao <zhaojiaqi18@huawei.com> - 1.0.0-1
|
||||||
- Init package
|
- Init package
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user