blob: 2dcbd9ae8d42a878c497994b7c50bcab64afed6f [file] [log] [blame]
Patrick Williams54f74812024-02-05 08:43:47 -06001OBMC_BMC_INSTANCES ??= "0"
2OBMC_CHASSIS_INSTANCES ??= "0"
3OBMC_HOST_INSTANCES ??= "0"
Brad Bishopf2dd5522016-08-30 08:54:14 -04004
Brad Bishopdb32a7c2017-03-01 16:16:06 -05005# obmc-bmc-state-manager
6#
7# Provides an implementation of the xyz.openbmc_project.State.BMC
8# interface.
9VIRTUAL-RUNTIME_obmc-bmc-state-manager ?= "phosphor-state-manager-bmc"
10
11# obmc-chassis-state-manager
12#
13# Provides an implementation of the xyz.openbmc_project.State.Chassis
14# interface.
15VIRTUAL-RUNTIME_obmc-chassis-state-manager ?= "phosphor-state-manager-chassis"
16
17# obmc-host-state-manager
18#
19# Provides an implementation of the xyz.openbmc_project.State.Host
20# interface.
21VIRTUAL-RUNTIME_obmc-host-state-manager ?= "phosphor-state-manager-host"
Brad Bishop4f12f722017-02-01 21:04:14 -050022
Michael Tritzb3b58992017-03-31 12:04:32 -050023# obmc-discover-system-state
24#
25# Provides an implementation of phosphor-discover-system-state, which, if the
26# host is powered off, will check the current power policy and, if necessary,
27# power the host back on.
28VIRTUAL-RUNTIME_obmc-discover-system-state ?= "phosphor-state-manager-discover"
29
Matthew Barthacd9fe42017-02-24 13:14:43 -060030# obmc-fan-presence
31#
32# Provides implementations of fan presence detection
33VIRTUAL-RUNTIME_obmc-fan-presence ?= "phosphor-fan-presence-tach"
34
Matt Spinler565e3292017-04-17 16:34:24 -050035# obmc-fan-control
36#
37# Provides implementations of fan control
38VIRTUAL-RUNTIME_obmc-fan-control ?= "phosphor-fan-control"
39
Brad Bishop4f12f722017-02-01 21:04:14 -050040# obmc-inventory-manager
41#
42# Provides an implementation of the xyz.openbmc_project.Inventory.Manager
43# interface.
44VIRTUAL-RUNTIME_obmc-inventory-manager ?= "phosphor-inventory-manager"
45
Brad Bishop4f12f722017-02-01 21:04:14 -050046# obmc-sensors-hwmon
47#
48# Provides an implementation of xyz.openbmc_project.Sensor.Value
49# for hwmon sensors.
50VIRTUAL-RUNTIME_obmc-sensors-hwmon ?= "phosphor-hwmon"
51
Brad Bishop3217b272017-02-22 20:50:13 -050052# phosphor-hwmon-config
53#
54# The phosphor-hwmon package can have its configuration generated
55# automatically if the MRW feature is enabled.
Brad Bishop250a9842018-03-08 23:44:34 -050056VIRTUAL-RUNTIME_phosphor-hwmon-config ?= ""
Brad Bishop3217b272017-02-22 20:50:13 -050057
Patrick Venture98861c52018-02-20 12:19:56 -080058# Configuration overrides for phosphor-ipmi-fru.
Brad Bishop3acb95c2017-01-28 11:53:03 -050059#
60# The phosphor-ipmi-fru application is data-driven and requires an input
Patrick Venture98861c52018-02-20 12:19:56 -080061# mapping of how the host firmware reports inventory via IPMI and the mapping
62# of that inventory metadata to DBus objects interfaces and properties.
63
64# The phosphor-ipmi-fru application is data-driven and requires an input
Brad Bishop3acb95c2017-01-28 11:53:03 -050065# mapping of how the host firmware reports inventory via IPMI.
66# This virtual is a native recipe that provides that mapping by installing
67# configuration files in the format and native sysroot location expected by
68# the phosphor-ipmi-fru build process.
69PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-hostfw-config ?= "phosphor-ipmi-fru-hostfw-config-example-native"
70
Brad Bishop0a544b52017-01-28 12:51:42 -050071# The phosphor-ipmi-fru application is data-driven and requires an input
72# mapping of IPMI inventory metadata to DBus objects interfaces and properties.
73# This virtual is a native recipe that provides that mapping by installing
74# configuration files in the format and native sysroot location expected by
75# the phosphor-ipmi-fru build process in the native sysroot.
Patrick Williams7cc419f2023-07-19 17:21:00 -050076PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-inventory ?= "phosphor-ipmi-fru-inventory-example-native"
Marri Devender Rao7b823182017-06-08 03:17:36 -050077
Patrick Williams7cc419f2023-07-19 17:21:00 -050078PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-properties ?= "phosphor-ipmi-fru-properties-native"
Brad Bishop0a544b52017-01-28 12:51:42 -050079
Patrick Williams7cc419f2023-07-19 17:21:00 -050080PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-read-inventory ?= "phosphor-ipmi-fru-read-inventory-example-native"
Marri Devender Rao7b823182017-06-08 03:17:36 -050081
Patrick Venture98861c52018-02-20 12:19:56 -080082# Configuration overrides for phosphor-host-ipmid.
83#
84# The phosphor-host-ipmid application is data-driven.
Vishwanatha Subbanna7f07e7d2017-02-11 22:10:23 +053085
Ratan Gupta3aa591f2017-03-06 17:05:11 +053086# The phosphor-host-ipmid application is data-driven and requires an input
87# mapping of IPMI inventory sensor metadata to DBus objects interfaces and properties.
88# This virtual is a native recipe that provides that mapping by installing
89# configuration files in the format and native sysroot location expected by
90# the phosphor-host-ipmid build process in the native sysroot.
Patrick Williams7cc419f2023-07-19 17:21:00 -050091PREFERRED_PROVIDER_virtual/phosphor-ipmi-sensor-inventory ?= "phosphor-ipmi-sensor-inventory-native"
Ratan Gupta3aa591f2017-03-06 17:05:11 +053092
Patrick Venture0b2b1652018-01-18 18:01:29 -080093# The phosphor-host-ipmid application is data-driven and requires an input
Patrick Venture98861c52018-02-20 12:19:56 -080094# mapping of inventory object path to the sensor number and sensor metadata.
95# This virtual is a native recipe that provides that mapping by installing
96# configuration files in the format and native sysroot location expected by
97# the phosphor-host-ipmid build process in the native sysroot.
Patrick Williams7cc419f2023-07-19 17:21:00 -050098PREFERRED_PROVIDER_virtual/phosphor-ipmi-inventory-sel ?= "phosphor-ipmi-inventory-sel-native"
Patrick Venture98861c52018-02-20 12:19:56 -080099
100# Various other overrides.
101
102# The phosphor-led-manager application is data-driven and requires an input
103# yaml of LED group and members.
104# This virtual is a native recipe that provides that mapping by installing
105# configuration files in the format and native sysroot location expected by
106# the phosphor-led-manager build process in the native sysroot.
Patrick Williams7cc419f2023-07-19 17:21:00 -0500107PREFERRED_PROVIDER_virtual/phosphor-led-manager-config-native ?= "phosphor-led-manager-config-example-native"
Patrick Venture98861c52018-02-20 12:19:56 -0800108
Deepak Kodihalli1f09d4a2017-03-16 06:32:12 -0500109# The phosphor-logging application has a data driven plugin that adds FRU
110# callout information to error logs, when applications generating error logs
111# add the requisite callout metadata to the systemd journal. The plugin requires
112# an input mapping of Linux sysfs devices to OpenBMC DBus objects.
113# This virtual is a native recipe that provides that mapping by installing
114# configuration files in the format and native sysroot location expected by
115# the phosphor-logging build process in the native sysroot.
Patrick Williams7cc419f2023-07-19 17:21:00 -0500116PREFERRED_PROVIDER_virtual/phosphor-logging-callouts ?= "phosphor-logging-callouts-example-native"
Ratan Gupta3aa591f2017-03-06 17:05:11 +0530117
Brad Bishop0e04b2e2019-05-13 13:45:49 -0400118# The phosphor-fan-presence application is data driven and requires an input
119# YAML that maps fans to their tach sensors. This virtual is a recipe that
120# provides that mapping by installing configuration files in the format and
121# sysroot location expected by the phosphor-fan-presence build process in the
122# sysroot.
Patrick Williams7cc419f2023-07-19 17:21:00 -0500123PREFERRED_PROVIDER_virtual/phosphor-fan-presence-config ?= "phosphor-fan-presence-config"
Matt Spinlerf7d548b2017-03-21 15:02:13 -0500124
Brad Bishop0e04b2e2019-05-13 13:45:49 -0400125# The phosphor-fan-control application is data driven and requires a YAML file
126# to define the fans in the system. This virtual is a recipe that provides
127# that definition by installing the YAML file in the format and sysroot
128# location expected by the phosphor-fan-control build process in the sysroot.
Patrick Williams7cc419f2023-07-19 17:21:00 -0500129PREFERRED_PROVIDER_virtual/phosphor-fan-control-fan-config ?= "phosphor-fan-control-fan-config"
Matt Spinler565e3292017-04-17 16:34:24 -0500130
Brad Bishop7e60f162017-01-12 21:25:04 -0500131OBMC_DBUS_PATH_ROOT ?= "/xyz/openbmc_project"
132OBMC_DBUS_IFACE_ROOT ?= "xyz.openbmc_project"
Brad Bishop01e6b172018-01-26 22:11:36 -0500133
134# VIRTUAL-RUNTIME_phosphor-ipmi-providers are the set of shared library
135# plugins for the host-ipmid application. By default the IPMI FRU plugin
136# is enabled. Additionally the host-ipmid recipe uses
137# VIRTUAL-RUNTIME_phosphor-ipmi-providers to compute a list of potential
138# IPMI whitelist recipe dependencies. For example:
139#
140# VIRTUAL-RUNTIME_phosphor-ipmi-providers ?= "phosphor-ipmi-fru"
141#
142# Will add a build dependency to host-ipmid on the
143# phosphor-ipmi-fru-whitelist-native recipe.
144VIRTUAL-RUNTIME_phosphor-ipmi-providers ?= "phosphor-ipmi-fru"
Richard Marian Thomaiyar4b5a9ef2018-12-12 21:30:30 +0530145
Ed Tanousd47f9a02021-01-25 13:15:36 -0800146# Set security headers on builds
147require conf/distro/include/security_flags.inc
148
Ed Tanousd47f9a02021-01-25 13:15:36 -0800149# obmc-libobmc-intf doesn't compile with security flags enabled
Patrick Williams12fc9392021-08-06 09:16:53 -0500150SECURITY_CFLAGS:pn-obmc-libobmc-intf = ""
Ed Tanousd47f9a02021-01-25 13:15:36 -0800151
William A. Kennington III1a977b22021-05-13 02:33:12 -0700152# We generally want to enable LTO with meson
Patrick Williams12fc9392021-08-06 09:16:53 -0500153EXTRA_OEMESON:append:class-target = " -Db_lto=true"
William A. Kennington III1a977b22021-05-13 02:33:12 -0700154
Richard Marian Thomaiyar4b5a9ef2018-12-12 21:30:30 +0530155# Set the root password to '0penBmc'
Joseph Reynolds516363e2021-08-04 10:01:42 -0500156# Override this in your local.conf
Richard Marian Thomaiyar4b5a9ef2018-12-12 21:30:30 +0530157inherit extrausers
158
Joseph Reynolds356f9e12021-07-23 20:15:32 -0500159# This is the default password for the OpenBMC root user account (0penBmc)
160# salted and hashed with SHA512 suitable for /etc/shadow or `usermod -p`.
161DEFAULT_OPENBMC_PASSWORD = "'\$6\$UGMqyqdG\$GqTb3tXPFx9AJlzTw/8X5RoW2Z.100dT.acuk8AFJfNQYr.ZRL8itMIgLqsdq46RNHgiv78XayOSl.IbR4DFU.'"
162
Patrick Williams12fc9392021-08-06 09:16:53 -0500163EXTRA_USERS_PARAMS:pn-obmc-phosphor-image = " \
Joseph Reynolds356f9e12021-07-23 20:15:32 -0500164 usermod -p ${DEFAULT_OPENBMC_PASSWORD} root; \
Richard Marian Thomaiyar4b5a9ef2018-12-12 21:30:30 +0530165 "