blob: a49eb7ca8419a94342b0b3716131fd4c55224b3b [file] [log] [blame]
Brad Bishop4c911772016-08-16 13:23:07 -04001OBMC_BMC_INSTANCES ?= "0"
Brad Bishop51ca97e2017-01-26 10:49:22 -05002OBMC_CHASSIS_INSTANCES ?= "0"
3OBMC_CHECKSTOP_INSTANCES ?= "0"
Brad Bishop4c911772016-08-16 13:23:07 -04004OBMC_FAN_INSTANCES ?= ""
Brad Bishop51ca97e2017-01-26 10:49:22 -05005OBMC_HOST_INSTANCES ?= "0"
6OBMC_POWER_BUTTON_INSTANCES ?= "0"
7OBMC_POWER_INSTANCES ?= "0"
8OBMC_RESET_BUTTON_INSTANCES ?= "0"
9OBMC_WATCHDOG_INSTANCES ?= "0"
Brad Bishopf2dd5522016-08-30 08:54:14 -040010
Brad Bishopdb32a7c2017-03-01 16:16:06 -050011# obmc-bmc-state-manager
12#
13# Provides an implementation of the xyz.openbmc_project.State.BMC
14# interface.
15VIRTUAL-RUNTIME_obmc-bmc-state-manager ?= "phosphor-state-manager-bmc"
16
17# obmc-chassis-state-manager
18#
19# Provides an implementation of the xyz.openbmc_project.State.Chassis
20# interface.
21VIRTUAL-RUNTIME_obmc-chassis-state-manager ?= "phosphor-state-manager-chassis"
22
23# obmc-host-state-manager
24#
25# Provides an implementation of the xyz.openbmc_project.State.Host
26# interface.
27VIRTUAL-RUNTIME_obmc-host-state-manager ?= "phosphor-state-manager-host"
Brad Bishop4f12f722017-02-01 21:04:14 -050028
Michael Tritzb3b58992017-03-31 12:04:32 -050029# obmc-discover-system-state
30#
31# Provides an implementation of phosphor-discover-system-state, which, if the
32# host is powered off, will check the current power policy and, if necessary,
33# power the host back on.
34VIRTUAL-RUNTIME_obmc-discover-system-state ?= "phosphor-state-manager-discover"
35
Matthew Barthacd9fe42017-02-24 13:14:43 -060036# obmc-fan-presence
37#
38# Provides implementations of fan presence detection
39VIRTUAL-RUNTIME_obmc-fan-presence ?= "phosphor-fan-presence-tach"
40
Matt Spinler565e3292017-04-17 16:34:24 -050041# obmc-fan-control
42#
43# Provides implementations of fan control
44VIRTUAL-RUNTIME_obmc-fan-control ?= "phosphor-fan-control"
45
Brad Bishop4f12f722017-02-01 21:04:14 -050046# obmc-inventory-manager
47#
48# Provides an implementation of the xyz.openbmc_project.Inventory.Manager
49# interface.
50VIRTUAL-RUNTIME_obmc-inventory-manager ?= "phosphor-inventory-manager"
51
Brad Bishop4f12f722017-02-01 21:04:14 -050052# obmc-sensors-hwmon
53#
54# Provides an implementation of xyz.openbmc_project.Sensor.Value
55# for hwmon sensors.
56VIRTUAL-RUNTIME_obmc-sensors-hwmon ?= "phosphor-hwmon"
57
Brad Bishop3217b272017-02-22 20:50:13 -050058# phosphor-hwmon-config
59#
60# The phosphor-hwmon package can have its configuration generated
61# automatically if the MRW feature is enabled.
Brad Bishop250a9842018-03-08 23:44:34 -050062VIRTUAL-RUNTIME_phosphor-hwmon-config ?= ""
Brad Bishop3217b272017-02-22 20:50:13 -050063
Patrick Venture98861c52018-02-20 12:19:56 -080064# Configuration overrides for phosphor-ipmi-fru.
Brad Bishop3acb95c2017-01-28 11:53:03 -050065#
66# The phosphor-ipmi-fru application is data-driven and requires an input
Patrick Venture98861c52018-02-20 12:19:56 -080067# mapping of how the host firmware reports inventory via IPMI and the mapping
68# of that inventory metadata to DBus objects interfaces and properties.
69
70# The phosphor-ipmi-fru application is data-driven and requires an input
Brad Bishop3acb95c2017-01-28 11:53:03 -050071# mapping of how the host firmware reports inventory via IPMI.
72# This virtual is a native recipe that provides that mapping by installing
73# configuration files in the format and native sysroot location expected by
74# the phosphor-ipmi-fru build process.
75PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-hostfw-config ?= "phosphor-ipmi-fru-hostfw-config-example-native"
76
Brad Bishop0a544b52017-01-28 12:51:42 -050077# The phosphor-ipmi-fru application is data-driven and requires an input
78# mapping of IPMI inventory metadata to DBus objects interfaces and properties.
79# This virtual is a native recipe that provides that mapping by installing
80# configuration files in the format and native sysroot location expected by
81# the phosphor-ipmi-fru build process in the native sysroot.
82PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-inventory ?= \
Brad Bishop250a9842018-03-08 23:44:34 -050083 "phosphor-ipmi-fru-inventory-example-native"
Marri Devender Rao7b823182017-06-08 03:17:36 -050084
Deepak Kodihalli48be0fd2017-02-20 04:55:20 -060085PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-properties ?= \
Brad Bishop250a9842018-03-08 23:44:34 -050086 "phosphor-ipmi-fru-properties-native"
Brad Bishop0a544b52017-01-28 12:51:42 -050087
Marri Devender Rao7b823182017-06-08 03:17:36 -050088PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-read-inventory ?= \
Brad Bishop250a9842018-03-08 23:44:34 -050089 "phosphor-ipmi-fru-read-inventory-example-native"
Marri Devender Rao7b823182017-06-08 03:17:36 -050090
Patrick Venture98861c52018-02-20 12:19:56 -080091# Configuration overrides for phosphor-host-ipmid.
92#
93# The phosphor-host-ipmid application is data-driven.
Vishwanatha Subbanna7f07e7d2017-02-11 22:10:23 +053094
Ratan Gupta3aa591f2017-03-06 17:05:11 +053095# The phosphor-host-ipmid application is data-driven and requires an input
96# mapping of IPMI inventory sensor metadata to DBus objects interfaces and properties.
97# This virtual is a native recipe that provides that mapping by installing
98# configuration files in the format and native sysroot location expected by
99# the phosphor-host-ipmid build process in the native sysroot.
100PREFERRED_PROVIDER_virtual/phosphor-ipmi-sensor-inventory ?= \
Brad Bishop250a9842018-03-08 23:44:34 -0500101 "phosphor-ipmi-sensor-inventory-native"
Ratan Gupta3aa591f2017-03-06 17:05:11 +0530102
Patrick Venture0b2b1652018-01-18 18:01:29 -0800103# The phosphor-host-ipmid application is data-driven and requires an input
Patrick Venture98861c52018-02-20 12:19:56 -0800104# mapping of inventory object path to the sensor number and sensor metadata.
105# This virtual is a native recipe that provides that mapping by installing
106# configuration files in the format and native sysroot location expected by
107# the phosphor-host-ipmid build process in the native sysroot.
108PREFERRED_PROVIDER_virtual/phosphor-ipmi-inventory-sel ?= \
Brad Bishop250a9842018-03-08 23:44:34 -0500109 "phosphor-ipmi-inventory-sel-native"
Patrick Venture98861c52018-02-20 12:19:56 -0800110
111# Various other overrides.
112
113# The phosphor-led-manager application is data-driven and requires an input
114# yaml of LED group and members.
115# This virtual is a native recipe that provides that mapping by installing
116# configuration files in the format and native sysroot location expected by
117# the phosphor-led-manager build process in the native sysroot.
118PREFERRED_PROVIDER_virtual/phosphor-led-manager-config-native ?= \
Brad Bishop250a9842018-03-08 23:44:34 -0500119 "phosphor-led-manager-config-example-native"
Patrick Venture98861c52018-02-20 12:19:56 -0800120
Deepak Kodihalli1f09d4a2017-03-16 06:32:12 -0500121# The phosphor-logging application has a data driven plugin that adds FRU
122# callout information to error logs, when applications generating error logs
123# add the requisite callout metadata to the systemd journal. The plugin requires
124# an input mapping of Linux sysfs devices to OpenBMC DBus objects.
125# This virtual is a native recipe that provides that mapping by installing
126# configuration files in the format and native sysroot location expected by
127# the phosphor-logging build process in the native sysroot.
128PREFERRED_PROVIDER_virtual/phosphor-logging-callouts ?= \
Brad Bishop250a9842018-03-08 23:44:34 -0500129 "phosphor-logging-callouts-example-native"
Ratan Gupta3aa591f2017-03-06 17:05:11 +0530130
Brad Bishop0e04b2e2019-05-13 13:45:49 -0400131# The phosphor-fan-presence application is data driven and requires an input
132# YAML that maps fans to their tach sensors. This virtual is a recipe that
133# provides that mapping by installing configuration files in the format and
134# sysroot location expected by the phosphor-fan-presence build process in the
135# sysroot.
Matt Spinlerf7d548b2017-03-21 15:02:13 -0500136PREFERRED_PROVIDER_virtual/phosphor-fan-presence-config ?= \
Brad Bishopc8b67b32019-05-13 23:12:55 -0400137 "phosphor-fan-presence-config"
Matt Spinlerf7d548b2017-03-21 15:02:13 -0500138
Brad Bishop0e04b2e2019-05-13 13:45:49 -0400139# The phosphor-fan-control application is data driven and requires a YAML file
140# to define the fans in the system. This virtual is a recipe that provides
141# that definition by installing the YAML file in the format and sysroot
142# location expected by the phosphor-fan-control build process in the sysroot.
Matt Spinler565e3292017-04-17 16:34:24 -0500143PREFERRED_PROVIDER_virtual/phosphor-fan-control-fan-config ?= \
Brad Bishopc8b67b32019-05-13 23:12:55 -0400144 "phosphor-fan-control-fan-config"
Matt Spinler565e3292017-04-17 16:34:24 -0500145
Brad Bishop7e60f162017-01-12 21:25:04 -0500146OBMC_DBUS_PATH_ROOT ?= "/xyz/openbmc_project"
147OBMC_DBUS_IFACE_ROOT ?= "xyz.openbmc_project"
Brad Bishop01e6b172018-01-26 22:11:36 -0500148
149# VIRTUAL-RUNTIME_phosphor-ipmi-providers are the set of shared library
150# plugins for the host-ipmid application. By default the IPMI FRU plugin
151# is enabled. Additionally the host-ipmid recipe uses
152# VIRTUAL-RUNTIME_phosphor-ipmi-providers to compute a list of potential
153# IPMI whitelist recipe dependencies. For example:
154#
155# VIRTUAL-RUNTIME_phosphor-ipmi-providers ?= "phosphor-ipmi-fru"
156#
157# Will add a build dependency to host-ipmid on the
158# phosphor-ipmi-fru-whitelist-native recipe.
159VIRTUAL-RUNTIME_phosphor-ipmi-providers ?= "phosphor-ipmi-fru"
Richard Marian Thomaiyar4b5a9ef2018-12-12 21:30:30 +0530160
Ed Tanousd47f9a02021-01-25 13:15:36 -0800161# Set security headers on builds
162require conf/distro/include/security_flags.inc
163
Ed Tanousd47f9a02021-01-25 13:15:36 -0800164# obmc-libobmc-intf doesn't compile with security flags enabled
Patrick Williams12fc9392021-08-06 09:16:53 -0500165SECURITY_CFLAGS:pn-obmc-libobmc-intf = ""
Ed Tanousd47f9a02021-01-25 13:15:36 -0800166
William A. Kennington III1a977b22021-05-13 02:33:12 -0700167# We generally want to enable LTO with meson
Patrick Williams12fc9392021-08-06 09:16:53 -0500168EXTRA_OEMESON:append:class-target = " -Db_lto=true"
William A. Kennington III1a977b22021-05-13 02:33:12 -0700169
Richard Marian Thomaiyar4b5a9ef2018-12-12 21:30:30 +0530170# Set the root password to '0penBmc'
Joseph Reynolds516363e2021-08-04 10:01:42 -0500171# Override this in your local.conf
Richard Marian Thomaiyar4b5a9ef2018-12-12 21:30:30 +0530172inherit extrausers
173
Joseph Reynolds356f9e12021-07-23 20:15:32 -0500174# This is the default password for the OpenBMC root user account (0penBmc)
175# salted and hashed with SHA512 suitable for /etc/shadow or `usermod -p`.
176DEFAULT_OPENBMC_PASSWORD = "'\$6\$UGMqyqdG\$GqTb3tXPFx9AJlzTw/8X5RoW2Z.100dT.acuk8AFJfNQYr.ZRL8itMIgLqsdq46RNHgiv78XayOSl.IbR4DFU.'"
177
Patrick Williams12fc9392021-08-06 09:16:53 -0500178EXTRA_USERS_PARAMS:pn-obmc-phosphor-image = " \
Joseph Reynolds356f9e12021-07-23 20:15:32 -0500179 usermod -p ${DEFAULT_OPENBMC_PASSWORD} root; \
Richard Marian Thomaiyar4b5a9ef2018-12-12 21:30:30 +0530180 "