Brad Bishop | 4c91177 | 2016-08-16 13:23:07 -0400 | [diff] [blame] | 1 | OBMC_BMC_INSTANCES ?= "0" |
Brad Bishop | 51ca97e | 2017-01-26 10:49:22 -0500 | [diff] [blame] | 2 | OBMC_CHASSIS_INSTANCES ?= "0" |
Brad Bishop | 51ca97e | 2017-01-26 10:49:22 -0500 | [diff] [blame] | 3 | OBMC_HOST_INSTANCES ?= "0" |
Brad Bishop | 51ca97e | 2017-01-26 10:49:22 -0500 | [diff] [blame] | 4 | OBMC_POWER_INSTANCES ?= "0" |
Brad Bishop | f2dd552 | 2016-08-30 08:54:14 -0400 | [diff] [blame] | 5 | |
Brad Bishop | db32a7c | 2017-03-01 16:16:06 -0500 | [diff] [blame] | 6 | # obmc-bmc-state-manager |
| 7 | # |
| 8 | # Provides an implementation of the xyz.openbmc_project.State.BMC |
| 9 | # interface. |
| 10 | VIRTUAL-RUNTIME_obmc-bmc-state-manager ?= "phosphor-state-manager-bmc" |
| 11 | |
| 12 | # obmc-chassis-state-manager |
| 13 | # |
| 14 | # Provides an implementation of the xyz.openbmc_project.State.Chassis |
| 15 | # interface. |
| 16 | VIRTUAL-RUNTIME_obmc-chassis-state-manager ?= "phosphor-state-manager-chassis" |
| 17 | |
| 18 | # obmc-host-state-manager |
| 19 | # |
| 20 | # Provides an implementation of the xyz.openbmc_project.State.Host |
| 21 | # interface. |
| 22 | VIRTUAL-RUNTIME_obmc-host-state-manager ?= "phosphor-state-manager-host" |
Brad Bishop | 4f12f72 | 2017-02-01 21:04:14 -0500 | [diff] [blame] | 23 | |
Michael Tritz | b3b5899 | 2017-03-31 12:04:32 -0500 | [diff] [blame] | 24 | # obmc-discover-system-state |
| 25 | # |
| 26 | # Provides an implementation of phosphor-discover-system-state, which, if the |
| 27 | # host is powered off, will check the current power policy and, if necessary, |
| 28 | # power the host back on. |
| 29 | VIRTUAL-RUNTIME_obmc-discover-system-state ?= "phosphor-state-manager-discover" |
| 30 | |
Matthew Barth | acd9fe4 | 2017-02-24 13:14:43 -0600 | [diff] [blame] | 31 | # obmc-fan-presence |
| 32 | # |
| 33 | # Provides implementations of fan presence detection |
| 34 | VIRTUAL-RUNTIME_obmc-fan-presence ?= "phosphor-fan-presence-tach" |
| 35 | |
Matt Spinler | 565e329 | 2017-04-17 16:34:24 -0500 | [diff] [blame] | 36 | # obmc-fan-control |
| 37 | # |
| 38 | # Provides implementations of fan control |
| 39 | VIRTUAL-RUNTIME_obmc-fan-control ?= "phosphor-fan-control" |
| 40 | |
Brad Bishop | 4f12f72 | 2017-02-01 21:04:14 -0500 | [diff] [blame] | 41 | # obmc-inventory-manager |
| 42 | # |
| 43 | # Provides an implementation of the xyz.openbmc_project.Inventory.Manager |
| 44 | # interface. |
| 45 | VIRTUAL-RUNTIME_obmc-inventory-manager ?= "phosphor-inventory-manager" |
| 46 | |
Brad Bishop | 4f12f72 | 2017-02-01 21:04:14 -0500 | [diff] [blame] | 47 | # obmc-sensors-hwmon |
| 48 | # |
| 49 | # Provides an implementation of xyz.openbmc_project.Sensor.Value |
| 50 | # for hwmon sensors. |
| 51 | VIRTUAL-RUNTIME_obmc-sensors-hwmon ?= "phosphor-hwmon" |
| 52 | |
Brad Bishop | 3217b27 | 2017-02-22 20:50:13 -0500 | [diff] [blame] | 53 | # phosphor-hwmon-config |
| 54 | # |
| 55 | # The phosphor-hwmon package can have its configuration generated |
| 56 | # automatically if the MRW feature is enabled. |
Brad Bishop | 250a984 | 2018-03-08 23:44:34 -0500 | [diff] [blame] | 57 | VIRTUAL-RUNTIME_phosphor-hwmon-config ?= "" |
Brad Bishop | 3217b27 | 2017-02-22 20:50:13 -0500 | [diff] [blame] | 58 | |
Patrick Venture | 98861c5 | 2018-02-20 12:19:56 -0800 | [diff] [blame] | 59 | # Configuration overrides for phosphor-ipmi-fru. |
Brad Bishop | 3acb95c | 2017-01-28 11:53:03 -0500 | [diff] [blame] | 60 | # |
| 61 | # The phosphor-ipmi-fru application is data-driven and requires an input |
Patrick Venture | 98861c5 | 2018-02-20 12:19:56 -0800 | [diff] [blame] | 62 | # mapping of how the host firmware reports inventory via IPMI and the mapping |
| 63 | # of that inventory metadata to DBus objects interfaces and properties. |
| 64 | |
| 65 | # The phosphor-ipmi-fru application is data-driven and requires an input |
Brad Bishop | 3acb95c | 2017-01-28 11:53:03 -0500 | [diff] [blame] | 66 | # mapping of how the host firmware reports inventory via IPMI. |
| 67 | # This virtual is a native recipe that provides that mapping by installing |
| 68 | # configuration files in the format and native sysroot location expected by |
| 69 | # the phosphor-ipmi-fru build process. |
| 70 | PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-hostfw-config ?= "phosphor-ipmi-fru-hostfw-config-example-native" |
| 71 | |
Brad Bishop | 0a544b5 | 2017-01-28 12:51:42 -0500 | [diff] [blame] | 72 | # The phosphor-ipmi-fru application is data-driven and requires an input |
| 73 | # mapping of IPMI inventory metadata to DBus objects interfaces and properties. |
| 74 | # This virtual is a native recipe that provides that mapping by installing |
| 75 | # configuration files in the format and native sysroot location expected by |
| 76 | # the phosphor-ipmi-fru build process in the native sysroot. |
| 77 | PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-inventory ?= \ |
Brad Bishop | 250a984 | 2018-03-08 23:44:34 -0500 | [diff] [blame] | 78 | "phosphor-ipmi-fru-inventory-example-native" |
Marri Devender Rao | 7b82318 | 2017-06-08 03:17:36 -0500 | [diff] [blame] | 79 | |
Deepak Kodihalli | 48be0fd | 2017-02-20 04:55:20 -0600 | [diff] [blame] | 80 | PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-properties ?= \ |
Brad Bishop | 250a984 | 2018-03-08 23:44:34 -0500 | [diff] [blame] | 81 | "phosphor-ipmi-fru-properties-native" |
Brad Bishop | 0a544b5 | 2017-01-28 12:51:42 -0500 | [diff] [blame] | 82 | |
Marri Devender Rao | 7b82318 | 2017-06-08 03:17:36 -0500 | [diff] [blame] | 83 | PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-read-inventory ?= \ |
Brad Bishop | 250a984 | 2018-03-08 23:44:34 -0500 | [diff] [blame] | 84 | "phosphor-ipmi-fru-read-inventory-example-native" |
Marri Devender Rao | 7b82318 | 2017-06-08 03:17:36 -0500 | [diff] [blame] | 85 | |
Patrick Venture | 98861c5 | 2018-02-20 12:19:56 -0800 | [diff] [blame] | 86 | # Configuration overrides for phosphor-host-ipmid. |
| 87 | # |
| 88 | # The phosphor-host-ipmid application is data-driven. |
Vishwanatha Subbanna | 7f07e7d | 2017-02-11 22:10:23 +0530 | [diff] [blame] | 89 | |
Ratan Gupta | 3aa591f | 2017-03-06 17:05:11 +0530 | [diff] [blame] | 90 | # The phosphor-host-ipmid application is data-driven and requires an input |
| 91 | # mapping of IPMI inventory sensor metadata to DBus objects interfaces and properties. |
| 92 | # This virtual is a native recipe that provides that mapping by installing |
| 93 | # configuration files in the format and native sysroot location expected by |
| 94 | # the phosphor-host-ipmid build process in the native sysroot. |
| 95 | PREFERRED_PROVIDER_virtual/phosphor-ipmi-sensor-inventory ?= \ |
Brad Bishop | 250a984 | 2018-03-08 23:44:34 -0500 | [diff] [blame] | 96 | "phosphor-ipmi-sensor-inventory-native" |
Ratan Gupta | 3aa591f | 2017-03-06 17:05:11 +0530 | [diff] [blame] | 97 | |
Patrick Venture | 0b2b165 | 2018-01-18 18:01:29 -0800 | [diff] [blame] | 98 | # The phosphor-host-ipmid application is data-driven and requires an input |
Patrick Venture | 98861c5 | 2018-02-20 12:19:56 -0800 | [diff] [blame] | 99 | # mapping of inventory object path to the sensor number and sensor metadata. |
| 100 | # This virtual is a native recipe that provides that mapping by installing |
| 101 | # configuration files in the format and native sysroot location expected by |
| 102 | # the phosphor-host-ipmid build process in the native sysroot. |
| 103 | PREFERRED_PROVIDER_virtual/phosphor-ipmi-inventory-sel ?= \ |
Brad Bishop | 250a984 | 2018-03-08 23:44:34 -0500 | [diff] [blame] | 104 | "phosphor-ipmi-inventory-sel-native" |
Patrick Venture | 98861c5 | 2018-02-20 12:19:56 -0800 | [diff] [blame] | 105 | |
| 106 | # Various other overrides. |
| 107 | |
| 108 | # The phosphor-led-manager application is data-driven and requires an input |
| 109 | # yaml of LED group and members. |
| 110 | # This virtual is a native recipe that provides that mapping by installing |
| 111 | # configuration files in the format and native sysroot location expected by |
| 112 | # the phosphor-led-manager build process in the native sysroot. |
| 113 | PREFERRED_PROVIDER_virtual/phosphor-led-manager-config-native ?= \ |
Brad Bishop | 250a984 | 2018-03-08 23:44:34 -0500 | [diff] [blame] | 114 | "phosphor-led-manager-config-example-native" |
Patrick Venture | 98861c5 | 2018-02-20 12:19:56 -0800 | [diff] [blame] | 115 | |
Deepak Kodihalli | 1f09d4a | 2017-03-16 06:32:12 -0500 | [diff] [blame] | 116 | # The phosphor-logging application has a data driven plugin that adds FRU |
| 117 | # callout information to error logs, when applications generating error logs |
| 118 | # add the requisite callout metadata to the systemd journal. The plugin requires |
| 119 | # an input mapping of Linux sysfs devices to OpenBMC DBus objects. |
| 120 | # This virtual is a native recipe that provides that mapping by installing |
| 121 | # configuration files in the format and native sysroot location expected by |
| 122 | # the phosphor-logging build process in the native sysroot. |
| 123 | PREFERRED_PROVIDER_virtual/phosphor-logging-callouts ?= \ |
Brad Bishop | 250a984 | 2018-03-08 23:44:34 -0500 | [diff] [blame] | 124 | "phosphor-logging-callouts-example-native" |
Ratan Gupta | 3aa591f | 2017-03-06 17:05:11 +0530 | [diff] [blame] | 125 | |
Brad Bishop | 0e04b2e | 2019-05-13 13:45:49 -0400 | [diff] [blame] | 126 | # The phosphor-fan-presence application is data driven and requires an input |
| 127 | # YAML that maps fans to their tach sensors. This virtual is a recipe that |
| 128 | # provides that mapping by installing configuration files in the format and |
| 129 | # sysroot location expected by the phosphor-fan-presence build process in the |
| 130 | # sysroot. |
Matt Spinler | f7d548b | 2017-03-21 15:02:13 -0500 | [diff] [blame] | 131 | PREFERRED_PROVIDER_virtual/phosphor-fan-presence-config ?= \ |
Brad Bishop | c8b67b3 | 2019-05-13 23:12:55 -0400 | [diff] [blame] | 132 | "phosphor-fan-presence-config" |
Matt Spinler | f7d548b | 2017-03-21 15:02:13 -0500 | [diff] [blame] | 133 | |
Brad Bishop | 0e04b2e | 2019-05-13 13:45:49 -0400 | [diff] [blame] | 134 | # The phosphor-fan-control application is data driven and requires a YAML file |
| 135 | # to define the fans in the system. This virtual is a recipe that provides |
| 136 | # that definition by installing the YAML file in the format and sysroot |
| 137 | # location expected by the phosphor-fan-control build process in the sysroot. |
Matt Spinler | 565e329 | 2017-04-17 16:34:24 -0500 | [diff] [blame] | 138 | PREFERRED_PROVIDER_virtual/phosphor-fan-control-fan-config ?= \ |
Brad Bishop | c8b67b3 | 2019-05-13 23:12:55 -0400 | [diff] [blame] | 139 | "phosphor-fan-control-fan-config" |
Matt Spinler | 565e329 | 2017-04-17 16:34:24 -0500 | [diff] [blame] | 140 | |
Brad Bishop | 7e60f16 | 2017-01-12 21:25:04 -0500 | [diff] [blame] | 141 | OBMC_DBUS_PATH_ROOT ?= "/xyz/openbmc_project" |
| 142 | OBMC_DBUS_IFACE_ROOT ?= "xyz.openbmc_project" |
Brad Bishop | 01e6b17 | 2018-01-26 22:11:36 -0500 | [diff] [blame] | 143 | |
| 144 | # VIRTUAL-RUNTIME_phosphor-ipmi-providers are the set of shared library |
| 145 | # plugins for the host-ipmid application. By default the IPMI FRU plugin |
| 146 | # is enabled. Additionally the host-ipmid recipe uses |
| 147 | # VIRTUAL-RUNTIME_phosphor-ipmi-providers to compute a list of potential |
| 148 | # IPMI whitelist recipe dependencies. For example: |
| 149 | # |
| 150 | # VIRTUAL-RUNTIME_phosphor-ipmi-providers ?= "phosphor-ipmi-fru" |
| 151 | # |
| 152 | # Will add a build dependency to host-ipmid on the |
| 153 | # phosphor-ipmi-fru-whitelist-native recipe. |
| 154 | VIRTUAL-RUNTIME_phosphor-ipmi-providers ?= "phosphor-ipmi-fru" |
Richard Marian Thomaiyar | 4b5a9ef | 2018-12-12 21:30:30 +0530 | [diff] [blame] | 155 | |
Ed Tanous | d47f9a0 | 2021-01-25 13:15:36 -0800 | [diff] [blame] | 156 | # Set security headers on builds |
| 157 | require conf/distro/include/security_flags.inc |
| 158 | |
Ed Tanous | d47f9a0 | 2021-01-25 13:15:36 -0800 | [diff] [blame] | 159 | # obmc-libobmc-intf doesn't compile with security flags enabled |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 160 | SECURITY_CFLAGS:pn-obmc-libobmc-intf = "" |
Ed Tanous | d47f9a0 | 2021-01-25 13:15:36 -0800 | [diff] [blame] | 161 | |
William A. Kennington III | 1a977b2 | 2021-05-13 02:33:12 -0700 | [diff] [blame] | 162 | # We generally want to enable LTO with meson |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 163 | EXTRA_OEMESON:append:class-target = " -Db_lto=true" |
William A. Kennington III | 1a977b2 | 2021-05-13 02:33:12 -0700 | [diff] [blame] | 164 | |
Richard Marian Thomaiyar | 4b5a9ef | 2018-12-12 21:30:30 +0530 | [diff] [blame] | 165 | # Set the root password to '0penBmc' |
Joseph Reynolds | 516363e | 2021-08-04 10:01:42 -0500 | [diff] [blame] | 166 | # Override this in your local.conf |
Richard Marian Thomaiyar | 4b5a9ef | 2018-12-12 21:30:30 +0530 | [diff] [blame] | 167 | inherit extrausers |
| 168 | |
Joseph Reynolds | 356f9e1 | 2021-07-23 20:15:32 -0500 | [diff] [blame] | 169 | # This is the default password for the OpenBMC root user account (0penBmc) |
| 170 | # salted and hashed with SHA512 suitable for /etc/shadow or `usermod -p`. |
| 171 | DEFAULT_OPENBMC_PASSWORD = "'\$6\$UGMqyqdG\$GqTb3tXPFx9AJlzTw/8X5RoW2Z.100dT.acuk8AFJfNQYr.ZRL8itMIgLqsdq46RNHgiv78XayOSl.IbR4DFU.'" |
| 172 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 173 | EXTRA_USERS_PARAMS:pn-obmc-phosphor-image = " \ |
Joseph Reynolds | 356f9e1 | 2021-07-23 20:15:32 -0500 | [diff] [blame] | 174 | usermod -p ${DEFAULT_OPENBMC_PASSWORD} root; \ |
Richard Marian Thomaiyar | 4b5a9ef | 2018-12-12 21:30:30 +0530 | [diff] [blame] | 175 | " |