blob: 0e7e84945b42cc8348abf4e92c02151879b38b8e [file] [log] [blame]
Brad Bishop7a83a122018-03-08 22:17:47 -05001require conf/distro/include/phosphor-defaults.inc
2
David Cobbley2a5e5712018-06-29 13:27:44 -07003# Override these in poky based distros
4POKY_DEFAULT_DISTRO_FEATURES = "largefile opengl ptest multiarch wayland vulkan"
5POKY_DEFAULT_EXTRA_RDEPENDS = "packagegroup-core-boot"
6POKY_DEFAULT_EXTRA_RRECOMMENDS = "kernel-module-af-packet"
7
8DISTRO_EXTRA_RDEPENDS += " ${POKY_DEFAULT_EXTRA_RDEPENDS}"
9DISTRO_EXTRA_RRECOMMENDS += " ${POKY_DEFAULT_EXTRA_RRECOMMENDS}"
10
Brad Bishopf14643d2020-08-12 06:31:39 -040011DISTROOVERRIDES .= ":openbmc-phosphor"
12
David Cobbley2a5e5712018-06-29 13:27:44 -070013TCLIBCAPPEND = ""
14
Anton Blanchard4d1faa82021-08-16 23:32:08 -060015QEMU_TARGETS ?= "arm aarch64 i386 riscv32 riscv64 ppc64le x86_64"
David Cobbley2a5e5712018-06-29 13:27:44 -070016
17PREMIRRORS ??= "\
18bzr://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
19cvs://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
20git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
21gitsm://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
22hg://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
23osc://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
24p4://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
25svn://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"
26
27MIRRORS =+ "\
28ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
29http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
30https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"
31
Gunnar Millse5b38602018-08-31 12:39:15 -050032# The CONNECTIVITY_CHECK_URI's are used to test whether we can successfully
David Cobbley2a5e5712018-06-29 13:27:44 -070033# fetch from the network (and warn you if not). To disable the test set
34# the variable to be empty.
35# Git example url: git://git.yoctoproject.org/yocto-firewall-test;protocol=git;rev=master
36CONNECTIVITY_CHECK_URIS ?= "https://www.example.com/"
37
38SANITY_TESTED_DISTROS ?= " \
39 poky-2.4 \n \
40 poky-2.5 \n \
41 ubuntu-15.04 \n \
42 ubuntu-16.04 \n \
43 ubuntu-16.10 \n \
44 ubuntu-17.04 \n \
45 fedora-26 \n \
46 centos-7 \n \
47 debian-8 \n \
48 debian-9 \n \
49 opensuse-42.1 \n \
50 opensuse-42.2 \n \
51 "
52#
53# OELAYOUT_ABI allows us to notify users when the format of TMPDIR changes in
54# an incompatible way. Such changes should usually be detailed in the commit
55# that breaks the format and have been previously discussed on the mailing list
56# with general agreement from the core team.
57#
58
59OELAYOUT_ABI = "12"
60
David Cobbley2a5e5712018-06-29 13:27:44 -070061# QA check settings - a little stricter than the OE-Core defaults
62WARN_TO_ERROR_QA = "already-stripped compile-host-path install-host-path \
63 installed-vs-shipped ldflags pn-overrides rpaths staticdev \
64 useless-rpaths"
Patrick Williams12fc9392021-08-06 09:16:53 -050065WARN_QA:remove = "${WARN_TO_ERROR_QA}"
66ERROR_QA:append = " ${WARN_TO_ERROR_QA}"
David Cobbley2a5e5712018-06-29 13:27:44 -070067
David Cobbley2a5e5712018-06-29 13:27:44 -070068require conf/distro/include/no-static-libs.inc
Patrick Williams5e3ca932020-01-18 14:14:31 -060069require conf/distro/include/yocto-uninative.inc
David Cobbley2a5e5712018-06-29 13:27:44 -070070
Brad Bishop7a83a122018-03-08 22:17:47 -050071DISTRO_NAME = "Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro)"
Brad Bishop7a83a122018-03-08 22:17:47 -050072TARGET_VENDOR="-openbmc"
73
Brad Bishop7a83a122018-03-08 22:17:47 -050074VIRTUAL-RUNTIME_keymaps = ""
75
76# Phosphor OpenBMC uses systemd and udev
Brad Bishop7a83a122018-03-08 22:17:47 -050077VIRTUAL-RUNTIME_init_manager = "systemd"
Brad Bishop7a83a122018-03-08 22:17:47 -050078VIRTUAL-RUNTIME_initscripts = ""
79
Brad Bishopd3839342018-03-09 21:48:12 -050080DISTRO_FEATURES_BACKFILL_CONSIDERED = " \
81 bluez5 \
82 ldconfig \
83 gobject-introspection-data \
84 pulseaudio \
85 sysvinit \
86 "
87
88DISTRO_FEATURES_OBMC = " \
89 obmc-host-ctl \
Brad Bishop7a83a122018-03-08 22:17:47 -050090 obmc-host-ipmi \
Brad Bishopd3839342018-03-09 21:48:12 -050091 obmc-phosphor-chassis-mgmt \
92 obmc-phosphor-fan-mgmt \
93 obmc-phosphor-flash-mgmt \
Brad Bishopd3839342018-03-09 21:48:12 -050094 "
95
96DISTRO_FEATURES_DEFAULT = " \
97 avahi \
Patrick Williams8f58bba2020-05-13 10:51:49 -050098 ipv4 \
99 ipv6 \
Brad Bishopd3839342018-03-09 21:48:12 -0500100 pam \
Patrick Williamsada9e0f2021-08-24 08:12:58 -0500101 security \
Brad Bishopd3839342018-03-09 21:48:12 -0500102 slp \
103 systemd \
Andrew Geissler0540afd2021-08-30 20:37:00 -0500104 seccomp \
Brad Bishopd3839342018-03-09 21:48:12 -0500105 "
106
Andrew Geisslerfdcb2d92019-10-18 11:04:05 -0500107DISTRO_FEATURES += " \
Brad Bishopd3839342018-03-09 21:48:12 -0500108 ${DISTRO_FEATURES_DEFAULT} \
Brad Bishopd3839342018-03-09 21:48:12 -0500109 ${DISTRO_FEATURES_OBMC} \
Brad Bishop7a83a122018-03-08 22:17:47 -0500110 "
111
Patrick Williams12fc9392021-08-06 09:16:53 -0500112DISTRO_EXTRA_RDEPENDS:remove:qemuarm = "packagegroup-core-device-devel"
Brad Bishop7a83a122018-03-08 22:17:47 -0500113
Brad Bishop7a83a122018-03-08 22:17:47 -0500114include conf/distro/include/openbmc-phosphor/${MACHINE}.inc
115
Patrick Williams12fc9392021-08-06 09:16:53 -0500116IMAGE_CLASSES:append = " image_types_phosphor phosphor-rootfs-postcommands"
117IMAGE_CLASSES:append:npcm7xx = " image_types_phosphor_nuvoton"
Brad Bishop7a83a122018-03-08 22:17:47 -0500118
Patrick Williams12fc9392021-08-06 09:16:53 -0500119IMAGE_INSTALL:append = " dbus-broker libnss-systemd"
William A. Kennington IIId73b9cd2019-09-16 17:49:53 -0700120
Brad Bishop0c523422018-06-25 16:53:45 -0400121# Skip the udev database by default. It adds around 2MB
122# compressed to the root filesystem, and probably doesn't
123# make sense on a BMC anyway.
William A. Kennington III79e49342019-09-16 17:50:53 -0700124BAD_RECOMMENDATIONS += "udev-hwdb"
125BAD_RECOMMENDATIONS += "shared-mime-info"
David Cobbley2a5e5712018-06-29 13:27:44 -0700126
Dave Cobbley0639c5b2018-08-24 11:31:04 -0700127LAYER_CONF_VERSION ?= "8"
Lei YUb5a2c262019-05-15 19:52:10 -0400128
Patrick Williams12fc9392021-08-06 09:16:53 -0500129KERNEL_CLASSES:append = " obmc-phosphor-kernel-version"
Patrick Williams891b1442020-06-12 06:04:25 -0500130
131# Some packages have directory trees of YAML files arranged based on
132# canonical organization names. 'xyz/openbmc_project' should be used
133# everywhere in phosphor, but some layers may append this with their
134# own organization(s).
135OBMC_ORG_YAML_SUBDIRS += " xyz/openbmc_project"