blob: ebe0a53fbc7e52dc90d14d84fde656b7c4cad637 [file] [log] [blame]
Lei YU5685ae92017-06-20 15:00:16 +08001FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2
Lei YUeaab7422017-11-24 15:30:54 +08003# Pin the revision so the patch is guaranteed to be appliable
4# TODO: Remove this when the error handling in hwmon is done:
5# https://gerrit.openbmc-project.xyz/#/c/8073/
6SRCREV = "26d21731c292a02ec71480fade9a06658160eafb"
7
8SRC_URI += " file://0001-sysfs-Return-ETIMEDOUT-instead-of-throw-exception.patch"
9
Lei YU71e13bc2017-11-24 15:36:06 +080010CHIPS = " \
11 pwm-tacho-controller@1e786000 \
12 "
13ITEMSFMT = "ahb/apb/{0}.conf"
14
15ITEMS = "${@compose_list(d, 'ITEMSFMT', 'CHIPS')}"
16
Lei YU5685ae92017-06-20 15:00:16 +080017OCCS = " \
18 sbefifo@2400/occ@1/occ-hwmon@1 \
19 hub@3400/cfam@1,0/sbefifo@2400/occ@2/occ-hwmon@2 \
20 "
21
22OCCSFMT = "gpio-fsi/cfam@0,0/{0}.conf"
23OCCITEMS = "${@compose_list(d, 'OCCSFMT', 'OCCS')}"
24
25ENVS = "obmc/hwmon/{0}"
Lei YU71e13bc2017-11-24 15:36:06 +080026SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'ITEMS')}"
Lei YU5685ae92017-06-20 15:00:16 +080027SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'OCCITEMS')}"