From ba60c1d7ddcf21fa56e9bde2880ac816c1d231e0 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Wed, 1 May 2024 16:57:58 -0500 Subject: meta-phosphor: eliminate phosphor-pkg-tweaks Upstream now has an `inherit_defer` concept which allows PACKAGECONFIG tweaks, for example, to be applied to `inhert` directives. Therefore, we can use the more typical `bbappend` approach instead of this extra include file. Signed-off-by: Patrick Williams Change-Id: Ie8cad501dbed549969899012734cee94075d2f5a --- meta-phosphor/conf/distro/include/phosphor-base.inc | 1 - meta-phosphor/conf/distro/include/phosphor-pkg-tweaks.inc | 7 ------- meta-phosphor/recipes-devtools/btrfs-tools/btrfs-tools_%.bbappend | 3 +++ 3 files changed, 3 insertions(+), 8 deletions(-) delete mode 100644 meta-phosphor/conf/distro/include/phosphor-pkg-tweaks.inc create mode 100644 meta-phosphor/recipes-devtools/btrfs-tools/btrfs-tools_%.bbappend diff --git a/meta-phosphor/conf/distro/include/phosphor-base.inc b/meta-phosphor/conf/distro/include/phosphor-base.inc index 7f9ec78b15..35bd8deb92 100644 --- a/meta-phosphor/conf/distro/include/phosphor-base.inc +++ b/meta-phosphor/conf/distro/include/phosphor-base.inc @@ -1,5 +1,4 @@ require conf/distro/include/phosphor-defaults.inc -require conf/distro/include/phosphor-pkg-tweaks.inc # Match the distro codename from upstream poky. DISTRO_CODENAME ?= "scarthgap" diff --git a/meta-phosphor/conf/distro/include/phosphor-pkg-tweaks.inc b/meta-phosphor/conf/distro/include/phosphor-pkg-tweaks.inc deleted file mode 100644 index a5c1df8a8a..0000000000 --- a/meta-phosphor/conf/distro/include/phosphor-pkg-tweaks.inc +++ /dev/null @@ -1,7 +0,0 @@ -## Some packages do not allow a simple bbappend to tweak the PACKAGECONFIG -## because they can end up inheriting bbclasses, which cause other -## side-effects before the bbappend is applied. Place tweaks for those -## packages in this file. - -# Disable python from btrfs-tools -PACKAGECONFIG:remove:pn-btrfs-tools = "python" diff --git a/meta-phosphor/recipes-devtools/btrfs-tools/btrfs-tools_%.bbappend b/meta-phosphor/recipes-devtools/btrfs-tools/btrfs-tools_%.bbappend new file mode 100644 index 0000000000..a5ebbcc08f --- /dev/null +++ b/meta-phosphor/recipes-devtools/btrfs-tools/btrfs-tools_%.bbappend @@ -0,0 +1,3 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + +PACKAGECONFIG:remove:class-target = "python" -- cgit v1.2.3