Brandon Wyman | 37a5050 | 2017-05-22 17:35:07 -0500 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 2 | |
Matt Spinler | 0066e31 | 2018-04-25 10:53:41 -0500 | [diff] [blame] | 3 | SRC_URI += " \ |
Matt Spinler | 055e861 | 2018-04-25 11:26:08 -0500 | [diff] [blame] | 4 | file://70-hwmon.rules \ |
| 5 | file://70-max31785-hwmon.rules \ |
Matt Spinler | 0066e31 | 2018-04-25 10:53:41 -0500 | [diff] [blame] | 6 | file://start_max31785_hwmon.sh \ |
| 7 | " |
| 8 | |
Andrew Geissler | 3007745 | 2017-05-23 15:48:33 -0500 | [diff] [blame] | 9 | WSPOON_CHIPS = " \ |
| 10 | i2c@1e78a000/i2c-bus@100/bmp280@77 \ |
| 11 | i2c@1e78a000/i2c-bus@100/dps310@76 \ |
Matt Spinler | 055e861 | 2018-04-25 11:26:08 -0500 | [diff] [blame] | 12 | i2c@1e78a000/i2c-bus@100/max31785@52_air \ |
| 13 | i2c@1e78a000/i2c-bus@100/max31785@52_water \ |
Matt Spinler | 49195bf | 2017-08-14 09:29:22 -0500 | [diff] [blame] | 14 | i2c@1e78a000/i2c-bus@100/power-supply@68 \ |
| 15 | i2c@1e78a000/i2c-bus@100/power-supply@69 \ |
Andrew Geissler | 10129c5 | 2017-05-25 16:21:00 -0500 | [diff] [blame] | 16 | i2c@1e78a000/i2c-bus@140/ir35221@70 \ |
| 17 | i2c@1e78a000/i2c-bus@140/ir35221@71 \ |
| 18 | i2c@1e78a000/i2c-bus@180/ir35221@70 \ |
| 19 | i2c@1e78a000/i2c-bus@180/ir35221@71 \ |
Matthew Barth | d730e47 | 2017-11-14 09:35:04 -0600 | [diff] [blame] | 20 | i2c@1e78a000/i2c-bus@380/tmp275@4a \ |
Andrew Geissler | 3007745 | 2017-05-23 15:48:33 -0500 | [diff] [blame] | 21 | " |
Brandon Wyman | 37a5050 | 2017-05-22 17:35:07 -0500 | [diff] [blame] | 22 | WSPOON_ITEMSFMT = "ahb/apb/{0}.conf" |
Brandon Wyman | 37a5050 | 2017-05-22 17:35:07 -0500 | [diff] [blame] | 23 | WSPOON_ITEMS = "${@compose_list(d, 'WSPOON_ITEMSFMT', 'WSPOON_CHIPS')}" |
| 24 | |
Andrew Geissler | 2e23fb6 | 2017-05-26 16:39:03 -0500 | [diff] [blame] | 25 | WSPOON_OCCS = " \ |
Joel Stanley | 46a87d4 | 2017-09-05 17:44:33 +1000 | [diff] [blame] | 26 | 00--00--00--06/sbefifo1-dev0/occ-hwmon.1 \ |
| 27 | 00--00--00--0a/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2 \ |
Andrew Geissler | 2e23fb6 | 2017-05-26 16:39:03 -0500 | [diff] [blame] | 28 | " |
Joel Stanley | 46a87d4 | 2017-09-05 17:44:33 +1000 | [diff] [blame] | 29 | WSPOON_OCCSFMT = "devices/platform/gpio-fsi/fsi0/slave@00--00/{0}.conf" |
Andrew Geissler | 2e23fb6 | 2017-05-26 16:39:03 -0500 | [diff] [blame] | 30 | WSPOON_OCCITEMS = "${@compose_list(d, 'WSPOON_OCCSFMT', 'WSPOON_OCCS')}" |
| 31 | |
Brandon Wyman | 37a5050 | 2017-05-22 17:35:07 -0500 | [diff] [blame] | 32 | ENVS = "obmc/hwmon/{0}" |
| 33 | SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'WSPOON_ITEMS')}" |
Andrew Geissler | 2e23fb6 | 2017-05-26 16:39:03 -0500 | [diff] [blame] | 34 | SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'WSPOON_OCCITEMS')}" |
Brad Bishop | 59a36b6 | 2017-08-21 20:10:29 -0400 | [diff] [blame] | 35 | |
| 36 | SYSTEMD_ENVIRONMENT_FILE_max31785-msl += "obmc/hwmon-max31785/wspoon.conf" |
| 37 | SYSTEMD_LINK_max31785-msl += "../phosphor-max31785-msl@.service:${SYSTEMD_DEFAULT_TARGET}.wants/phosphor-max31785-msl@wspoon.service" |
Matt Spinler | 0066e31 | 2018-04-25 10:53:41 -0500 | [diff] [blame] | 38 | |
Matt Spinler | 2c924c5 | 2018-04-25 11:20:32 -0500 | [diff] [blame] | 39 | SYSTEMD_SERVICE_${PN} += "max31785-hwmon-helper@.service" |
| 40 | |
Matt Spinler | 0066e31 | 2018-04-25 10:53:41 -0500 | [diff] [blame] | 41 | do_install_append() { |
Matt Spinler | 055e861 | 2018-04-25 11:26:08 -0500 | [diff] [blame] | 42 | install -d ${D}/${base_libdir}/udev/rules.d/ |
| 43 | install ${WORKDIR}/70-max31785-hwmon.rules ${D}/${base_libdir}/udev/rules.d/ |
| 44 | |
Matt Spinler | 0066e31 | 2018-04-25 10:53:41 -0500 | [diff] [blame] | 45 | install -d ${D}${bindir} |
| 46 | install -m 0755 ${WORKDIR}/start_max31785_hwmon.sh ${D}${bindir} |
| 47 | } |