blob: f53e92c7f8b4fa1ffe5f68cc93b94e795354e5c2 [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"
Brad Bishop51ca97e2017-01-26 10:49:22 -05003OBMC_HOST_INSTANCES ?= "0"
Brad Bishop51ca97e2017-01-26 10:49:22 -05004OBMC_POWER_INSTANCES ?= "0"
Brad Bishopf2dd5522016-08-30 08:54:14 -04005
Brad Bishopdb32a7c2017-03-01 16:16:06 -05006# obmc-bmc-state-manager
7#
8# Provides an implementation of the xyz.openbmc_project.State.BMC
9# interface.
10VIRTUAL-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.
16VIRTUAL-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.
22VIRTUAL-RUNTIME_obmc-host-state-manager ?= "phosphor-state-manager-host"
Brad Bishop4f12f722017-02-01 21:04:14 -050023
Michael Tritzb3b58992017-03-31 12:04:32 -050024# 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.
29VIRTUAL-RUNTIME_obmc-discover-system-state ?= "phosphor-state-manager-discover"
30
Matthew Barthacd9fe42017-02-24 13:14:43 -060031# obmc-fan-presence
32#
33# Provides implementations of fan presence detection
34VIRTUAL-RUNTIME_obmc-fan-presence ?= "phosphor-fan-presence-tach"
35
Matt Spinler565e3292017-04-17 16:34:24 -050036# obmc-fan-control
37#
38# Provides implementations of fan control
39VIRTUAL-RUNTIME_obmc-fan-control ?= "phosphor-fan-control"
40
Brad Bishop4f12f722017-02-01 21:04:14 -050041# obmc-inventory-manager
42#
43# Provides an implementation of the xyz.openbmc_project.Inventory.Manager
44# interface.
45VIRTUAL-RUNTIME_obmc-inventory-manager ?= "phosphor-inventory-manager"
46
Brad Bishop4f12f722017-02-01 21:04:14 -050047# obmc-sensors-hwmon
48#
49# Provides an implementation of xyz.openbmc_project.Sensor.Value
50# for hwmon sensors.
51VIRTUAL-RUNTIME_obmc-sensors-hwmon ?= "phosphor-hwmon"
52
Brad Bishop3217b272017-02-22 20:50:13 -050053# phosphor-hwmon-config
54#
55# The phosphor-hwmon package can have its configuration generated
56# automatically if the MRW feature is enabled.
Brad Bishop250a9842018-03-08 23:44:34 -050057VIRTUAL-RUNTIME_phosphor-hwmon-config ?= ""
Brad Bishop3217b272017-02-22 20:50:13 -050058
Patrick Venture98861c52018-02-20 12:19:56 -080059# Configuration overrides for phosphor-ipmi-fru.
Brad Bishop3acb95c2017-01-28 11:53:03 -050060#
61# The phosphor-ipmi-fru application is data-driven and requires an input
Patrick Venture98861c52018-02-20 12:19:56 -080062# 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 Bishop3acb95c2017-01-28 11:53:03 -050066# 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.
70PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-hostfw-config ?= "phosphor-ipmi-fru-hostfw-config-example-native"
71
Brad Bishop0a544b52017-01-28 12:51:42 -050072# 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.
77PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-inventory ?= \
Brad Bishop250a9842018-03-08 23:44:34 -050078 "phosphor-ipmi-fru-inventory-example-native"
Marri Devender Rao7b823182017-06-08 03:17:36 -050079
Deepak Kodihalli48be0fd2017-02-20 04:55:20 -060080PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-properties ?= \
Brad Bishop250a9842018-03-08 23:44:34 -050081 "phosphor-ipmi-fru-properties-native"
Brad Bishop0a544b52017-01-28 12:51:42 -050082
Marri Devender Rao7b823182017-06-08 03:17:36 -050083PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-read-inventory ?= \
Brad Bishop250a9842018-03-08 23:44:34 -050084 "phosphor-ipmi-fru-read-inventory-example-native"
Marri Devender Rao7b823182017-06-08 03:17:36 -050085
Patrick Venture98861c52018-02-20 12:19:56 -080086# Configuration overrides for phosphor-host-ipmid.
87#
88# The phosphor-host-ipmid application is data-driven.
Vishwanatha Subbanna7f07e7d2017-02-11 22:10:23 +053089
Ratan Gupta3aa591f2017-03-06 17:05:11 +053090# 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.
95PREFERRED_PROVIDER_virtual/phosphor-ipmi-sensor-inventory ?= \
Brad Bishop250a9842018-03-08 23:44:34 -050096 "phosphor-ipmi-sensor-inventory-native"
Ratan Gupta3aa591f2017-03-06 17:05:11 +053097
Patrick Venture0b2b1652018-01-18 18:01:29 -080098# The phosphor-host-ipmid application is data-driven and requires an input
Patrick Venture98861c52018-02-20 12:19:56 -080099# 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.
103PREFERRED_PROVIDER_virtual/phosphor-ipmi-inventory-sel ?= \
Brad Bishop250a9842018-03-08 23:44:34 -0500104 "phosphor-ipmi-inventory-sel-native"
Patrick Venture98861c52018-02-20 12:19:56 -0800105
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.
113PREFERRED_PROVIDER_virtual/phosphor-led-manager-config-native ?= \
Brad Bishop250a9842018-03-08 23:44:34 -0500114 "phosphor-led-manager-config-example-native"
Patrick Venture98861c52018-02-20 12:19:56 -0800115
Deepak Kodihalli1f09d4a2017-03-16 06:32:12 -0500116# 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.
123PREFERRED_PROVIDER_virtual/phosphor-logging-callouts ?= \
Brad Bishop250a9842018-03-08 23:44:34 -0500124 "phosphor-logging-callouts-example-native"
Ratan Gupta3aa591f2017-03-06 17:05:11 +0530125
Brad Bishop0e04b2e2019-05-13 13:45:49 -0400126# 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 Spinlerf7d548b2017-03-21 15:02:13 -0500131PREFERRED_PROVIDER_virtual/phosphor-fan-presence-config ?= \
Brad Bishopc8b67b32019-05-13 23:12:55 -0400132 "phosphor-fan-presence-config"
Matt Spinlerf7d548b2017-03-21 15:02:13 -0500133
Brad Bishop0e04b2e2019-05-13 13:45:49 -0400134# 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 Spinler565e3292017-04-17 16:34:24 -0500138PREFERRED_PROVIDER_virtual/phosphor-fan-control-fan-config ?= \
Brad Bishopc8b67b32019-05-13 23:12:55 -0400139 "phosphor-fan-control-fan-config"
Matt Spinler565e3292017-04-17 16:34:24 -0500140
Brad Bishop7e60f162017-01-12 21:25:04 -0500141OBMC_DBUS_PATH_ROOT ?= "/xyz/openbmc_project"
142OBMC_DBUS_IFACE_ROOT ?= "xyz.openbmc_project"
Brad Bishop01e6b172018-01-26 22:11:36 -0500143
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.
154VIRTUAL-RUNTIME_phosphor-ipmi-providers ?= "phosphor-ipmi-fru"
Richard Marian Thomaiyar4b5a9ef2018-12-12 21:30:30 +0530155
Ed Tanousd47f9a02021-01-25 13:15:36 -0800156# Set security headers on builds
157require conf/distro/include/security_flags.inc
158
Ed Tanousd47f9a02021-01-25 13:15:36 -0800159# obmc-libobmc-intf doesn't compile with security flags enabled
Patrick Williams12fc9392021-08-06 09:16:53 -0500160SECURITY_CFLAGS:pn-obmc-libobmc-intf = ""
Ed Tanousd47f9a02021-01-25 13:15:36 -0800161
William A. Kennington III1a977b22021-05-13 02:33:12 -0700162# We generally want to enable LTO with meson
Patrick Williams12fc9392021-08-06 09:16:53 -0500163EXTRA_OEMESON:append:class-target = " -Db_lto=true"
William A. Kennington III1a977b22021-05-13 02:33:12 -0700164
Richard Marian Thomaiyar4b5a9ef2018-12-12 21:30:30 +0530165# Set the root password to '0penBmc'
Joseph Reynolds516363e2021-08-04 10:01:42 -0500166# Override this in your local.conf
Richard Marian Thomaiyar4b5a9ef2018-12-12 21:30:30 +0530167inherit extrausers
168
Joseph Reynolds356f9e12021-07-23 20:15:32 -0500169# 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`.
171DEFAULT_OPENBMC_PASSWORD = "'\$6\$UGMqyqdG\$GqTb3tXPFx9AJlzTw/8X5RoW2Z.100dT.acuk8AFJfNQYr.ZRL8itMIgLqsdq46RNHgiv78XayOSl.IbR4DFU.'"
172
Patrick Williams12fc9392021-08-06 09:16:53 -0500173EXTRA_USERS_PARAMS:pn-obmc-phosphor-image = " \
Joseph Reynolds356f9e12021-07-23 20:15:32 -0500174 usermod -p ${DEFAULT_OPENBMC_PASSWORD} root; \
Richard Marian Thomaiyar4b5a9ef2018-12-12 21:30:30 +0530175 "