blob: 2af46f9d5367f214caa89cdcf7b5225db57f7a2b [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.
Patrick Williamsb389cd92021-12-15 21:34:22 -060035# Git example url: git://git.yoctoproject.org/yocto-firewall-test;protocol=https;rev=master
Andrew Geissler05164d02022-02-10 10:36:05 -060036CONNECTIVITY_CHECK_URIS ?= "https://yoctoproject.org/connectivity.html"
David Cobbley2a5e5712018-06-29 13:27:44 -070037
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
Joel Stanley70d6c5e2022-05-02 11:59:53 +093071DISTRO_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 \
Patrick Williams5a5f33c2021-11-03 10:35:37 -050094 obmc-phosphor-system-mgmt \
Brad Bishopd3839342018-03-09 21:48:12 -050095 "
96
97DISTRO_FEATURES_DEFAULT = " \
98 avahi \
Patrick Williams8f58bba2020-05-13 10:51:49 -050099 ipv4 \
100 ipv6 \
Brad Bishopd3839342018-03-09 21:48:12 -0500101 pam \
Patrick Williamsada9e0f2021-08-24 08:12:58 -0500102 security \
Brad Bishopd3839342018-03-09 21:48:12 -0500103 slp \
104 systemd \
Andrew Geissler0540afd2021-08-30 20:37:00 -0500105 seccomp \
Brad Bishopd3839342018-03-09 21:48:12 -0500106 "
107
Andrew Geisslerfdcb2d92019-10-18 11:04:05 -0500108DISTRO_FEATURES += " \
Brad Bishopd3839342018-03-09 21:48:12 -0500109 ${DISTRO_FEATURES_DEFAULT} \
Brad Bishopd3839342018-03-09 21:48:12 -0500110 ${DISTRO_FEATURES_OBMC} \
Brad Bishop7a83a122018-03-08 22:17:47 -0500111 "
112
Patrick Williams12fc9392021-08-06 09:16:53 -0500113DISTRO_EXTRA_RDEPENDS:remove:qemuarm = "packagegroup-core-device-devel"
Brad Bishop7a83a122018-03-08 22:17:47 -0500114
Brad Bishop7a83a122018-03-08 22:17:47 -0500115include conf/distro/include/openbmc-phosphor/${MACHINE}.inc
116
Patrick Williams12fc9392021-08-06 09:16:53 -0500117IMAGE_CLASSES:append = " image_types_phosphor phosphor-rootfs-postcommands"
118IMAGE_CLASSES:append:npcm7xx = " image_types_phosphor_nuvoton"
Brad Bishop7a83a122018-03-08 22:17:47 -0500119
Patrick Williams12fc9392021-08-06 09:16:53 -0500120IMAGE_INSTALL:append = " dbus-broker libnss-systemd"
William A. Kennington IIId73b9cd2019-09-16 17:49:53 -0700121
Brad Bishop0c523422018-06-25 16:53:45 -0400122# Skip the udev database by default. It adds around 2MB
123# compressed to the root filesystem, and probably doesn't
124# make sense on a BMC anyway.
William A. Kennington III79e49342019-09-16 17:50:53 -0700125BAD_RECOMMENDATIONS += "udev-hwdb"
126BAD_RECOMMENDATIONS += "shared-mime-info"
David Cobbley2a5e5712018-06-29 13:27:44 -0700127
William A. Kennington III97f05262021-12-20 02:06:07 -0800128# e2fsprogs isn't needed on a BMC without MMC, where it gets explicitly added
129BAD_RECOMMENDATIONS += "e2fsprogs-e2fsck"
130
Dave Cobbley0639c5b2018-08-24 11:31:04 -0700131LAYER_CONF_VERSION ?= "8"
Lei YUb5a2c262019-05-15 19:52:10 -0400132
Patrick Williams12fc9392021-08-06 09:16:53 -0500133KERNEL_CLASSES:append = " obmc-phosphor-kernel-version"
Patrick Williams891b1442020-06-12 06:04:25 -0500134
135# Some packages have directory trees of YAML files arranged based on
136# canonical organization names. 'xyz/openbmc_project' should be used
137# everywhere in phosphor, but some layers may append this with their
138# own organization(s).
139OBMC_ORG_YAML_SUBDIRS += " xyz/openbmc_project"