blob: dba3fe45d9cf93d79bd08a918143773605f03661 [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 \
94 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 \
102 slp \
103 systemd \
104 "
105
Andrew Geisslerfdcb2d92019-10-18 11:04:05 -0500106DISTRO_FEATURES += " \
Brad Bishopd3839342018-03-09 21:48:12 -0500107 ${DISTRO_FEATURES_DEFAULT} \
Brad Bishopd3839342018-03-09 21:48:12 -0500108 ${DISTRO_FEATURES_OBMC} \
Brad Bishop7a83a122018-03-08 22:17:47 -0500109 "
110
111MACHINE_FEATURES += " \
112 ${OBMC_MACHINE_FEATURES} \
113 "
114
Patrick Williams12fc9392021-08-06 09:16:53 -0500115DISTRO_EXTRA_RDEPENDS:remove:qemuarm = "packagegroup-core-device-devel"
Brad Bishop7a83a122018-03-08 22:17:47 -0500116
Brad Bishop7a83a122018-03-08 22:17:47 -0500117include conf/distro/include/openbmc-phosphor/${MACHINE}.inc
118
Patrick Williams12fc9392021-08-06 09:16:53 -0500119IMAGE_CLASSES:append = " image_types_phosphor phosphor-rootfs-postcommands"
120IMAGE_CLASSES:append:npcm7xx = " image_types_phosphor_nuvoton"
Brad Bishop7a83a122018-03-08 22:17:47 -0500121
Patrick Williams12fc9392021-08-06 09:16:53 -0500122IMAGE_INSTALL:append = " dbus-broker libnss-systemd"
William A. Kennington IIId73b9cd2019-09-16 17:49:53 -0700123
Brad Bishop0c523422018-06-25 16:53:45 -0400124# Skip the udev database by default. It adds around 2MB
125# compressed to the root filesystem, and probably doesn't
126# make sense on a BMC anyway.
William A. Kennington III79e49342019-09-16 17:50:53 -0700127BAD_RECOMMENDATIONS += "udev-hwdb"
128BAD_RECOMMENDATIONS += "shared-mime-info"
David Cobbley2a5e5712018-06-29 13:27:44 -0700129
Dave Cobbley0639c5b2018-08-24 11:31:04 -0700130LAYER_CONF_VERSION ?= "8"
Lei YUb5a2c262019-05-15 19:52:10 -0400131
Patrick Williams12fc9392021-08-06 09:16:53 -0500132KERNEL_CLASSES:append = " obmc-phosphor-kernel-version"
Patrick Williams891b1442020-06-12 06:04:25 -0500133
134# Some packages have directory trees of YAML files arranged based on
135# canonical organization names. 'xyz/openbmc_project' should be used
136# everywhere in phosphor, but some layers may append this with their
137# own organization(s).
138OBMC_ORG_YAML_SUBDIRS += " xyz/openbmc_project"