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>
Thu, 25 Jan 2024 14:15:26 +0000 (15:15 +0100)
commitfcaf80f975f4e98e7ef9bdc25dd70ef852872a8c
treeee78e8e2ed33607a243238c18720c8ed67a8c671
parentc4759a63796d8cc7cb26f1c278207f2590f3fdcc
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