blob: 3a1f2a051288e2305f6df8136da134cf278799fc [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
Brad Bishop1b9a7492020-08-12 06:31:39 -040011DISTROOVERRIDES .= ":openbmc-phosphor"
12
David Cobbleye4a46f12018-06-29 13:27:44 -070013POKYQEMUDEPS = "${@bb.utils.contains("INCOMPATIBLE_LICENSE", "GPL-3.0", "", "packagegroup-core-device-devel",d)}"
14DISTRO_EXTRA_RDEPENDS_append_qemuarm = " ${POKYQEMUDEPS}"
15DISTRO_EXTRA_RDEPENDS_append_qemuarm64 = " ${POKYQEMUDEPS}"
16DISTRO_EXTRA_RDEPENDS_append_qemumips = " ${POKYQEMUDEPS}"
17DISTRO_EXTRA_RDEPENDS_append_qemuppc = " ${POKYQEMUDEPS}"
18DISTRO_EXTRA_RDEPENDS_append_qemux86 = " ${POKYQEMUDEPS}"
19DISTRO_EXTRA_RDEPENDS_append_qemux86-64 = " ${POKYQEMUDEPS}"
20
21TCLIBCAPPEND = ""
22
23QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el nios2 ppc x86_64"
24
25PREMIRRORS ??= "\
26bzr://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
27cvs://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
28git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
29gitsm://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
30hg://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
31osc://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
32p4://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
33svn://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"
34
35MIRRORS =+ "\
36ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
37http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
38https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"
39
Gunnar Mills38f27112018-08-31 12:39:15 -050040# The CONNECTIVITY_CHECK_URI's are used to test whether we can successfully
David Cobbleye4a46f12018-06-29 13:27:44 -070041# fetch from the network (and warn you if not). To disable the test set
42# the variable to be empty.
43# Git example url: git://git.yoctoproject.org/yocto-firewall-test;protocol=git;rev=master
44CONNECTIVITY_CHECK_URIS ?= "https://www.example.com/"
45
46SANITY_TESTED_DISTROS ?= " \
47 poky-2.4 \n \
48 poky-2.5 \n \
49 ubuntu-15.04 \n \
50 ubuntu-16.04 \n \
51 ubuntu-16.10 \n \
52 ubuntu-17.04 \n \
53 fedora-26 \n \
54 centos-7 \n \
55 debian-8 \n \
56 debian-9 \n \
57 opensuse-42.1 \n \
58 opensuse-42.2 \n \
59 "
60#
61# OELAYOUT_ABI allows us to notify users when the format of TMPDIR changes in
62# an incompatible way. Such changes should usually be detailed in the commit
63# that breaks the format and have been previously discussed on the mailing list
64# with general agreement from the core team.
65#
66
67OELAYOUT_ABI = "12"
68
David Cobbleye4a46f12018-06-29 13:27:44 -070069# QA check settings - a little stricter than the OE-Core defaults
70WARN_TO_ERROR_QA = "already-stripped compile-host-path install-host-path \
71 installed-vs-shipped ldflags pn-overrides rpaths staticdev \
72 useless-rpaths"
73WARN_QA_remove = "${WARN_TO_ERROR_QA}"
74ERROR_QA_append = " ${WARN_TO_ERROR_QA}"
75
David Cobbleye4a46f12018-06-29 13:27:44 -070076require conf/distro/include/no-static-libs.inc
Patrick Williamsea487832020-01-18 14:14:31 -060077require conf/distro/include/yocto-uninative.inc
David Cobbleye4a46f12018-06-29 13:27:44 -070078
Brad Bishop6ace9d32018-03-08 22:17:47 -050079DISTRO_NAME = "Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro)"
80DISTRO_VERSION = "0.1.0"
81TARGET_VENDOR="-openbmc"
82
Brad Bishop6ace9d32018-03-08 22:17:47 -050083VIRTUAL-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 = " \
Brad Bishop5a1fc9e2020-03-19 14:49:00 -040098 ipmi-fru \
Brad Bishop7c759712018-03-09 21:48:12 -050099 obmc-host-ctl \
Brad Bishop6ace9d32018-03-08 22:17:47 -0500100 obmc-host-ipmi \
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 \
Brad Bishop7c759712018-03-09 21:48:12 -0500105 "
106
107DISTRO_FEATURES_DEFAULT = " \
108 avahi \
Patrick Williams48774282020-05-13 10:51:49 -0500109 ipv4 \
110 ipv6 \
Brad Bishop7c759712018-03-09 21:48:12 -0500111 pam \
112 slp \
113 systemd \
114 "
115
Andrew Geissler17801b42019-10-18 11:04:05 -0500116DISTRO_FEATURES += " \
Brad Bishop7c759712018-03-09 21:48:12 -0500117 ${DISTRO_FEATURES_DEFAULT} \
Brad Bishop7c759712018-03-09 21:48:12 -0500118 ${DISTRO_FEATURES_OBMC} \
Brad Bishop6ace9d32018-03-08 22:17:47 -0500119 "
120
121MACHINE_FEATURES += " \
122 ${OBMC_MACHINE_FEATURES} \
123 "
124
125DISTRO_EXTRA_RDEPENDS_remove_qemuarm = "packagegroup-core-device-devel"
126
Brad Bishop6ace9d32018-03-08 22:17:47 -0500127include conf/distro/include/openbmc-phosphor/${MACHINE}.inc
128
Brad Bishop6ace9d32018-03-08 22:17:47 -0500129KERNEL_FEATURES_append = " phosphor-gpio-keys"
130KERNEL_FEATURES_remove_qemuall = " phosphor-gpio-keys"
131
Richard Marian Thomaiyarb1b82512019-11-02 21:16:40 +0530132IMAGE_CLASSES_append = " image_types_phosphor phosphor-rootfs-postcommands"
William A. Kennington III9819cb92019-09-16 18:29:53 -0700133IMAGE_CLASSES_append_npcm7xx = " image_types_phosphor_nuvoton"
Brad Bishop6ace9d32018-03-08 22:17:47 -0500134
William A. Kennington IIIf8196002019-09-16 17:49:53 -0700135IMAGE_INSTALL_append = " dbus-broker"
136
Brad Bishop87b3f372018-06-25 16:53:45 -0400137# Skip the udev database by default. It adds around 2MB
138# compressed to the root filesystem, and probably doesn't
139# make sense on a BMC anyway.
William A. Kennington III563b83b2019-09-16 17:50:53 -0700140BAD_RECOMMENDATIONS += "udev-hwdb"
141BAD_RECOMMENDATIONS += "shared-mime-info"
David Cobbleye4a46f12018-06-29 13:27:44 -0700142
Dave Cobbley81de4b22018-08-24 11:31:04 -0700143LAYER_CONF_VERSION ?= "8"
Lei YUfcfd10d2019-05-15 19:52:10 -0400144
145KERNEL_CLASSES_append = " obmc-phosphor-kernel-version"
Patrick Williams2f31e7a2020-06-12 06:04:25 -0500146
147# Some packages have directory trees of YAML files arranged based on
148# canonical organization names. 'xyz/openbmc_project' should be used
149# everywhere in phosphor, but some layers may append this with their
150# own organization(s).
151OBMC_ORG_YAML_SUBDIRS += " xyz/openbmc_project"