]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
barebox: add more common items into shared .inc with barebox-tools
authorAlexander Kanavin <alex@linutronix.de>
Wed, 4 Dec 2024 06:48:46 +0000 (07:48 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Dec 2024 11:55:08 +0000 (11:55 +0000)
barebox-tools needs to be updated in lockstep with barebox,
and was already once erroneously updated to 2024.10 without
barebox itself.

Particularly, this change puts PV into .inc as well for both
recipes. This will allow AUH to produce correct update patches,
as barebox recipe is mutually exclusive with u-boot, and
so isn't handled by AUH. mesa-gl recipe uses a similar trick
with mesa.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-bsp/barebox/barebox-common.inc [new file with mode: 0644]
meta/recipes-bsp/barebox/barebox-tools.bb [moved from meta/recipes-bsp/barebox/barebox-tools_2024.10.0.bb with 83% similarity]
meta/recipes-bsp/barebox/barebox-version.inc [deleted file]
meta/recipes-bsp/barebox/barebox.bb [moved from meta/recipes-bsp/barebox/barebox_2024.10.0.bb with 67% similarity]

diff --git a/meta/recipes-bsp/barebox/barebox-common.inc b/meta/recipes-bsp/barebox/barebox-common.inc
new file mode 100644 (file)
index 0000000..5dcdb70
--- /dev/null
@@ -0,0 +1,8 @@
+HOMEPAGE = "https://barebox.org/"
+SECTION = "bootloaders"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=f5125d13e000b9ca1f0d3364286c4192"
+
+PV = "2024.10.0"
+SRC_URI = "https://barebox.org/download/barebox-${PV}.tar.bz2"
+SRC_URI[sha256sum] = "955b20bfa7358732d2c0c09ccfd4c1a69087b7e2c610b16dee7442d71a5af88d"
similarity index 83%
rename from meta/recipes-bsp/barebox/barebox-tools_2024.10.0.bb
rename to meta/recipes-bsp/barebox/barebox-tools.bb
index 25d6a5c06222bc76a3f943a3ff2c7182896a0516..2a117bc9c081435d947723a63a44838b649800ac 100644 (file)
@@ -1,16 +1,11 @@
 SUMMARY = "barebox bootloader tools"
-HOMEPAGE = "https://barebox.org/"
-SECTION = "bootloaders"
+
+require barebox-common.inc
 
 LICENSE = "GPL-2.0-only"
-LIC_FILES_CHKSUM = "file://COPYING;md5=f5125d13e000b9ca1f0d3364286c4192"
 
 DEPENDS = "bison-native flex-native libusb1"
 
-SRC_URI = "https://barebox.org/download/barebox-${PV}.tar.bz2"
-
-require barebox-version.inc
-
 S = "${WORKDIR}/barebox-${PV}"
 B = "${WORKDIR}/build"
 
diff --git a/meta/recipes-bsp/barebox/barebox-version.inc b/meta/recipes-bsp/barebox/barebox-version.inc
deleted file mode 100644 (file)
index d008c49..0000000
+++ /dev/null
@@ -1 +0,0 @@
-SRC_URI[sha256sum] = "955b20bfa7358732d2c0c09ccfd4c1a69087b7e2c610b16dee7442d71a5af88d"
similarity index 67%
rename from meta/recipes-bsp/barebox/barebox_2024.10.0.bb
rename to meta/recipes-bsp/barebox/barebox.bb
index aa63be4080c0d8f51c2772c2f44d013c0862d441..dc9ae669d76f64a3640b535c0f3296c5ff5e57a0 100644 (file)
@@ -4,15 +4,9 @@ but also for initial hardware bringup and development. \
 Users should feel right at home with a shell with UNIX-like virtual file system access to hardware, \
 Linux kernel driver API for making driver porting easier, \
 and a subset of the POSIX C library for writing more command-line utilities."
-HOMEPAGE = "https://barebox.org/"
-SECTION = "bootloaders"
-
-LIC_FILES_CHKSUM = "file://COPYING;md5=f5125d13e000b9ca1f0d3364286c4192"
 
+require barebox-common.inc
 inherit barebox
 
-SRC_URI = "https://barebox.org/download/barebox-${PV}.tar.bz2 \
-           file://0001-lib-lz4-use-lz4-instead-of-lz4c.patch \
+SRC_URI += "file://0001-lib-lz4-use-lz4-instead-of-lz4c.patch \
            "
-
-require barebox-version.inc