1# Device ID Configuration
2
3There is a default dev_id.json file provided by
4meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host.bb
5
6Any target can override the default json file by providing a
7phosphor-ipmi-host.bbappend with an ODM or platform customizable configuration.
8
9For a specific example, see:
10[Witherspoon](https://github.com/openbmc/openbmc/blob/master/
11meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/
12recipes-phosphor/ipmi/phosphor-ipmi-host.bbappend)
13
14The JSON format for get_device_id:
15
16    {"id": 0, "revision": 0, "addn_dev_support": 0,
17        "manuf_id": 0, "prod_id": 0, "aux": 0}
18
19
20Each value in this JSON object should be an integer. The file is placed in
21/usr/share/ipmi-providers/ by Yocto, and will be parsed upon the first call to
22get_device_id. The data is then cached for future use. If you change the data
23at runtime, simply restart the service to see the new data fetched by a call to
24get_device_id.
25