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

Message ID 7a7f54eb1f7061c054593030fd3736a1269506ce.1762170735.git.jan.kiszka@siemens.com
State Under Review
Headers show
Series [01/27] linux-custom: Drop redundant template inheritance | expand

Commit Message

Jan Kiszka Nov. 3, 2025, 11:52 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 1826667a..e82cdf33 100644
--- a/RECIPE-API-CHANGELOG.md
+++ b/RECIPE-API-CHANGELOG.md
@@ -797,3 +797,8 @@  root file modifications) are required.
 A new class called `opensbi` has been introduced that shall help writing
 shorter recipes for custom OpenSBI builds. Usage examples can be found in
 `meta-isar/recipes/bsp/opensbi`.
+
+### 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."