FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

SRC_URI += " \
            file://0001-Fix-FanSpeed-sensors-object-cannot-create.patch \
            file://0002-Add-Intel-CPU-sensors.patch \
            file://0003-Add-DIMM-Temp-sensors.patch \
            file://0004-Allows-external-overwrite-DIMM-temperature.patch \
            file://0005-Add-dimmLEDInterface-and-dimmLEDState-property.patch \
            file://0006-Add-PWM-sensors.patch \
            file://0007-Remove-updateDIMMLedState-function-as-dimm-presence-.patch \
            file://0008-Fix-issue-that-the-reading-value-of-dimm-temp-sensor.patch \
            file://0009-switch-dimmtempsensor-from-peci-to-i3c.patch \
            file://0010-Add-Sel-log-for-CPU-presence-event.patch \
            file://0011-Ensure-CPU-sensor-names-match-those-in-the-IPMI-SDR-.patch \
            file://0012-Set-Available-to-false-when-dimm-temp-reading-is-not.patch \
            file://0013-Add-INA220-sensor.patch \
            file://0014-Trigger-to-read-dimm-temp-by-vwgpio1.patch \
            file://0015-Get-the-highest-temperature-of-TS0-TS1-SPD_Temp.patch \
            file://0016-Add-retry-in-case-unable-to-open-intelcpu-sensor-fil.patch \
            file://0017-Set-DIMM-LED-to-NA-when-dc-on-and-OFF-when-dc-off.patch \
            file://0018-Fix-incorrect-config-state-for-intel-cpu-sensors.patch \
            file://0019-Add-retries-to-get-inventory-objects.patch \
            "
PACKAGECONFIG:append = " \
      dimmtempsensor \
      nvmesensor \
      "
PACKAGECONFIG[dimmtempsensor] = "-Ddimmtemp=enabled, -Ddimmtemp=disabled"

SYSTEMD_SERVICE:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'dimmtempsensor', \
                        'xyz.openbmc_project.dimmtempsensor.service', '', d)}"