tizen: Search for configuration files in /hal dir
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Tue, 1 Dec 2020 11:34:31 +0000 (12:34 +0100)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 29 May 2024 22:07:11 +0000 (00:07 +0200)
commit3784bae6e3c0ad5221e8df902aa160b6b40b20bd
tree7579ac0171dc691e0476380923d0c6f1cba8c8d4
parent1b29c0163f812548fd5536bcb3a77d5c4dbd5ff9
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>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
src/basic/constants.h
src/basic/tizenhal.h [new file with mode: 0644]
src/tmpfiles/tmpfiles.c
src/udev/udev-rules.c