packaging: create hal directory to use backend packages 40/251840/1 accepted/tizen/unified/20210120.120800 submit/tizen/20210120.012527
authorJaehoon Chung <jh80.chung@samsung.com>
Wed, 20 Jan 2021 00:42:28 +0000 (09:42 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 20 Jan 2021 00:46:16 +0000 (09:46 +0900)
If hal.img will be split from core image, it has to exist hal directory
under root directory before mounting hal.img.
Otherwise, it can't mount anywhere to use hal-backend.
This patch is for preparing to use hal.img.
- The mounting hal.img will be did in ramdisk.

Change-Id: I8ef56c0e383e142269c4164d7cfeba9560fbb039
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
packaging/hal-api-common.spec

index 1831a56..edb494a 100644 (file)
@@ -50,6 +50,7 @@ rm -rf %{buildroot}
 %make_install
 
 mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d/
+mkdir -p %{buildroot}/hal
 install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/ld.so.conf.d/
 
 %clean
@@ -68,6 +69,7 @@ rm -rf %{buildroot}
 %defattr(-,root,root,-)
 %{_libdir}/hal/*.so*
 %{_sysconfdir}/ld.so.conf.d/libhal-api.conf
+/hal/
 
 %files -n %{devel_name}
 %defattr(-,root,root,-)