[v3,20/27] barebox: Move inherit dpkg into common .inc

Message ID 40b2e515d99d870500f9907b91953cfdaa5bb085.1764494867.git.jan.kiszka@siemens.com
State Accepted, archived
Headers show
Series [v3,01/27] linux-custom: Drop redundant template inheritance | expand

Commit Message

Jan Kiszka Nov. 30, 2025, 9:27 a.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

Align with other recipe inc files.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
CC: Anton Mikanovich <amikan@ilbers.de>
---
 RECIPE-API-CHANGELOG.md                            | 5 +++++
 meta-isar/recipes-bsp/barebox/barebox_2024.05.0.bb | 2 --
 meta/recipes-bsp/barebox/barebox.inc               | 2 ++
 3 files changed, 7 insertions(+), 2 deletions(-)

Patch

diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md
index a20b35f0..c55bcd56 100644
--- a/RECIPE-API-CHANGELOG.md
+++ b/RECIPE-API-CHANGELOG.md
@@ -887,3 +887,8 @@  The alternative with isar-bootstrap is outdated and untested. It is therefore
 removed.
 A custom implementation still can be selected by setting
 PREFERRED_PROVIDER_bootstrap-{host,target} in local.conf.
+
+### barebox.inc inherits dpkg itself
+
+There is no longer the need to explicitly inherit dpkg in custom barebox
+recipes if the helper include is used.
diff --git a/meta-isar/recipes-bsp/barebox/barebox_2024.05.0.bb b/meta-isar/recipes-bsp/barebox/barebox_2024.05.0.bb
index 7922fdc5..eee403b0 100644
--- a/meta-isar/recipes-bsp/barebox/barebox_2024.05.0.bb
+++ b/meta-isar/recipes-bsp/barebox/barebox_2024.05.0.bb
@@ -3,8 +3,6 @@ 
 #
 # SPDX-License-Identifier: MIT
 
-inherit dpkg
-
 require recipes-bsp/barebox/barebox.inc
 
 SRC_URI += "https://github.com/barebox/${PN}/archive/refs/tags/v${PV}.tar.gz;downloadfilename=${P}.tar.gz \
diff --git a/meta/recipes-bsp/barebox/barebox.inc b/meta/recipes-bsp/barebox/barebox.inc
index e06626d0..a11ef9e2 100644
--- a/meta/recipes-bsp/barebox/barebox.inc
+++ b/meta/recipes-bsp/barebox/barebox.inc
@@ -3,6 +3,8 @@ 
 #
 # SPDX-License-Identifier: MIT
 
+inherit dpkg
+
 DESCRIPTION ?= "The barebox is a bootloader designed for embedded systems. It \
                 runs on a variety of architectures including x86, ARM, MIPS, \
                 PowerPC and others."