Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 1 | require conf/distro/include/phosphor-defaults.inc |
| 2 | |
David Cobbley | 2a5e571 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 3 | # Override these in poky based distros |
| 4 | POKY_DEFAULT_DISTRO_FEATURES = "largefile opengl ptest multiarch wayland vulkan" |
| 5 | POKY_DEFAULT_EXTRA_RDEPENDS = "packagegroup-core-boot" |
| 6 | POKY_DEFAULT_EXTRA_RRECOMMENDS = "kernel-module-af-packet" |
| 7 | |
| 8 | DISTRO_EXTRA_RDEPENDS += " ${POKY_DEFAULT_EXTRA_RDEPENDS}" |
| 9 | DISTRO_EXTRA_RRECOMMENDS += " ${POKY_DEFAULT_EXTRA_RRECOMMENDS}" |
| 10 | |
| 11 | POKYQEMUDEPS = "${@bb.utils.contains("INCOMPATIBLE_LICENSE", "GPL-3.0", "", "packagegroup-core-device-devel",d)}" |
| 12 | DISTRO_EXTRA_RDEPENDS_append_qemuarm = " ${POKYQEMUDEPS}" |
| 13 | DISTRO_EXTRA_RDEPENDS_append_qemuarm64 = " ${POKYQEMUDEPS}" |
| 14 | DISTRO_EXTRA_RDEPENDS_append_qemumips = " ${POKYQEMUDEPS}" |
| 15 | DISTRO_EXTRA_RDEPENDS_append_qemuppc = " ${POKYQEMUDEPS}" |
| 16 | DISTRO_EXTRA_RDEPENDS_append_qemux86 = " ${POKYQEMUDEPS}" |
| 17 | DISTRO_EXTRA_RDEPENDS_append_qemux86-64 = " ${POKYQEMUDEPS}" |
| 18 | |
| 19 | TCLIBCAPPEND = "" |
| 20 | |
| 21 | QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el nios2 ppc x86_64" |
| 22 | |
| 23 | PREMIRRORS ??= "\ |
| 24 | bzr://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 25 | cvs://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 26 | git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 27 | gitsm://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 28 | hg://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 29 | osc://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 30 | p4://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 31 | svn://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n" |
| 32 | |
| 33 | MIRRORS =+ "\ |
| 34 | ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 35 | http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 36 | https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n" |
| 37 | |
Gunnar Mills | e5b3860 | 2018-08-31 12:39:15 -0500 | [diff] [blame] | 38 | # The CONNECTIVITY_CHECK_URI's are used to test whether we can successfully |
David Cobbley | 2a5e571 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 39 | # 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 |
| 42 | CONNECTIVITY_CHECK_URIS ?= "https://www.example.com/" |
| 43 | |
| 44 | SANITY_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 | |
| 65 | OELAYOUT_ABI = "12" |
| 66 | |
| 67 | # add poky sanity bbclass |
| 68 | INHERIT += "poky-sanity" |
| 69 | |
| 70 | # QA check settings - a little stricter than the OE-Core defaults |
| 71 | WARN_TO_ERROR_QA = "already-stripped compile-host-path install-host-path \ |
| 72 | installed-vs-shipped ldflags pn-overrides rpaths staticdev \ |
| 73 | useless-rpaths" |
| 74 | WARN_QA_remove = "${WARN_TO_ERROR_QA}" |
| 75 | ERROR_QA_append = " ${WARN_TO_ERROR_QA}" |
| 76 | |
| 77 | require conf/distro/include/poky-world-exclude.inc |
| 78 | require conf/distro/include/no-static-libs.inc |
| 79 | require conf/distro/include/yocto-uninative.inc |
| 80 | INHERIT += "uninative" |
| 81 | |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 82 | DISTRO = "openbmc-phosphor" |
| 83 | DISTRO_NAME = "Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro)" |
| 84 | DISTRO_VERSION = "0.1.0" |
| 85 | TARGET_VENDOR="-openbmc" |
| 86 | |
| 87 | IMAGE_LINGUAS = "en-us" |
| 88 | |
| 89 | VIRTUAL-RUNTIME_keymaps = "" |
| 90 | |
| 91 | # Phosphor OpenBMC uses systemd and udev |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 92 | VIRTUAL-RUNTIME_init_manager = "systemd" |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 93 | VIRTUAL-RUNTIME_initscripts = "" |
| 94 | |
Brad Bishop | d383934 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 95 | DISTRO_FEATURES_BACKFILL_CONSIDERED = " \ |
| 96 | bluez5 \ |
| 97 | ldconfig \ |
| 98 | gobject-introspection-data \ |
| 99 | pulseaudio \ |
| 100 | sysvinit \ |
| 101 | " |
| 102 | |
| 103 | DISTRO_FEATURES_OBMC = " \ |
| 104 | obmc-host-ctl \ |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 105 | obmc-host-ipmi \ |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 106 | obmc-logging-mgmt \ |
Brad Bishop | d383934 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 107 | obmc-phosphor-chassis-mgmt \ |
| 108 | obmc-phosphor-fan-mgmt \ |
| 109 | obmc-phosphor-flash-mgmt \ |
| 110 | obmc-phosphor-system-mgmt \ |
| 111 | obmc-phosphor-user-mgmt \ |
| 112 | obmc-settings-mgmt \ |
| 113 | " |
| 114 | |
| 115 | DISTRO_FEATURES_DEFAULT = " \ |
| 116 | avahi \ |
| 117 | pam \ |
| 118 | slp \ |
| 119 | systemd \ |
Ratan Gupta | 4f2925c | 2018-09-07 17:12:16 +0530 | [diff] [blame] | 120 | ldap \ |
Brad Bishop | d383934 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 121 | " |
| 122 | |
| 123 | DISTRO_FEATURES = " \ |
| 124 | ${DISTRO_FEATURES_DEFAULT} \ |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 125 | ${DISTRO_FEATURES_LIBC} \ |
Brad Bishop | d383934 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 126 | ${DISTRO_FEATURES_OBMC} \ |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 127 | " |
| 128 | |
| 129 | MACHINE_FEATURES += " \ |
| 130 | ${OBMC_MACHINE_FEATURES} \ |
| 131 | " |
| 132 | |
| 133 | DISTRO_EXTRA_RDEPENDS_remove_qemuarm = "packagegroup-core-device-devel" |
| 134 | |
| 135 | # TODO: openbmc/openbmc#12345 - Upgrade to pygobject-3. |
| 136 | PREFERRED_VERSION_python-pygobject = "2.%" |
| 137 | |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 138 | include conf/distro/include/openbmc-phosphor/${MACHINE}.inc |
| 139 | |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 140 | INHERIT_remove = " uninative" |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 141 | |
| 142 | KERNEL_FEATURES_append = " phosphor-gpio-keys" |
| 143 | KERNEL_FEATURES_remove_qemuall = " phosphor-gpio-keys" |
| 144 | |
| 145 | IMAGE_CLASSES_append = " image_types_phosphor" |
| 146 | |
| 147 | # OpenBMC uses a couple recipes from meta-virtualization |
| 148 | # but we do not actually want any virtualization support |
| 149 | # enabled on a BMC distribution. Silence the emitted |
| 150 | # warning. |
| 151 | SKIP_META_VIRT_SANITY_CHECK = "1" |
Brad Bishop | 0c52342 | 2018-06-25 16:53:45 -0400 | [diff] [blame] | 152 | |
| 153 | # Skip the udev database by default. It adds around 2MB |
| 154 | # compressed to the root filesystem, and probably doesn't |
| 155 | # make sense on a BMC anyway. |
| 156 | BAD_RECOMMENDATIONS_pn-obmc-phosphor-image = "udev-hwdb" |
David Cobbley | 2a5e571 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 157 | |
Dave Cobbley | 0639c5b | 2018-08-24 11:31:04 -0700 | [diff] [blame] | 158 | LAYER_CONF_VERSION ?= "8" |