Brad Bishop | 6ace9d3 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 1 | require conf/distro/include/phosphor-defaults.inc |
| 2 | |
David Cobbley | e4a46f1 | 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 | 38f2711 | 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 | e4a46f1 | 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 | |
David Cobbley | e4a46f1 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 67 | # QA check settings - a little stricter than the OE-Core defaults |
| 68 | WARN_TO_ERROR_QA = "already-stripped compile-host-path install-host-path \ |
| 69 | installed-vs-shipped ldflags pn-overrides rpaths staticdev \ |
| 70 | useless-rpaths" |
| 71 | WARN_QA_remove = "${WARN_TO_ERROR_QA}" |
| 72 | ERROR_QA_append = " ${WARN_TO_ERROR_QA}" |
| 73 | |
David Cobbley | e4a46f1 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 74 | require conf/distro/include/no-static-libs.inc |
Patrick Williams | ea48783 | 2020-01-18 14:14:31 -0600 | [diff] [blame] | 75 | require conf/distro/include/yocto-uninative.inc |
David Cobbley | e4a46f1 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 76 | |
Brad Bishop | 6ace9d3 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 77 | DISTRO_NAME = "Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro)" |
| 78 | DISTRO_VERSION = "0.1.0" |
| 79 | TARGET_VENDOR="-openbmc" |
| 80 | |
Brad Bishop | 6ace9d3 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 81 | VIRTUAL-RUNTIME_keymaps = "" |
| 82 | |
| 83 | # Phosphor OpenBMC uses systemd and udev |
Brad Bishop | 6ace9d3 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 84 | VIRTUAL-RUNTIME_init_manager = "systemd" |
Brad Bishop | 6ace9d3 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 85 | VIRTUAL-RUNTIME_initscripts = "" |
| 86 | |
Brad Bishop | 7c75971 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 87 | DISTRO_FEATURES_BACKFILL_CONSIDERED = " \ |
| 88 | bluez5 \ |
| 89 | ldconfig \ |
| 90 | gobject-introspection-data \ |
| 91 | pulseaudio \ |
| 92 | sysvinit \ |
| 93 | " |
| 94 | |
| 95 | DISTRO_FEATURES_OBMC = " \ |
Brad Bishop | 5a1fc9e | 2020-03-19 14:49:00 -0400 | [diff] [blame] | 96 | ipmi-fru \ |
Brad Bishop | 7c75971 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 97 | obmc-host-ctl \ |
Brad Bishop | 6ace9d3 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 98 | obmc-host-ipmi \ |
Brad Bishop | 7c75971 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 99 | obmc-phosphor-chassis-mgmt \ |
| 100 | obmc-phosphor-fan-mgmt \ |
| 101 | obmc-phosphor-flash-mgmt \ |
| 102 | obmc-phosphor-system-mgmt \ |
Brad Bishop | 7c75971 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 103 | " |
| 104 | |
| 105 | DISTRO_FEATURES_DEFAULT = " \ |
| 106 | avahi \ |
Patrick Williams | 4877428 | 2020-05-13 10:51:49 -0500 | [diff] [blame] | 107 | ipv4 \ |
| 108 | ipv6 \ |
| 109 | ldap \ |
| 110 | libc-inet-anl \ |
Brad Bishop | 7c75971 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 111 | pam \ |
| 112 | slp \ |
| 113 | systemd \ |
| 114 | " |
| 115 | |
Andrew Geissler | 17801b4 | 2019-10-18 11:04:05 -0500 | [diff] [blame] | 116 | DISTRO_FEATURES += " \ |
Brad Bishop | 7c75971 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 117 | ${DISTRO_FEATURES_DEFAULT} \ |
Brad Bishop | 7c75971 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 118 | ${DISTRO_FEATURES_OBMC} \ |
Brad Bishop | 6ace9d3 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 119 | " |
| 120 | |
| 121 | MACHINE_FEATURES += " \ |
| 122 | ${OBMC_MACHINE_FEATURES} \ |
| 123 | " |
| 124 | |
| 125 | DISTRO_EXTRA_RDEPENDS_remove_qemuarm = "packagegroup-core-device-devel" |
| 126 | |
Brad Bishop | 6ace9d3 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 127 | include conf/distro/include/openbmc-phosphor/${MACHINE}.inc |
| 128 | |
Brad Bishop | 6ace9d3 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 129 | KERNEL_FEATURES_append = " phosphor-gpio-keys" |
| 130 | KERNEL_FEATURES_remove_qemuall = " phosphor-gpio-keys" |
| 131 | |
Richard Marian Thomaiyar | b1b8251 | 2019-11-02 21:16:40 +0530 | [diff] [blame] | 132 | IMAGE_CLASSES_append = " image_types_phosphor phosphor-rootfs-postcommands" |
William A. Kennington III | 9819cb9 | 2019-09-16 18:29:53 -0700 | [diff] [blame] | 133 | IMAGE_CLASSES_append_npcm7xx = " image_types_phosphor_nuvoton" |
Brad Bishop | 6ace9d3 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 134 | |
William A. Kennington III | f819600 | 2019-09-16 17:49:53 -0700 | [diff] [blame] | 135 | IMAGE_INSTALL_append = " dbus-broker" |
| 136 | |
Brad Bishop | 87b3f37 | 2018-06-25 16:53:45 -0400 | [diff] [blame] | 137 | # 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 III | 563b83b | 2019-09-16 17:50:53 -0700 | [diff] [blame] | 140 | BAD_RECOMMENDATIONS += "udev-hwdb" |
| 141 | BAD_RECOMMENDATIONS += "shared-mime-info" |
David Cobbley | e4a46f1 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 142 | |
Dave Cobbley | 81de4b2 | 2018-08-24 11:31:04 -0700 | [diff] [blame] | 143 | LAYER_CONF_VERSION ?= "8" |
Lei YU | fcfd10d | 2019-05-15 19:52:10 -0400 | [diff] [blame] | 144 | |
| 145 | KERNEL_CLASSES_append = " obmc-phosphor-kernel-version" |
Patrick Williams | 2f31e7a | 2020-06-12 06:04:25 -0500 | [diff] [blame] | 146 | |
| 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). |
| 151 | OBMC_ORG_YAML_SUBDIRS += " xyz/openbmc_project" |