blob: f5feca1f76ed3e603de8a7e9fffc2a1aa79056e5 [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
Konstantin Aladyshevc8bfc632021-05-17 17:16:32 +030015QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el nios2 ppc riscv32 riscv64 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"
65WARN_QA_remove = "${WARN_TO_ERROR_QA}"
66ERROR_QA_append = " ${WARN_TO_ERROR_QA}"
67
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)"
72DISTRO_VERSION = "0.1.0"
73TARGET_VENDOR="-openbmc"
74
Brad Bishop7a83a122018-03-08 22:17:47 -050075VIRTUAL-RUNTIME_keymaps = ""
76
77# Phosphor OpenBMC uses systemd and udev
Brad Bishop7a83a122018-03-08 22:17:47 -050078VIRTUAL-RUNTIME_init_manager = "systemd"
Brad Bishop7a83a122018-03-08 22:17:47 -050079VIRTUAL-RUNTIME_initscripts = ""
80
Brad Bishopd3839342018-03-09 21:48:12 -050081DISTRO_FEATURES_BACKFILL_CONSIDERED = " \
82 bluez5 \
83 ldconfig \
84 gobject-introspection-data \
85 pulseaudio \
86 sysvinit \
87 "
88
89DISTRO_FEATURES_OBMC = " \
90 obmc-host-ctl \
Brad Bishop7a83a122018-03-08 22:17:47 -050091 obmc-host-ipmi \
Brad Bishopd3839342018-03-09 21:48:12 -050092 obmc-phosphor-chassis-mgmt \
93 obmc-phosphor-fan-mgmt \
94 obmc-phosphor-flash-mgmt \
95 obmc-phosphor-system-mgmt \
Brad Bishopd3839342018-03-09 21:48:12 -050096 "
97
98DISTRO_FEATURES_DEFAULT = " \
99 avahi \
Patrick Williams8f58bba2020-05-13 10:51:49 -0500100 ipv4 \
101 ipv6 \
Brad Bishopd3839342018-03-09 21:48:12 -0500102 pam \
103 slp \
104 systemd \
105 "
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
112MACHINE_FEATURES += " \
113 ${OBMC_MACHINE_FEATURES} \
114 "
115
116DISTRO_EXTRA_RDEPENDS_remove_qemuarm = "packagegroup-core-device-devel"
117
Brad Bishop7a83a122018-03-08 22:17:47 -0500118include conf/distro/include/openbmc-phosphor/${MACHINE}.inc
119
Richard Marian Thomaiyara2a20872019-11-02 21:16:40 +0530120IMAGE_CLASSES_append = " image_types_phosphor phosphor-rootfs-postcommands"
William A. Kennington III7a6b1432019-09-16 18:29:53 -0700121IMAGE_CLASSES_append_npcm7xx = " image_types_phosphor_nuvoton"
Brad Bishop7a83a122018-03-08 22:17:47 -0500122
Anton D. Kachalov23e749b2021-02-04 13:13:57 +0100123IMAGE_INSTALL_append = " dbus-broker libnss-systemd"
William A. Kennington IIId73b9cd2019-09-16 17:49:53 -0700124
Brad Bishop0c523422018-06-25 16:53:45 -0400125# Skip the udev database by default. It adds around 2MB
126# compressed to the root filesystem, and probably doesn't
127# make sense on a BMC anyway.
William A. Kennington III79e49342019-09-16 17:50:53 -0700128BAD_RECOMMENDATIONS += "udev-hwdb"
129BAD_RECOMMENDATIONS += "shared-mime-info"
David Cobbley2a5e5712018-06-29 13:27:44 -0700130
Dave Cobbley0639c5b2018-08-24 11:31:04 -0700131LAYER_CONF_VERSION ?= "8"
Lei YUb5a2c262019-05-15 19:52:10 -0400132
133KERNEL_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"