blob: 03b26221c0b94fcdfe11d5ae5af92bfbe1aa549c [file] [log] [blame]
Lei YUe5cf2d82017-06-20 15:00:16 +08001FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2
Lei YUfe2db2b2017-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/
Lei YUc2dcba22018-03-01 11:01:56 +08006SRCREV = "a7e2c1e5c1e94246ae55313fc361d30b0e1a6165"
Lei YUfe2db2b2017-11-24 15:30:54 +08007
8SRC_URI += " file://0001-sysfs-Return-ETIMEDOUT-instead-of-throw-exception.patch"
9
Lei YU521fe762017-11-24 15:36:06 +080010CHIPS = " \
Lei YU057e7af2018-01-24 17:28:48 +080011 i2c@1e78a000/i2c-bus@440/w83773g@4c \
Lei YU521fe762017-11-24 15:36:06 +080012 pwm-tacho-controller@1e786000 \
13 "
14ITEMSFMT = "ahb/apb/{0}.conf"
15
16ITEMS = "${@compose_list(d, 'ITEMSFMT', 'CHIPS')}"
17
Lei YUe5cf2d82017-06-20 15:00:16 +080018OCCS = " \
Joel Stanley46a87d42017-09-05 17:44:33 +100019 00--00--00--06/sbefifo1-dev0/occ-hwmon.1 \
20 00--00--00--0a/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2 \
Lei YUe5cf2d82017-06-20 15:00:16 +080021 "
22
Joel Stanley46a87d42017-09-05 17:44:33 +100023OCCSFMT = "devices/platform/gpio-fsi/fsi0/slave@00--00/{0}.conf"
Lei YUe5cf2d82017-06-20 15:00:16 +080024OCCITEMS = "${@compose_list(d, 'OCCSFMT', 'OCCS')}"
25
26ENVS = "obmc/hwmon/{0}"
Lei YU521fe762017-11-24 15:36:06 +080027SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'ITEMS')}"
Lei YUe5cf2d82017-06-20 15:00:16 +080028SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'OCCITEMS')}"