diff --git a/ashmem-openEuler-22.03-LTS-SP2.tar.gz b/ashmem-openEuler-22.03-LTS-SP2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..474f8fdda7a802ec245d75ca2b4f134df20bef5d Binary files /dev/null and b/ashmem-openEuler-22.03-LTS-SP2.tar.gz differ diff --git a/binder.pp b/binder.pp new file mode 100644 index 0000000000000000000000000000000000000000..1b56b5b5f81cbd1c82402b2a58dba3a2481b4fb5 Binary files /dev/null and b/binder.pp differ diff --git a/communication_ipc.spec b/communication_ipc.spec index cd71c893fcd6fb4cb62169e8fe112cbc4296b898..52ee5b3c0e05ea3db14e4a1312f8306607adb003 100644 --- a/communication_ipc.spec +++ b/communication_ipc.spec @@ -5,6 +5,7 @@ %global communication_path %{_builddir}/foundation/communication %global third_party_path %{_builddir}/third_party %global binder_dest_path /usr/lib/modules/%(uname -r)/binder +%global ashmem_dest_path /usr/lib/modules/%(uname -r)/ashmem Name: communication_ipc Version: 1.0.0 @@ -24,9 +25,11 @@ Source9: ipc_core.BUILD.gn Source10: ipc_single.BUILD.gn Source11: binder.BUILD.gn Source12: mbedtls.BUILD.gn -Source13: dsoftbus.bundle.json -Source14: dsoftbus.BUILD.gn +Source13: dsoftbus.bundle.json +Source14: dsoftbus.BUILD.gn Source15: sdk.BUILD.gn +Source16: https://gitee.com/openeuler/kernel/ashmem-%{oe_version}.tar.gz +Source17: binder.pp Patch1: 0001-remove-dependence-on-access-token-and-hitrace.patch Patch2: 0002-fix-build-error-from-header-include.patch @@ -93,6 +96,9 @@ mv %{third_party_path}/third_party_mbedtls-%{oh_version} %{third_party_path}/mbe cd %{_builddir}/binder make %{?_smp_mflags} +cd %{_builddir}/ashmem/src +make %{?_smp_mflags} + %install install -d -m 0755 %{buildroot}/%{_includedir}/ipc install -d -m 0755 %{buildroot}/%{_includedir}/mbedtls @@ -146,6 +152,7 @@ install -m 0755 %{_builddir}/foundation/communication/dsoftbus/interfaces/inner_ install -m 0755 %{communication_path}/ipc/interfaces/innerkits/libdbinder/include/* %{buildroot}/%{_includedir}/ipc/ install -m 0755 %{communication_path}/dsoftbus/sdk/transmission/session/cpp/include/* %{buildroot}/%{_includedir}/ipc/ + find %{_builddir}/%{header_out_path} -name *.h -print0 | xargs -0 -i cp -rf {} %{buildroot}/%{_includedir}/ipc/ find %{_builddir}/%{dsoftbus_header_out_path} -name *.h -print0 | xargs -0 -i cp -rvf {} %{buildroot}/%{_includedir}/dsoftbus/ @@ -164,7 +171,11 @@ install -m 0755 %{SOURCE15} %{buildroot}/%{build_opt}/openeuler/compiler_gn/foun # install ko file of binder install -d %{buildroot}/%{binder_dest_path}/ +install -d %{buildroot}/%{ashmem_dest_path}/ install -m 0755 %{_builddir}/binder/binder_linux.ko %{buildroot}/%{binder_dest_path}/ +install -m 0755 %{_builddir}/ashmem/src/ashmem_linux.ko %{buildroot}/%{ashmem_dest_path}/ +mkdir -p %{buildroot}/usr/share/pp +cp -pdf %{_builddir}/binder.pp %{buildroot}/usr/share/pp #create soft link ln -s /usr/mbedtls/include %{buildroot}%{build_opt}/openeuler/compiler_gn/third_party/mbedtls/include @@ -186,7 +197,12 @@ ln -s /usr/include/dsoftbus %{buildroot}%{build_opt}/openeuler/compiler_gn/found %{_includedir}/dsoftbus/* /system/* /%{binder_dest_path}/*.ko +/%{ashmem_dest_path}/*.ko %{build_opt}/* +/usr/share/pp + +%post +semodule -X 300 -i /usr/share/pp/binder.pp %changelog * Sun Oct 08 2023 Peng He - 1.0.0-1