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 | |
Brad Bishop | f14643d | 2020-08-12 06:31:39 -0400 | [diff] [blame] | 11 | DISTROOVERRIDES .= ":openbmc-phosphor" |
| 12 | |
David Cobbley | 2a5e571 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 13 | TCLIBCAPPEND = "" |
| 14 | |
Konstantin Aladyshev | c8bfc63 | 2021-05-17 17:16:32 +0300 | [diff] [blame^] | 15 | QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el nios2 ppc riscv32 riscv64 x86_64" |
David Cobbley | 2a5e571 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 16 | |
| 17 | PREMIRRORS ??= "\ |
| 18 | bzr://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 19 | cvs://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 20 | git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 21 | gitsm://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 22 | hg://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 23 | osc://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 24 | p4://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 25 | svn://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n" |
| 26 | |
| 27 | MIRRORS =+ "\ |
| 28 | ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 29 | http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 30 | https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n" |
| 31 | |
Gunnar Mills | e5b3860 | 2018-08-31 12:39:15 -0500 | [diff] [blame] | 32 | # 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] | 33 | # 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 |
| 36 | CONNECTIVITY_CHECK_URIS ?= "https://www.example.com/" |
| 37 | |
| 38 | SANITY_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 | |
| 59 | OELAYOUT_ABI = "12" |
| 60 | |
David Cobbley | 2a5e571 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 61 | # QA check settings - a little stricter than the OE-Core defaults |
| 62 | WARN_TO_ERROR_QA = "already-stripped compile-host-path install-host-path \ |
| 63 | installed-vs-shipped ldflags pn-overrides rpaths staticdev \ |
| 64 | useless-rpaths" |
| 65 | WARN_QA_remove = "${WARN_TO_ERROR_QA}" |
| 66 | ERROR_QA_append = " ${WARN_TO_ERROR_QA}" |
| 67 | |
David Cobbley | 2a5e571 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 68 | require conf/distro/include/no-static-libs.inc |
Patrick Williams | 5e3ca93 | 2020-01-18 14:14:31 -0600 | [diff] [blame] | 69 | require conf/distro/include/yocto-uninative.inc |
David Cobbley | 2a5e571 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 70 | |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 71 | DISTRO_NAME = "Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro)" |
| 72 | DISTRO_VERSION = "0.1.0" |
| 73 | TARGET_VENDOR="-openbmc" |
| 74 | |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 75 | VIRTUAL-RUNTIME_keymaps = "" |
| 76 | |
| 77 | # Phosphor OpenBMC uses systemd and udev |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 78 | VIRTUAL-RUNTIME_init_manager = "systemd" |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 79 | VIRTUAL-RUNTIME_initscripts = "" |
| 80 | |
Brad Bishop | d383934 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 81 | DISTRO_FEATURES_BACKFILL_CONSIDERED = " \ |
| 82 | bluez5 \ |
| 83 | ldconfig \ |
| 84 | gobject-introspection-data \ |
| 85 | pulseaudio \ |
| 86 | sysvinit \ |
| 87 | " |
| 88 | |
| 89 | DISTRO_FEATURES_OBMC = " \ |
| 90 | obmc-host-ctl \ |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 91 | obmc-host-ipmi \ |
Brad Bishop | d383934 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 92 | obmc-phosphor-chassis-mgmt \ |
| 93 | obmc-phosphor-fan-mgmt \ |
| 94 | obmc-phosphor-flash-mgmt \ |
| 95 | obmc-phosphor-system-mgmt \ |
Brad Bishop | d383934 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 96 | " |
| 97 | |
| 98 | DISTRO_FEATURES_DEFAULT = " \ |
| 99 | avahi \ |
Patrick Williams | 8f58bba | 2020-05-13 10:51:49 -0500 | [diff] [blame] | 100 | ipv4 \ |
| 101 | ipv6 \ |
Brad Bishop | d383934 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 102 | pam \ |
| 103 | slp \ |
| 104 | systemd \ |
| 105 | " |
| 106 | |
Andrew Geissler | fdcb2d9 | 2019-10-18 11:04:05 -0500 | [diff] [blame] | 107 | DISTRO_FEATURES += " \ |
Brad Bishop | d383934 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 108 | ${DISTRO_FEATURES_DEFAULT} \ |
Brad Bishop | d383934 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 109 | ${DISTRO_FEATURES_OBMC} \ |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 110 | " |
| 111 | |
| 112 | MACHINE_FEATURES += " \ |
| 113 | ${OBMC_MACHINE_FEATURES} \ |
| 114 | " |
| 115 | |
| 116 | DISTRO_EXTRA_RDEPENDS_remove_qemuarm = "packagegroup-core-device-devel" |
| 117 | |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 118 | include conf/distro/include/openbmc-phosphor/${MACHINE}.inc |
| 119 | |
Richard Marian Thomaiyar | a2a2087 | 2019-11-02 21:16:40 +0530 | [diff] [blame] | 120 | IMAGE_CLASSES_append = " image_types_phosphor phosphor-rootfs-postcommands" |
William A. Kennington III | 7a6b143 | 2019-09-16 18:29:53 -0700 | [diff] [blame] | 121 | IMAGE_CLASSES_append_npcm7xx = " image_types_phosphor_nuvoton" |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 122 | |
Anton D. Kachalov | 23e749b | 2021-02-04 13:13:57 +0100 | [diff] [blame] | 123 | IMAGE_INSTALL_append = " dbus-broker libnss-systemd" |
William A. Kennington III | d73b9cd | 2019-09-16 17:49:53 -0700 | [diff] [blame] | 124 | |
Brad Bishop | 0c52342 | 2018-06-25 16:53:45 -0400 | [diff] [blame] | 125 | # 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 III | 79e4934 | 2019-09-16 17:50:53 -0700 | [diff] [blame] | 128 | BAD_RECOMMENDATIONS += "udev-hwdb" |
| 129 | BAD_RECOMMENDATIONS += "shared-mime-info" |
David Cobbley | 2a5e571 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 130 | |
Dave Cobbley | 0639c5b | 2018-08-24 11:31:04 -0700 | [diff] [blame] | 131 | LAYER_CONF_VERSION ?= "8" |
Lei YU | b5a2c26 | 2019-05-15 19:52:10 -0400 | [diff] [blame] | 132 | |
| 133 | KERNEL_CLASSES_append = " obmc-phosphor-kernel-version" |
Patrick Williams | 891b144 | 2020-06-12 06:04:25 -0500 | [diff] [blame] | 134 | |
| 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). |
| 139 | OBMC_ORG_YAML_SUBDIRS += " xyz/openbmc_project" |