summaryrefslogtreecommitdiff
path: root/README.md
blob: 20f518390e53cf20b0dc71153bdb938e9d1afa59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# unified-model-config
Unified Model Config

# How to set model-config

# generic (IoT)
generic/model-config-iot.xml
- It'll be included in Tizen Platform Image (Headed/Headless).
- If feature is provided and dependent to hal backend, it has to set to *true* by default.
  For example,  If "tizen.org/fature/battery" is dependent to HAL backend, set to true.
- If feature is not dependent to hal backend, just set to a proper feature value.

generic/model-config-hal.xml
- It'll be included in HAL Imge.
- It's feature releated with HAL backend. It has to set to *false* by default.
- If want to enable some feature according to specific board, it has to be modified the feature
in tizen/building-block. (packaging/platform-preset-board-<target>-hal-backend.inc)
- Use %tizen_hal_feature macro in building-block.

Feature is used after "AND" operation with  model-config-iot.xml and modle-config-hal.xml.
e.g)
/etc/config/model-config.xml - tizen.org/feature/battery true
/hal/etc/config/model-config.xml - tizen.org/feature/battery false

Finally, tizen.org/feature/battery is false(true && false).

NOTE: Don't refer to /etc/config/model-config.xml file directly. Use system-info-tool or system-info API.

# rpi3 / tm1 / tw2 / xu3 / tm2 / tw3
These folders don't use building-block. There is no hal backend image.
- Update the feature value that it wants to use.