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 | |
Brad Bishop | 1b9a749 | 2020-08-12 06:31:39 -0400 | [diff] [blame] | 11 | DISTROOVERRIDES .= ":openbmc-phosphor" |
| 12 | |
David Cobbley | e4a46f1 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 13 | POKYQEMUDEPS = "${@bb.utils.contains("INCOMPATIBLE_LICENSE", "GPL-3.0", "", "packagegroup-core-device-devel",d)}" |
| 14 | DISTRO_EXTRA_RDEPENDS_append_qemuarm = " ${POKYQEMUDEPS}" |
| 15 | DISTRO_EXTRA_RDEPENDS_append_qemuarm64 = " ${POKYQEMUDEPS}" |
| 16 | DISTRO_EXTRA_RDEPENDS_append_qemumips = " ${POKYQEMUDEPS}" |
| 17 | DISTRO_EXTRA_RDEPENDS_append_qemuppc = " ${POKYQEMUDEPS}" |
| 18 | DISTRO_EXTRA_RDEPENDS_append_qemux86 = " ${POKYQEMUDEPS}" |
| 19 | DISTRO_EXTRA_RDEPENDS_append_qemux86-64 = " ${POKYQEMUDEPS}" |
| 20 | |
| 21 | TCLIBCAPPEND = "" |
| 22 | |
| 23 | QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el nios2 ppc x86_64" |
| 24 | |
| 25 | PREMIRRORS ??= "\ |
| 26 | bzr://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 27 | cvs://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 28 | git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 29 | gitsm://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 30 | hg://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 31 | osc://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 32 | p4://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 33 | svn://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n" |
| 34 | |
| 35 | MIRRORS =+ "\ |
| 36 | ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 37 | http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 38 | https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n" |
| 39 | |
Gunnar Mills | 38f2711 | 2018-08-31 12:39:15 -0500 | [diff] [blame] | 40 | # 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] | 41 | # 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 |
| 44 | CONNECTIVITY_CHECK_URIS ?= "https://www.example.com/" |
| 45 | |
| 46 | SANITY_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 | |
| 67 | OELAYOUT_ABI = "12" |
| 68 | |
David Cobbley | e4a46f1 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 69 | # QA check settings - a little stricter than the OE-Core defaults |
| 70 | WARN_TO_ERROR_QA = "already-stripped compile-host-path install-host-path \ |
| 71 | installed-vs-shipped ldflags pn-overrides rpaths staticdev \ |
| 72 | useless-rpaths" |
| 73 | WARN_QA_remove = "${WARN_TO_ERROR_QA}" |
| 74 | ERROR_QA_append = " ${WARN_TO_ERROR_QA}" |
| 75 | |
David Cobbley | e4a46f1 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 76 | require conf/distro/include/no-static-libs.inc |
Patrick Williams | ea48783 | 2020-01-18 14:14:31 -0600 | [diff] [blame] | 77 | require conf/distro/include/yocto-uninative.inc |
David Cobbley | e4a46f1 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 78 | |
Brad Bishop | 6ace9d3 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 79 | DISTRO_NAME = "Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro)" |
| 80 | DISTRO_VERSION = "0.1.0" |
| 81 | TARGET_VENDOR="-openbmc" |
| 82 | |
Brad Bishop | 6ace9d3 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 83 | VIRTUAL-RUNTIME_keymaps = "" |
| 84 | |
| 85 | # Phosphor OpenBMC uses systemd and udev |
Brad Bishop | 6ace9d3 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 86 | VIRTUAL-RUNTIME_init_manager = "systemd" |
Brad Bishop | 6ace9d3 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 87 | VIRTUAL-RUNTIME_initscripts = "" |
| 88 | |
Brad Bishop | 7c75971 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 89 | DISTRO_FEATURES_BACKFILL_CONSIDERED = " \ |
| 90 | bluez5 \ |
| 91 | ldconfig \ |
| 92 | gobject-introspection-data \ |
| 93 | pulseaudio \ |
| 94 | sysvinit \ |
| 95 | " |
| 96 | |
| 97 | DISTRO_FEATURES_OBMC = " \ |
Brad Bishop | 5a1fc9e | 2020-03-19 14:49:00 -0400 | [diff] [blame] | 98 | ipmi-fru \ |
Brad Bishop | 7c75971 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 99 | obmc-host-ctl \ |
Brad Bishop | 6ace9d3 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 100 | obmc-host-ipmi \ |
Brad Bishop | 7c75971 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 101 | obmc-phosphor-chassis-mgmt \ |
| 102 | obmc-phosphor-fan-mgmt \ |
| 103 | obmc-phosphor-flash-mgmt \ |
| 104 | obmc-phosphor-system-mgmt \ |
Brad Bishop | 7c75971 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 105 | " |
| 106 | |
| 107 | DISTRO_FEATURES_DEFAULT = " \ |
| 108 | avahi \ |
Patrick Williams | 4877428 | 2020-05-13 10:51:49 -0500 | [diff] [blame] | 109 | ipv4 \ |
| 110 | ipv6 \ |
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" |