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/ |
Lei YU | c2dcba2 | 2018-03-01 11:01:56 +0800 | [diff] [blame] | 6 | SRCREV = "a7e2c1e5c1e94246ae55313fc361d30b0e1a6165" |
Lei YU | fe2db2b | 2017-11-24 15:30:54 +0800 | [diff] [blame] | 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 = " \ |
Joel Stanley | 46a87d4 | 2017-09-05 17:44:33 +1000 | [diff] [blame^] | 19 | 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 YU | e5cf2d8 | 2017-06-20 15:00:16 +0800 | [diff] [blame] | 21 | " |
| 22 | |
Joel Stanley | 46a87d4 | 2017-09-05 17:44:33 +1000 | [diff] [blame^] | 23 | OCCSFMT = "devices/platform/gpio-fsi/fsi0/slave@00--00/{0}.conf" |
Lei YU | e5cf2d8 | 2017-06-20 15:00:16 +0800 | [diff] [blame] | 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')}" |