Lei YU | e5cf2d8 | 2017-06-20 15:00:16 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 2 | |
Lei YU | fe2db2b | 2017-11-24 15:30:54 +0800 | [diff] [blame] | 3 | # 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/ |
| 6 | SRCREV = "26d21731c292a02ec71480fade9a06658160eafb" |
| 7 | |
| 8 | SRC_URI += " file://0001-sysfs-Return-ETIMEDOUT-instead-of-throw-exception.patch" |
| 9 | |
Lei YU | 521fe76 | 2017-11-24 15:36:06 +0800 | [diff] [blame] | 10 | CHIPS = " \ |
Lei YU | 057e7af | 2018-01-24 17:28:48 +0800 | [diff] [blame] | 11 | i2c@1e78a000/i2c-bus@440/w83773g@4c \ |
Lei YU | 521fe76 | 2017-11-24 15:36:06 +0800 | [diff] [blame] | 12 | pwm-tacho-controller@1e786000 \ |
| 13 | " |
| 14 | ITEMSFMT = "ahb/apb/{0}.conf" |
| 15 | |
| 16 | ITEMS = "${@compose_list(d, 'ITEMSFMT', 'CHIPS')}" |
| 17 | |
Lei YU | e5cf2d8 | 2017-06-20 15:00:16 +0800 | [diff] [blame] | 18 | OCCS = " \ |
| 19 | sbefifo@2400/occ@1/occ-hwmon@1 \ |
| 20 | hub@3400/cfam@1,0/sbefifo@2400/occ@2/occ-hwmon@2 \ |
| 21 | " |
| 22 | |
| 23 | OCCSFMT = "gpio-fsi/cfam@0,0/{0}.conf" |
| 24 | OCCITEMS = "${@compose_list(d, 'OCCSFMT', 'OCCS')}" |
| 25 | |
| 26 | ENVS = "obmc/hwmon/{0}" |
Lei YU | 521fe76 | 2017-11-24 15:36:06 +0800 | [diff] [blame] | 27 | SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'ITEMS')}" |
Lei YU | e5cf2d8 | 2017-06-20 15:00:16 +0800 | [diff] [blame] | 28 | SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'OCCITEMS')}" |