add sa profile
This commit is contained in:
parent
5b314c9522
commit
84b9292bc3
@ -16,6 +16,7 @@ Source1: https://gitee.com/openharmony/distributedhardware_device_manager/reposi
|
|||||||
Source2: https://gitee.com/openharmony/third_party_json/repository/archive/openHarmony-v3.2-Release.tar.gz #/third_party_json-OpenHarmony-v3.2-Release.tar.gz
|
Source2: https://gitee.com/openharmony/third_party_json/repository/archive/openHarmony-v3.2-Release.tar.gz #/third_party_json-OpenHarmony-v3.2-Release.tar.gz
|
||||||
Source3: device_manager.bundle.json
|
Source3: device_manager.bundle.json
|
||||||
Source4: device_manager.BUILD.gn
|
Source4: device_manager.BUILD.gn
|
||||||
|
Source5: device_manager.xml
|
||||||
|
|
||||||
Patch1: 0001-remove-dependency-and-adapt-for-build-device_manager.patch
|
Patch1: 0001-remove-dependency-and-adapt-for-build-device_manager.patch
|
||||||
|
|
||||||
@ -70,6 +71,8 @@ install -d -m 0755 %{buildroot}/%{_libdir}
|
|||||||
install -d -m 0755 %{buildroot}%{_includedir}/nlohmann_json
|
install -d -m 0755 %{buildroot}%{_includedir}/nlohmann_json
|
||||||
install -d -m 0755 %{buildroot}%{_includedir}/nlohmann_json/single_include
|
install -d -m 0755 %{buildroot}%{_includedir}/nlohmann_json/single_include
|
||||||
install -d -m 0755 %{buildroot}%{build_opt}/openeuler/compiler_gn/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp
|
install -d -m 0755 %{buildroot}%{build_opt}/openeuler/compiler_gn/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp
|
||||||
|
install -d -m 0755 %{buildroot}/system/lib64
|
||||||
|
install -d -m 0755 %{buildroot}/system/profile
|
||||||
|
|
||||||
%ifarch aarch64
|
%ifarch aarch64
|
||||||
%define header_out_path out/openeuler/innerkits/linux-arm64/
|
%define header_out_path out/openeuler/innerkits/linux-arm64/
|
||||||
@ -82,6 +85,7 @@ install -d -m 0755 %{buildroot}%{build_opt}/openeuler/compiler_gn/foundation/dis
|
|||||||
|
|
||||||
# prepare so
|
# prepare so
|
||||||
install -m 0755 %{_builddir}/%{module_out_path}/distributedhardware/device_manager/*.so %{buildroot}/%{_libdir}
|
install -m 0755 %{_builddir}/%{module_out_path}/distributedhardware/device_manager/*.so %{buildroot}/%{_libdir}
|
||||||
|
install -m 0755 %{_builddir}/%{module_out_path}/distributedhardware/device_manager/*.so %{buildroot}/system/lib64
|
||||||
|
|
||||||
# prepare head files
|
# prepare head files
|
||||||
find %{_builddir}/%{header_out_path} -name *.h -print0 | xargs -0 -i cp -rf {} %{buildroot}/%{_includedir}/device_manager/
|
find %{_builddir}/%{header_out_path} -name *.h -print0 | xargs -0 -i cp -rf {} %{buildroot}/%{_includedir}/device_manager/
|
||||||
@ -96,6 +100,9 @@ install -m 0755 %{SOURCE3} %{buildroot}/%{build_opt}/openeuler/compiler_gn/found
|
|||||||
#cp gn file
|
#cp gn file
|
||||||
install -m 0755 %{SOURCE4} %{buildroot}/%{build_opt}/openeuler/compiler_gn/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/BUILD.gn
|
install -m 0755 %{SOURCE4} %{buildroot}/%{build_opt}/openeuler/compiler_gn/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/BUILD.gn
|
||||||
|
|
||||||
|
#cp sa profile
|
||||||
|
install -m 0755 %{SOURCE5} %{buildroot}/system/profile
|
||||||
|
|
||||||
#create soft link
|
#create soft link
|
||||||
ln -s /usr/include/device_manager %{buildroot}%{build_opt}/openeuler/compiler_gn/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/include
|
ln -s /usr/include/device_manager %{buildroot}%{build_opt}/openeuler/compiler_gn/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/include
|
||||||
|
|
||||||
@ -104,8 +111,12 @@ ln -s /usr/include/device_manager %{buildroot}%{build_opt}/openeuler/compiler_gn
|
|||||||
%{_includedir}/nlohmann_json/*
|
%{_includedir}/nlohmann_json/*
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{build_opt}/*
|
%{build_opt}/*
|
||||||
|
/system/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 15 2023 heppen <hepeng68@huawei.com> - 1.0.0-2
|
||||||
|
- Add SA profile
|
||||||
|
|
||||||
* Tue Oct 31 2023 Yuying Mu <muyuying1@huawei.com> - 1.0.0-1
|
* Tue Oct 31 2023 Yuying Mu <muyuying1@huawei.com> - 1.0.0-1
|
||||||
* Tue Nov 21 2023 Jiaqi Zhao <zhaojiaqi18@huawei.com> - 1.0.0-1
|
* Tue Nov 21 2023 Jiaqi Zhao <zhaojiaqi18@huawei.com> - 1.0.0-1
|
||||||
- Init and adapt device manager to openEuler
|
- Init and adapt device manager to openEuler
|
||||||
|
|||||||
14
device_manager.xml
Executable file
14
device_manager.xml
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<info>
|
||||||
|
<process>device_manager</process>
|
||||||
|
<loadlibs>
|
||||||
|
<libpath>libdevicemanagerservice.z.so</libpath>
|
||||||
|
</loadlibs>
|
||||||
|
<systemability>
|
||||||
|
<name>4802</name>
|
||||||
|
<libpath>libdevicemanagerservice.z.so</libpath>
|
||||||
|
<run-on-create>true</run-on-create>
|
||||||
|
<distributed>false</distributed>
|
||||||
|
<dump-level>1</dump-level>
|
||||||
|
</systemability>
|
||||||
|
</info>
|
||||||
Loading…
x
Reference in New Issue
Block a user