blob: 6bfef375a65da44f583d6f3b2e34961f3f27c71c [file] [log] [blame]
Brad Bishop6ace9d32018-03-08 22:17:47 -05001require conf/distro/include/phosphor-defaults.inc
2
David Cobbleye4a46f12018-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 Mills38f27112018-08-31 12:39:15 -050038# The CONNECTIVITY_CHECK_URI's are used to test whether we can successfully
David Cobbleye4a46f12018-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 Cobbleye4a46f12018-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 Cobbleye4a46f12018-06-29 13:27:44 -070074require conf/distro/include/no-static-libs.inc
David Cobbleye4a46f12018-06-29 13:27:44 -070075
Brad Bishop6ace9d32018-03-08 22:17:47 -050076DISTRO = "openbmc-phosphor"
77DISTRO_NAME = "Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro)"
78DISTRO_VERSION = "0.1.0"
79TARGET_VENDOR="-openbmc"
80
81IMAGE_LINGUAS = "en-us"
82
83VIRTUAL-RUNTIME_keymaps = ""
84
85# Phosphor OpenBMC uses systemd and udev
Brad Bishop6ace9d32018-03-08 22:17:47 -050086VIRTUAL-RUNTIME_init_manager = "systemd"
Brad Bishop6ace9d32018-03-08 22:17:47 -050087VIRTUAL-RUNTIME_initscripts = ""
88
Brad Bishop7c759712018-03-09 21:48:12 -050089DISTRO_FEATURES_BACKFILL_CONSIDERED = " \
90 bluez5 \
91 ldconfig \
92 gobject-introspection-data \
93 pulseaudio \
94 sysvinit \
95 "
96
97DISTRO_FEATURES_OBMC = " \
98 obmc-host-ctl \
Brad Bishop6ace9d32018-03-08 22:17:47 -050099 obmc-host-ipmi \
Brad Bishop6ace9d32018-03-08 22:17:47 -0500100 obmc-logging-mgmt \
Brad Bishop7c759712018-03-09 21:48:12 -0500101 obmc-phosphor-chassis-mgmt \
102 obmc-phosphor-fan-mgmt \
103 obmc-phosphor-flash-mgmt \
104 obmc-phosphor-system-mgmt \
105 obmc-phosphor-user-mgmt \
106 obmc-settings-mgmt \
107 "
108
109DISTRO_FEATURES_DEFAULT = " \
110 avahi \
111 pam \
112 slp \
113 systemd \
Ratan Guptab40b3f92018-09-07 17:12:16 +0530114 ldap \
Ratan Guptaccf58b52018-09-03 16:45:18 +0530115 libc-inet-anl \
Brad Bishop7c759712018-03-09 21:48:12 -0500116 "
117
118DISTRO_FEATURES = " \
119 ${DISTRO_FEATURES_DEFAULT} \
Brad Bishop6ace9d32018-03-08 22:17:47 -0500120 ${DISTRO_FEATURES_LIBC} \
Brad Bishop7c759712018-03-09 21:48:12 -0500121 ${DISTRO_FEATURES_OBMC} \
Brad Bishop6ace9d32018-03-08 22:17:47 -0500122 "
123
124MACHINE_FEATURES += " \
125 ${OBMC_MACHINE_FEATURES} \
126 "
127
128DISTRO_EXTRA_RDEPENDS_remove_qemuarm = "packagegroup-core-device-devel"
129
130# TODO: openbmc/openbmc#12345 - Upgrade to pygobject-3.
131PREFERRED_VERSION_python-pygobject = "2.%"
132
Brad Bishop6ace9d32018-03-08 22:17:47 -0500133include conf/distro/include/openbmc-phosphor/${MACHINE}.inc
134
Brad Bishop6ace9d32018-03-08 22:17:47 -0500135KERNEL_FEATURES_append = " phosphor-gpio-keys"
136KERNEL_FEATURES_remove_qemuall = " phosphor-gpio-keys"
137
138IMAGE_CLASSES_append = " image_types_phosphor"
139
140# OpenBMC uses a couple recipes from meta-virtualization
141# but we do not actually want any virtualization support
142# enabled on a BMC distribution. Silence the emitted
143# warning.
144SKIP_META_VIRT_SANITY_CHECK = "1"
Brad Bishop87b3f372018-06-25 16:53:45 -0400145
146# Skip the udev database by default. It adds around 2MB
147# compressed to the root filesystem, and probably doesn't
148# make sense on a BMC anyway.
149BAD_RECOMMENDATIONS_pn-obmc-phosphor-image = "udev-hwdb"
David Cobbleye4a46f12018-06-29 13:27:44 -0700150
Dave Cobbley81de4b22018-08-24 11:31:04 -0700151LAYER_CONF_VERSION ?= "8"