blob: eb977adaddee218a878a58189a267e21f98773f7 [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.
Patrick Williams7cc419f2023-07-19 17:21:00 -050077PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-inventory ?= "phosphor-ipmi-fru-inventory-example-native"
Marri Devender Rao7b823182017-06-08 03:17:36 -050078
Patrick Williams7cc419f2023-07-19 17:21:00 -050079PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-properties ?= "phosphor-ipmi-fru-properties-native"
Brad Bishop0a544b52017-01-28 12:51:42 -050080
Patrick Williams7cc419f2023-07-19 17:21:00 -050081PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-read-inventory ?= "phosphor-ipmi-fru-read-inventory-example-native"
Marri Devender Rao7b823182017-06-08 03:17:36 -050082
Patrick Venture98861c52018-02-20 12:19:56 -080083# Configuration overrides for phosphor-host-ipmid.
84#
85# The phosphor-host-ipmid application is data-driven.
Vishwanatha Subbanna7f07e7d2017-02-11 22:10:23 +053086
Ratan Gupta3aa591f2017-03-06 17:05:11 +053087# The phosphor-host-ipmid application is data-driven and requires an input
88# mapping of IPMI inventory sensor metadata to DBus objects interfaces and properties.
89# This virtual is a native recipe that provides that mapping by installing
90# configuration files in the format and native sysroot location expected by
91# the phosphor-host-ipmid build process in the native sysroot.
Patrick Williams7cc419f2023-07-19 17:21:00 -050092PREFERRED_PROVIDER_virtual/phosphor-ipmi-sensor-inventory ?= "phosphor-ipmi-sensor-inventory-native"
Ratan Gupta3aa591f2017-03-06 17:05:11 +053093
Patrick Venture0b2b1652018-01-18 18:01:29 -080094# The phosphor-host-ipmid application is data-driven and requires an input
Patrick Venture98861c52018-02-20 12:19:56 -080095# mapping of inventory object path to the sensor number and sensor metadata.
96# This virtual is a native recipe that provides that mapping by installing
97# configuration files in the format and native sysroot location expected by
98# the phosphor-host-ipmid build process in the native sysroot.
Patrick Williams7cc419f2023-07-19 17:21:00 -050099PREFERRED_PROVIDER_virtual/phosphor-ipmi-inventory-sel ?= "phosphor-ipmi-inventory-sel-native"
Patrick Venture98861c52018-02-20 12:19:56 -0800100
101# Various other overrides.
102
103# The phosphor-led-manager application is data-driven and requires an input
104# yaml of LED group and members.
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-led-manager build process in the native sysroot.
Patrick Williams7cc419f2023-07-19 17:21:00 -0500108PREFERRED_PROVIDER_virtual/phosphor-led-manager-config-native ?= "phosphor-led-manager-config-example-native"
Patrick Venture98861c52018-02-20 12:19:56 -0800109
Deepak Kodihalli1f09d4a2017-03-16 06:32:12 -0500110# The phosphor-logging application has a data driven plugin that adds FRU
111# callout information to error logs, when applications generating error logs
112# add the requisite callout metadata to the systemd journal. The plugin requires
113# an input mapping of Linux sysfs devices to OpenBMC DBus objects.
114# This virtual is a native recipe that provides that mapping by installing
115# configuration files in the format and native sysroot location expected by
116# the phosphor-logging build process in the native sysroot.
Patrick Williams7cc419f2023-07-19 17:21:00 -0500117PREFERRED_PROVIDER_virtual/phosphor-logging-callouts ?= "phosphor-logging-callouts-example-native"
Ratan Gupta3aa591f2017-03-06 17:05:11 +0530118
Brad Bishop0e04b2e2019-05-13 13:45:49 -0400119# The phosphor-fan-presence application is data driven and requires an input
120# YAML that maps fans to their tach sensors. This virtual is a recipe that
121# provides that mapping by installing configuration files in the format and
122# sysroot location expected by the phosphor-fan-presence build process in the
123# sysroot.
Patrick Williams7cc419f2023-07-19 17:21:00 -0500124PREFERRED_PROVIDER_virtual/phosphor-fan-presence-config ?= "phosphor-fan-presence-config"
Matt Spinlerf7d548b2017-03-21 15:02:13 -0500125
Brad Bishop0e04b2e2019-05-13 13:45:49 -0400126# The phosphor-fan-control application is data driven and requires a YAML file
127# to define the fans in the system. This virtual is a recipe that provides
128# that definition by installing the YAML file in the format and sysroot
129# location expected by the phosphor-fan-control build process in the sysroot.
Patrick Williams7cc419f2023-07-19 17:21:00 -0500130PREFERRED_PROVIDER_virtual/phosphor-fan-control-fan-config ?= "phosphor-fan-control-fan-config"
Matt Spinler565e3292017-04-17 16:34:24 -0500131
Brad Bishop7e60f162017-01-12 21:25:04 -0500132OBMC_DBUS_PATH_ROOT ?= "/xyz/openbmc_project"
133OBMC_DBUS_IFACE_ROOT ?= "xyz.openbmc_project"
Brad Bishop01e6b172018-01-26 22:11:36 -0500134
135# VIRTUAL-RUNTIME_phosphor-ipmi-providers are the set of shared library
136# plugins for the host-ipmid application. By default the IPMI FRU plugin
137# is enabled. Additionally the host-ipmid recipe uses
138# VIRTUAL-RUNTIME_phosphor-ipmi-providers to compute a list of potential
139# IPMI whitelist recipe dependencies. For example:
140#
141# VIRTUAL-RUNTIME_phosphor-ipmi-providers ?= "phosphor-ipmi-fru"
142#
143# Will add a build dependency to host-ipmid on the
144# phosphor-ipmi-fru-whitelist-native recipe.
145VIRTUAL-RUNTIME_phosphor-ipmi-providers ?= "phosphor-ipmi-fru"
Richard Marian Thomaiyar4b5a9ef2018-12-12 21:30:30 +0530146
Ed Tanousd47f9a02021-01-25 13:15:36 -0800147# Set security headers on builds
148require conf/distro/include/security_flags.inc
149
Ed Tanousd47f9a02021-01-25 13:15:36 -0800150# obmc-libobmc-intf doesn't compile with security flags enabled
Patrick Williams12fc9392021-08-06 09:16:53 -0500151SECURITY_CFLAGS:pn-obmc-libobmc-intf = ""
Ed Tanousd47f9a02021-01-25 13:15:36 -0800152
William A. Kennington III1a977b22021-05-13 02:33:12 -0700153# We generally want to enable LTO with meson
Patrick Williams12fc9392021-08-06 09:16:53 -0500154EXTRA_OEMESON:append:class-target = " -Db_lto=true"
William A. Kennington III1a977b22021-05-13 02:33:12 -0700155
Richard Marian Thomaiyar4b5a9ef2018-12-12 21:30:30 +0530156# Set the root password to '0penBmc'
Joseph Reynolds516363e2021-08-04 10:01:42 -0500157# Override this in your local.conf
Richard Marian Thomaiyar4b5a9ef2018-12-12 21:30:30 +0530158inherit extrausers
159
Joseph Reynolds356f9e12021-07-23 20:15:32 -0500160# This is the default password for the OpenBMC root user account (0penBmc)
161# salted and hashed with SHA512 suitable for /etc/shadow or `usermod -p`.
162DEFAULT_OPENBMC_PASSWORD = "'\$6\$UGMqyqdG\$GqTb3tXPFx9AJlzTw/8X5RoW2Z.100dT.acuk8AFJfNQYr.ZRL8itMIgLqsdq46RNHgiv78XayOSl.IbR4DFU.'"
163
Patrick Williams12fc9392021-08-06 09:16:53 -0500164EXTRA_USERS_PARAMS:pn-obmc-phosphor-image = " \
Joseph Reynolds356f9e12021-07-23 20:15:32 -0500165 usermod -p ${DEFAULT_OPENBMC_PASSWORD} root; \
Richard Marian Thomaiyar4b5a9ef2018-12-12 21:30:30 +0530166 "