blob: bd2dcace9cc4b5b65306360a707f851cca015192 [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
11POKYQEMUDEPS = "${@bb.utils.contains("INCOMPATIBLE_LICENSE", "GPL-3.0", "", "packagegroup-core-device-devel",d)}"
12DISTRO_EXTRA_RDEPENDS_append_qemuarm = " ${POKYQEMUDEPS}"
13DISTRO_EXTRA_RDEPENDS_append_qemuarm64 = " ${POKYQEMUDEPS}"
14DISTRO_EXTRA_RDEPENDS_append_qemumips = " ${POKYQEMUDEPS}"
15DISTRO_EXTRA_RDEPENDS_append_qemuppc = " ${POKYQEMUDEPS}"
16DISTRO_EXTRA_RDEPENDS_append_qemux86 = " ${POKYQEMUDEPS}"
17DISTRO_EXTRA_RDEPENDS_append_qemux86-64 = " ${POKYQEMUDEPS}"
18
19TCLIBCAPPEND = ""
20
21QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el nios2 ppc x86_64"
22
23PREMIRRORS ??= "\
24bzr://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
25cvs://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
26git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
27gitsm://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
28hg://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
29osc://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
30p4://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
31svn://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"
32
33MIRRORS =+ "\
34ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
35http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
36https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"
37
Gunnar Millse5b38602018-08-31 12:39:15 -050038# The CONNECTIVITY_CHECK_URI's are used to test whether we can successfully
David Cobbley2a5e5712018-06-29 13:27:44 -070039# fetch from the network (and warn you if not). To disable the test set
40# the variable to be empty.
41# Git example url: git://git.yoctoproject.org/yocto-firewall-test;protocol=git;rev=master
42CONNECTIVITY_CHECK_URIS ?= "https://www.example.com/"
43
44SANITY_TESTED_DISTROS ?= " \
45 poky-2.4 \n \
46 poky-2.5 \n \
47 ubuntu-15.04 \n \
48 ubuntu-16.04 \n \
49 ubuntu-16.10 \n \
50 ubuntu-17.04 \n \
51 fedora-26 \n \
52 centos-7 \n \
53 debian-8 \n \
54 debian-9 \n \
55 opensuse-42.1 \n \
56 opensuse-42.2 \n \
57 "
58#
59# OELAYOUT_ABI allows us to notify users when the format of TMPDIR changes in
60# an incompatible way. Such changes should usually be detailed in the commit
61# that breaks the format and have been previously discussed on the mailing list
62# with general agreement from the core team.
63#
64
65OELAYOUT_ABI = "12"
66
David Cobbley2a5e5712018-06-29 13:27:44 -070067# QA check settings - a little stricter than the OE-Core defaults
68WARN_TO_ERROR_QA = "already-stripped compile-host-path install-host-path \
69 installed-vs-shipped ldflags pn-overrides rpaths staticdev \
70 useless-rpaths"
71WARN_QA_remove = "${WARN_TO_ERROR_QA}"
72ERROR_QA_append = " ${WARN_TO_ERROR_QA}"
73
David Cobbley2a5e5712018-06-29 13:27:44 -070074require conf/distro/include/no-static-libs.inc
Patrick Williams5e3ca932020-01-18 14:14:31 -060075require conf/distro/include/yocto-uninative.inc
David Cobbley2a5e5712018-06-29 13:27:44 -070076
Brad Bishop7a83a122018-03-08 22:17:47 -050077DISTRO = "openbmc-phosphor"
78DISTRO_NAME = "Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro)"
79DISTRO_VERSION = "0.1.0"
80TARGET_VENDOR="-openbmc"
81
Brad Bishop7a83a122018-03-08 22:17:47 -050082VIRTUAL-RUNTIME_keymaps = ""
83
84# Phosphor OpenBMC uses systemd and udev
Brad Bishop7a83a122018-03-08 22:17:47 -050085VIRTUAL-RUNTIME_init_manager = "systemd"
Brad Bishop7a83a122018-03-08 22:17:47 -050086VIRTUAL-RUNTIME_initscripts = ""
87
Brad Bishopd3839342018-03-09 21:48:12 -050088DISTRO_FEATURES_BACKFILL_CONSIDERED = " \
89 bluez5 \
90 ldconfig \
91 gobject-introspection-data \
92 pulseaudio \
93 sysvinit \
94 "
95
96DISTRO_FEATURES_OBMC = " \
97 obmc-host-ctl \
Brad Bishop7a83a122018-03-08 22:17:47 -050098 obmc-host-ipmi \
Brad Bishopd3839342018-03-09 21:48:12 -050099 obmc-phosphor-chassis-mgmt \
100 obmc-phosphor-fan-mgmt \
101 obmc-phosphor-flash-mgmt \
102 obmc-phosphor-system-mgmt \
Brad Bishopd3839342018-03-09 21:48:12 -0500103 "
104
105DISTRO_FEATURES_DEFAULT = " \
106 avahi \
107 pam \
108 slp \
109 systemd \
Ratan Gupta4f2925c2018-09-07 17:12:16 +0530110 ldap \
Ratan Guptad1293052018-09-03 16:45:18 +0530111 libc-inet-anl \
Brad Bishopd3839342018-03-09 21:48:12 -0500112 "
113
Andrew Geisslerfdcb2d92019-10-18 11:04:05 -0500114DISTRO_FEATURES += " \
Brad Bishopd3839342018-03-09 21:48:12 -0500115 ${DISTRO_FEATURES_DEFAULT} \
Brad Bishop7a83a122018-03-08 22:17:47 -0500116 ${DISTRO_FEATURES_LIBC} \
Brad Bishopd3839342018-03-09 21:48:12 -0500117 ${DISTRO_FEATURES_OBMC} \
Brad Bishop7a83a122018-03-08 22:17:47 -0500118 "
119
120MACHINE_FEATURES += " \
121 ${OBMC_MACHINE_FEATURES} \
122 "
123
124DISTRO_EXTRA_RDEPENDS_remove_qemuarm = "packagegroup-core-device-devel"
125
126# TODO: openbmc/openbmc#12345 - Upgrade to pygobject-3.
127PREFERRED_VERSION_python-pygobject = "2.%"
128
Brad Bishop7a83a122018-03-08 22:17:47 -0500129include conf/distro/include/openbmc-phosphor/${MACHINE}.inc
130
Brad Bishop7a83a122018-03-08 22:17:47 -0500131KERNEL_FEATURES_append = " phosphor-gpio-keys"
132KERNEL_FEATURES_remove_qemuall = " phosphor-gpio-keys"
133
Richard Marian Thomaiyara2a20872019-11-02 21:16:40 +0530134IMAGE_CLASSES_append = " image_types_phosphor phosphor-rootfs-postcommands"
William A. Kennington III7a6b1432019-09-16 18:29:53 -0700135IMAGE_CLASSES_append_npcm7xx = " image_types_phosphor_nuvoton"
Brad Bishop7a83a122018-03-08 22:17:47 -0500136
William A. Kennington IIId73b9cd2019-09-16 17:49:53 -0700137IMAGE_INSTALL_append = " dbus-broker"
138
Brad Bishop0c523422018-06-25 16:53:45 -0400139# Skip the udev database by default. It adds around 2MB
140# compressed to the root filesystem, and probably doesn't
141# make sense on a BMC anyway.
William A. Kennington III79e49342019-09-16 17:50:53 -0700142BAD_RECOMMENDATIONS += "udev-hwdb"
143BAD_RECOMMENDATIONS += "shared-mime-info"
David Cobbley2a5e5712018-06-29 13:27:44 -0700144
Dave Cobbley0639c5b2018-08-24 11:31:04 -0700145LAYER_CONF_VERSION ?= "8"
Lei YUb5a2c262019-05-15 19:52:10 -0400146
147KERNEL_CLASSES_append = " obmc-phosphor-kernel-version"