Skip to contentSkip to conversation

Initial commit of scarthgap/u-boot

RFC PATCH New Tim Orling 1 participant 3 messages Mar 20, 2024

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

cover Initial commit of scarthgap/u-boot

Motivated in part by raspberrypi5 support added in u-boot v2024.04-* this branch will track upstream u-boot versions throughout the support window of scarthgap to allow newer versions tracked in either openembedded-core "master" or possibly new release candidates for u-boot upstream.

This is pure vanilla upstream and in no way board or bsp specific.

Tim Orling (2):
Initial commit: u-boot 2024.04-rc3
u-boot: bump to v2024.04-rc4

Signature · 1 line
2.34.1
author
#1 lore raw

RFC PATCH 1/2 Initial commit: u-boot 2024.04-rc3

At the time this was written, neither scarthgap nor u-boot had been released at the target April 2024 releases.

Release announcement:
https://lists.denx.de/pipermail/u-boot/2024-February/546867.html

---
 LICENSE.MIT                                   |  25 ++
 README.md                                     |  13 +
 SECURITY.md                                   |  22 ++
 conf/layer.conf                               |  14 +
 recipes-bsp/u-boot/u-boot-common.inc          |  24 ++
 recipes-bsp/u-boot/u-boot-configure.inc       |  38 ++
 recipes-bsp/u-boot/u-boot-tools.inc           |  85 +++++
 .../u-boot/u-boot-tools_2024.04-rc3.bb        |   2 +
 recipes-bsp/u-boot/u-boot.inc                 | 345 ++++++++++++++++++
 recipes-bsp/u-boot/u-boot_2024.04-rc3.bb      |   5 +
 10 files changed, 573 insertions(+)
 create mode 100644 LICENSE.MIT
 create mode 100644 README.md
 create mode 100644 SECURITY.md
 create mode 100644 conf/layer.conf
 create mode 100644 recipes-bsp/u-boot/u-boot-common.inc
 create mode 100644 recipes-bsp/u-boot/u-boot-configure.inc
 create mode 100644 recipes-bsp/u-boot/u-boot-tools.inc
 create mode 100644 recipes-bsp/u-boot/u-boot-tools_2024.04-rc3.bb
 create mode 100644 recipes-bsp/u-boot/u-boot.inc
 create mode 100644 recipes-bsp/u-boot/u-boot_2024.04-rc3.bb
