blob: 1d124302199c387a315fb446d45203f64f65a06b [file] [log] [blame]
Lei YUe5cf2d82017-06-20 15:00:16 +08001FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2
Lei YU2f0d0462018-04-02 14:18:26 +08003EXTRA_OECONF_append_romulus = " --enable-negative-errno-on-fail"
Lei YUfe2db2b2017-11-24 15:30:54 +08004
Lei YU521fe762017-11-24 15:36:06 +08005CHIPS = " \
Lei YU057e7af2018-01-24 17:28:48 +08006 i2c@1e78a000/i2c-bus@440/w83773g@4c \
Lei YU521fe762017-11-24 15:36:06 +08007 pwm-tacho-controller@1e786000 \
8 "
9ITEMSFMT = "ahb/apb/{0}.conf"
10
11ITEMS = "${@compose_list(d, 'ITEMSFMT', 'CHIPS')}"
12
Lei YU72cab612018-07-27 13:30:59 +080013ITEMS += "iio-hwmon-battery.conf"
14
Lei YUe5cf2d82017-06-20 15:00:16 +080015OCCS = " \
Joel Stanley46a87d42017-09-05 17:44:33 +100016 00--00--00--06/sbefifo1-dev0/occ-hwmon.1 \
17 00--00--00--0a/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2 \
Lei YUe5cf2d82017-06-20 15:00:16 +080018 "
19
Joel Stanley46a87d42017-09-05 17:44:33 +100020OCCSFMT = "devices/platform/gpio-fsi/fsi0/slave@00--00/{0}.conf"
Lei YUe5cf2d82017-06-20 15:00:16 +080021OCCITEMS = "${@compose_list(d, 'OCCSFMT', 'OCCS')}"
22
23ENVS = "obmc/hwmon/{0}"
Lei YU521fe762017-11-24 15:36:06 +080024SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'ITEMS')}"
Lei YUe5cf2d82017-06-20 15:00:16 +080025SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'OCCITEMS')}"