tizen: Search for configuration files in /hal dir 02/248702/7 accepted/tizen/unified/20201210.124556 submit/tizen/20201209.021155
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Tue, 1 Dec 2020 11:34:31 +0000 (12:34 +0100)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 9 Dec 2020 01:58:06 +0000 (01:58 +0000)
commitc394d145bf08cf1117509382373cd0d21ef32eb0
tree29ec2f5ec7ee4a12bdd2cb2f648e3a292696dc42
parent68a9249cf0386dc51596d85d7cbdb07f5d82c47b
tizen: Search for configuration files in /hal dir

Since Tizen 6.5, a HAL image is mounted on the /hal directory,
which contains hardware-specific configurations and drivers,
for better portability of Tizen.

This is the priority of path searching for configuration file.
 1. /etc/
 2. /run/
 3. /usr/local/lib/
 4. /usr/lib/
 5. /hal/lib/

When the same file exists, the higher priority file is used.
In this case, "/etc" is the highest priority.

Because hal can never override platform,
hal has a lower priority than platform.

Change-Id: Ie5e6cf98e64b4317bda23d49571b5c0f60084569
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
[ Change search order for /hal to be searched last ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
src/basic/def.h
src/basic/tizenhal.h [new file with mode: 0644]
src/tmpfiles/tmpfiles.c
src/udev/udev-rules.c