LICENSE.MIT new file +25 -0
new file mode 100644
index 0000000..a6919eb
@@ -0,0 +1,25 @@
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+Note:
+Individual files contain the following tag instead of the full license text.
+
+    SPDX-License-Identifier: MIT
+
+This enables machine processing of license information based on the SPDX
+License Identifiers that are here available: http://spdx.org/licenses/
README.md new file +13 -0
new file mode 100644
index 0000000..5eb92c4
@@ -0,0 +1,13 @@
+# meta-lts-mixin scarthgap/u-boot
+
+"Mixin" layer for adding current u-boot into the Yocto Project LTS.
+
+At the time Scarthgap was released in April 2024 it included u-boot 2024.01,
+and officially Scarthgap supports only that. This thin special-purpose
+mixin layer is meant to provide a current u-boot for Scarthgap
+by extending or backporting the appropriate recipes from the master branch of
+openembedded-core.
+
+Maintainers:
+- Tim Orling <tim.orling AT konsulko DOT com>
+- Tom Rini <tom.rini AT konsulko DOT com>
SECURITY.md new file +22 -0
new file mode 100644
index 0000000..8d3ebc6
@@ -0,0 +1,22 @@
+How to Report a Potential Vulnerability?
+========================================
+
+If you would like to report a public issue (for example, one with a released
+CVE number), please report it using the
+[Security Bugzilla](https://bugzilla.yoctoproject.org/enter_bug.cgi?product=Security)
+
+If you are dealing with a not-yet released or urgent issue, please send a
+message to security AT yoctoproject DOT org, including as many details as
+possible: the layer or software module affected, the recipe and its version,
+and any example code, if available.
+
+Branches maintained with security fixes
+---------------------------------------
+
+See [Stable release and LTS](https://wiki.yoctoproject.org/wiki/Stable_Release_and_LTS)
+for detailed info regarding the policies and maintenance of Stable branches.
+
+The [Release page](https://wiki.yoctoproject.org/wiki/Releases) contains a list of all
+releases of the Yocto Project. Versions in grey are no longer actively maintained with
+security patches, but well-tested patches may still be accepted for them for
+significant issues.
conf/layer.conf new file +14 -0
new file mode 100644
index 0000000..426f7f8
@@ -0,0 +1,14 @@
+# We have a conf and classes directory, but we have classes that should
+# override those in oe-core, so prepend to BBPATH
+BBPATH =. "${LAYERDIR}:"
+
+# We have a recipes directory, add to BBFILES
+BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend"
+
+BBFILE_COLLECTIONS += "lts-u-boot-mixin"
+BBFILE_PATTERN_lts-u-boot-mixin := "^${LAYERDIR}/"
+BBFILE_PRIORITY_lts-u-boot-mixin = "6"
+
+LAYERSERIES_COMPAT_lts-u-boot-mixin = "scarthgap"
+
+LAYERDEPENDS_lts-u-boot-mixin = "core"
recipes-bsp/u-boot/u-boot-common.inc new file +24 -0
new file mode 100644
index 0000000..3f29f23
@@ -0,0 +1,24 @@
+HOMEPAGE = "http://www.denx.de/wiki/U-Boot/WebHome"
+DESCRIPTION = "U-Boot, a boot loader for Embedded boards based on PowerPC, \
+ARM, MIPS and several other processors, which can be installed in a boot \
+ROM and used to initialize and test the hardware or to download and run \
+application code."
+SECTION = "bootloaders"
+DEPENDS += "flex-native bison-native python3-setuptools-native"
+
+LICENSE = "GPL-2.0-or-later"
+LIC_FILES_CHKSUM = "file://Licenses/README;md5=2ca5f2c35c8cc335f0a19756634782f1"
+PE = "1"
+
+# We use the revision in order to avoid having to fetch it from the
+# repo during parse
+SRCREV = "d49fa3defa50c6d3f04acbb52fd486c13c14ab6a"
+
+SRC_URI = "git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master"
+
+S = "${WORKDIR}/git"
+B = "${WORKDIR}/build"
+
+inherit pkgconfig
+
+do_configure[cleandirs] = "${B}"
recipes-bsp/u-boot/u-boot-configure.inc new file +38 -0
new file mode 100644
index 0000000..235623d
@@ -0,0 +1,38 @@
+# This provides the logic for creating the desired u-boot config,
+# accounting for any *.cfg files added to SRC_URI.  It's separated
+# from u-boot.inc for use by recipes that need u-boot properly
+# configured but aren't doing a full build of u-boot itself (such as
+# its companion tools).
+
+inherit uboot-config cml1
+
+DEPENDS += "kern-tools-native"
+
+do_configure () {
+    if [ -n "${UBOOT_CONFIG}" ]; then
+        unset i j
+        for config in ${UBOOT_MACHINE}; do
+            i=$(expr $i + 1);
+            for type in ${UBOOT_CONFIG}; do
+                j=$(expr $j + 1);
+                if [ $j -eq $i ]; then
+                    oe_runmake -C ${S} O=${B}/${config} ${config}
+                    if [ -n "${@' '.join(find_cfgs(d))}" ]; then
+                        merge_config.sh -m -O ${B}/${config} ${B}/${config}/.config ${@" ".join(find_cfgs(d))}
+                        oe_runmake -C ${S} O=${B}/${config} oldconfig
+                    fi
+                fi
+            done
+            unset j
+        done
+        unset i
+    else
+        if [ -n "${UBOOT_MACHINE}" ]; then
+            oe_runmake -C ${S} O=${B} ${UBOOT_MACHINE}
+        else
+            oe_runmake -C ${S} O=${B} oldconfig
+        fi
+        merge_config.sh -m .config ${@" ".join(find_cfgs(d))}
+        cml1_do_configure
+    fi
+}
recipes-bsp/u-boot/u-boot-tools.inc new file +85 -0

85 lines not on this page · raw message

recipes-bsp/u-boot/u-boot-tools_2024.04-rc3.bb new file +2 -0
new file mode 100644
index 0000000..7eaf721
@@ -0,0 +1,2 @@
+require u-boot-common.inc
+require u-boot-tools.inc
recipes-bsp/u-boot/u-boot.inc new file +345 -0

345 lines not on this page · raw message

recipes-bsp/u-boot/u-boot_2024.04-rc3.bb new file +5 -0
new file mode 100644
index 0000000..b15bcaa
@@ -0,0 +1,5 @@
+require u-boot-common.inc
+require u-boot.inc
+
+DEPENDS += "bc-native dtc-native python3-pyelftools-native"
+
Signature · 1 line
2.34.1
author
#2 lore raw

RFC PATCH 2/2 u-boot: bump to v2024.04-rc4

In reply to Tim Orling

https://github.com/u-boot/u-boot/compare/v2024.04-rc3...v2024.04-rc4

Release announcement:
https://lists.denx.de/pipermail/u-boot/2024-March/547988.html

---
 recipes-bsp/u-boot/u-boot-common.inc                            | 2 +-
 ...{u-boot-tools_2024.04-rc3.bb => u-boot-tools_2024.04-rc4.bb} | 0
 .../u-boot/{u-boot_2024.04-rc3.bb => u-boot_2024.04-rc4.bb}     | 0
 3 files changed, 1 insertion(+), 1 deletion(-)
 rename recipes-bsp/u-boot/{u-boot-tools_2024.04-rc3.bb => u-boot-tools_2024.04-rc4.bb} (100%)
 rename recipes-bsp/u-boot/{u-boot_2024.04-rc3.bb => u-boot_2024.04-rc4.bb} (100%)
recipes-bsp/u-boot/u-boot-common.inc +1 -1
index 3f29f23..69ecff8 100644
@@ -12,7 +12,7 @@ PE = "1"
 
 # We use the revision in order to avoid having to fetch it from the
 # repo during parse
-SRCREV = "d49fa3defa50c6d3f04acbb52fd486c13c14ab6a"
+SRCREV = "f3c979dd0053c082d2df170446923e7ce5edbc2d"
 
 SRC_URI = "git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master"
 
recipes-bsp/u-boot/u-boot-tools_2024.04-rc4.bb renamed from recipes-bsp/u-boot/u-boot-tools_2024.04-rc3.bb +0 -0
similarity index 100%
rename from recipes-bsp/u-boot/u-boot-tools_2024.04-rc3.bb
rename to recipes-bsp/u-boot/u-boot-tools_2024.04-rc4.bb
recipes-bsp/u-boot/u-boot_2024.04-rc4.bb renamed from recipes-bsp/u-boot/u-boot_2024.04-rc3.bb +0 -0
similarity index 100%
rename from recipes-bsp/u-boot/u-boot_2024.04-rc3.bb
rename to recipes-bsp/u-boot/u-boot_2024.04-rc4.bb
Signature · 1 line
2.34.1