Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 1 | require conf/distro/include/phosphor-defaults.inc |
Patrick Williams | 200c2d3 | 2023-05-17 15:00:27 -0500 | [diff] [blame] | 2 | require conf/distro/include/phosphor-pkg-tweaks.inc |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 3 | |
Patrick Williams | 7e6220e | 2022-12-16 08:22:11 -0600 | [diff] [blame] | 4 | # Match the distro codename from upstream poky. |
Patrick Williams | 023e65f | 2023-12-06 10:33:09 -0600 | [diff] [blame] | 5 | DISTRO_CODENAME ?= "scarthgap" |
Patrick Williams | 7e6220e | 2022-12-16 08:22:11 -0600 | [diff] [blame] | 6 | |
David Cobbley | 2a5e571 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 7 | # Override these in poky based distros |
Patrick Williams | 64d812c | 2023-05-17 21:50:19 -0500 | [diff] [blame] | 8 | POKY_DEFAULT_DISTRO_FEATURES = "opengl ptest multiarch wayland vulkan" |
David Cobbley | 2a5e571 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 9 | POKY_DEFAULT_EXTRA_RDEPENDS = "packagegroup-core-boot" |
| 10 | POKY_DEFAULT_EXTRA_RRECOMMENDS = "kernel-module-af-packet" |
| 11 | |
| 12 | DISTRO_EXTRA_RDEPENDS += " ${POKY_DEFAULT_EXTRA_RDEPENDS}" |
| 13 | DISTRO_EXTRA_RRECOMMENDS += " ${POKY_DEFAULT_EXTRA_RRECOMMENDS}" |
| 14 | |
Brad Bishop | f14643d | 2020-08-12 06:31:39 -0400 | [diff] [blame] | 15 | DISTROOVERRIDES .= ":openbmc-phosphor" |
| 16 | |
David Cobbley | 2a5e571 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 17 | TCLIBCAPPEND = "" |
| 18 | |
Anton Blanchard | 4d1faa8 | 2021-08-16 23:32:08 -0600 | [diff] [blame] | 19 | QEMU_TARGETS ?= "arm aarch64 i386 riscv32 riscv64 ppc64le x86_64" |
David Cobbley | 2a5e571 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 20 | |
| 21 | PREMIRRORS ??= "\ |
| 22 | bzr://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 23 | cvs://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 24 | git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 25 | gitsm://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 26 | hg://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 27 | osc://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 28 | p4://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 29 | svn://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n" |
| 30 | |
| 31 | MIRRORS =+ "\ |
| 32 | ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 33 | http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ |
| 34 | https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n" |
| 35 | |
Gunnar Mills | e5b3860 | 2018-08-31 12:39:15 -0500 | [diff] [blame] | 36 | # 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] | 37 | # fetch from the network (and warn you if not). To disable the test set |
| 38 | # the variable to be empty. |
Patrick Williams | b389cd9 | 2021-12-15 21:34:22 -0600 | [diff] [blame] | 39 | # Git example url: git://git.yoctoproject.org/yocto-firewall-test;protocol=https;rev=master |
Andrew Geissler | 05164d0 | 2022-02-10 10:36:05 -0600 | [diff] [blame] | 40 | CONNECTIVITY_CHECK_URIS ?= "https://yoctoproject.org/connectivity.html" |
David Cobbley | 2a5e571 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 41 | |
| 42 | SANITY_TESTED_DISTROS ?= " \ |
| 43 | poky-2.4 \n \ |
| 44 | poky-2.5 \n \ |
| 45 | ubuntu-15.04 \n \ |
| 46 | ubuntu-16.04 \n \ |
| 47 | ubuntu-16.10 \n \ |
| 48 | ubuntu-17.04 \n \ |
| 49 | fedora-26 \n \ |
| 50 | centos-7 \n \ |
| 51 | debian-8 \n \ |
| 52 | debian-9 \n \ |
| 53 | opensuse-42.1 \n \ |
| 54 | opensuse-42.2 \n \ |
| 55 | " |
| 56 | # |
| 57 | # OELAYOUT_ABI allows us to notify users when the format of TMPDIR changes in |
| 58 | # an incompatible way. Such changes should usually be detailed in the commit |
| 59 | # that breaks the format and have been previously discussed on the mailing list |
| 60 | # with general agreement from the core team. |
| 61 | # |
| 62 | |
| 63 | OELAYOUT_ABI = "12" |
| 64 | |
David Cobbley | 2a5e571 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 65 | # QA check settings - a little stricter than the OE-Core defaults |
| 66 | WARN_TO_ERROR_QA = "already-stripped compile-host-path install-host-path \ |
| 67 | installed-vs-shipped ldflags pn-overrides rpaths staticdev \ |
| 68 | useless-rpaths" |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 69 | WARN_QA:remove = "${WARN_TO_ERROR_QA}" |
| 70 | ERROR_QA:append = " ${WARN_TO_ERROR_QA}" |
David Cobbley | 2a5e571 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 71 | |
David Cobbley | 2a5e571 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 72 | require conf/distro/include/no-static-libs.inc |
Patrick Williams | 5e3ca93 | 2020-01-18 14:14:31 -0600 | [diff] [blame] | 73 | require conf/distro/include/yocto-uninative.inc |
David Cobbley | 2a5e571 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 74 | |
Joel Stanley | 70d6c5e | 2022-05-02 11:59:53 +0930 | [diff] [blame] | 75 | DISTRO_NAME ?= "Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro)" |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 76 | TARGET_VENDOR="-openbmc" |
| 77 | |
Patrick Williams | 677bc38 | 2024-02-06 11:47:22 -0600 | [diff] [blame] | 78 | |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 79 | VIRTUAL-RUNTIME_keymaps = "" |
| 80 | |
| 81 | # Phosphor OpenBMC uses systemd and udev |
Patrick Williams | 677bc38 | 2024-02-06 11:47:22 -0600 | [diff] [blame] | 82 | INIT_MANAGER = "systemd" |
| 83 | # systemd doesn't like us using /home/root instead of /root but we've been |
| 84 | # doing it a long time. The `INIT_MANAGER = systemd` switches the default to |
| 85 | # /root, but we should switch it back (and maybe adjust in another commit). |
| 86 | ROOT_HOME = "/home/root" |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 87 | |
Brad Bishop | d383934 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 88 | DISTRO_FEATURES_BACKFILL_CONSIDERED = " \ |
| 89 | bluez5 \ |
| 90 | ldconfig \ |
| 91 | gobject-introspection-data \ |
| 92 | pulseaudio \ |
Brad Bishop | d383934 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 93 | " |
| 94 | |
| 95 | DISTRO_FEATURES_OBMC = " \ |
| 96 | obmc-host-ctl \ |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 97 | obmc-host-ipmi \ |
Brad Bishop | d383934 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 98 | obmc-phosphor-chassis-mgmt \ |
| 99 | obmc-phosphor-fan-mgmt \ |
| 100 | obmc-phosphor-flash-mgmt \ |
Patrick Williams | 5a5f33c | 2021-11-03 10:35:37 -0500 | [diff] [blame] | 101 | obmc-phosphor-system-mgmt \ |
Brad Bishop | d383934 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 102 | " |
| 103 | |
| 104 | DISTRO_FEATURES_DEFAULT = " \ |
| 105 | avahi \ |
Patrick Williams | 8f58bba | 2020-05-13 10:51:49 -0500 | [diff] [blame] | 106 | ipv4 \ |
| 107 | ipv6 \ |
Brad Bishop | d383934 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 108 | pam \ |
Patrick Williams | ada9e0f | 2021-08-24 08:12:58 -0500 | [diff] [blame] | 109 | security \ |
Brad Bishop | d383934 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 110 | slp \ |
Andrew Geissler | 0540afd | 2021-08-30 20:37:00 -0500 | [diff] [blame] | 111 | seccomp \ |
Brad Bishop | d383934 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 112 | " |
| 113 | |
Andrew Geissler | fdcb2d9 | 2019-10-18 11:04:05 -0500 | [diff] [blame] | 114 | DISTRO_FEATURES += " \ |
Brad Bishop | d383934 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 115 | ${DISTRO_FEATURES_DEFAULT} \ |
Brad Bishop | d383934 | 2018-03-09 21:48:12 -0500 | [diff] [blame] | 116 | ${DISTRO_FEATURES_OBMC} \ |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 117 | " |
| 118 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 119 | DISTRO_EXTRA_RDEPENDS:remove:qemuarm = "packagegroup-core-device-devel" |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 120 | |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 121 | include conf/distro/include/openbmc-phosphor/${MACHINE}.inc |
| 122 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 123 | IMAGE_CLASSES:append = " image_types_phosphor phosphor-rootfs-postcommands" |
| 124 | IMAGE_CLASSES:append:npcm7xx = " image_types_phosphor_nuvoton" |
Tim Lee | dd14a91 | 2022-07-29 16:42:15 +0800 | [diff] [blame] | 125 | IMAGE_CLASSES:append:npcm8xx = " image_types_phosphor_nuvoton_npcm8xx" |
Brad Bishop | 7a83a12 | 2018-03-08 22:17:47 -0500 | [diff] [blame] | 126 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 127 | IMAGE_INSTALL:append = " dbus-broker libnss-systemd" |
William A. Kennington III | d73b9cd | 2019-09-16 17:49:53 -0700 | [diff] [blame] | 128 | |
Brad Bishop | 0c52342 | 2018-06-25 16:53:45 -0400 | [diff] [blame] | 129 | # Skip the udev database by default. It adds around 2MB |
| 130 | # compressed to the root filesystem, and probably doesn't |
| 131 | # make sense on a BMC anyway. |
William A. Kennington III | 79e4934 | 2019-09-16 17:50:53 -0700 | [diff] [blame] | 132 | BAD_RECOMMENDATIONS += "udev-hwdb" |
| 133 | BAD_RECOMMENDATIONS += "shared-mime-info" |
David Cobbley | 2a5e571 | 2018-06-29 13:27:44 -0700 | [diff] [blame] | 134 | |
William A. Kennington III | 97f0526 | 2021-12-20 02:06:07 -0800 | [diff] [blame] | 135 | # e2fsprogs isn't needed on a BMC without MMC, where it gets explicitly added |
| 136 | BAD_RECOMMENDATIONS += "e2fsprogs-e2fsck" |
| 137 | |
Dave Cobbley | 0639c5b | 2018-08-24 11:31:04 -0700 | [diff] [blame] | 138 | LAYER_CONF_VERSION ?= "8" |
Lei YU | b5a2c26 | 2019-05-15 19:52:10 -0400 | [diff] [blame] | 139 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 140 | KERNEL_CLASSES:append = " obmc-phosphor-kernel-version" |
Patrick Williams | 891b144 | 2020-06-12 06:04:25 -0500 | [diff] [blame] | 141 | |
| 142 | # Some packages have directory trees of YAML files arranged based on |
Patrick Williams | 0ea73d3 | 2023-01-12 11:37:14 -0600 | [diff] [blame] | 143 | # canonical organization names. 'org/freedesktop' and 'xyz/openbmc_project' |
| 144 | # should be used everywhere in phosphor, but some layers may append this with |
| 145 | # their own organization(s). |
| 146 | OBMC_ORG_YAML_SUBDIRS += " org/freedesktop xyz/openbmc_project" |
Patrick Williams | c864340 | 2023-03-16 17:05:37 -0500 | [diff] [blame] | 147 | |
| 148 | PREFERRED_VERSION_libgpiod = "1.6.4" |
Andrew Jeffery | ccf5bb2 | 2023-05-03 08:41:39 +0930 | [diff] [blame] | 149 | |
| 150 | # Enable SBOM: https://docs.yoctoproject.org/next/dev-manual/sbom.html |
| 151 | INHERIT += "create-spdx" |