summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Eatmon <reatmon@ti.com>2025-07-09 11:07:53 -0500
committerRyan Eatmon <reatmon@ti.com>2025-07-10 09:59:33 -0500
commit9601219021a43cf0c8b8d30ff6fd5f1e4bd42621 (patch)
tree63d96237bf5ad8ad6fcff2c9d89107df363d485b
parentc4b03c2c975207ec351040c12dc5b3778e24689a (diff)
downloadmeta-ti-9601219021a43cf0c8b8d30ff6fd5f1e4bd42621.tar.gz
u-boot-ti: Move UBOOT_VERSION into dynamic layer
The gitpkgv class we are using to set UBOOT_VERSION is located in meta-openembedded. We do not want to depend on meta-openembedded to keep meta-ti-bsp as light as possible, and the naming of UBOOT_VERSION is not a requirement, just a nice to have. Dynamic layers allow us to use the class if it is available in the build, but not require it. Signed-off-by: Ryan Eatmon <reatmon@ti.com>
-rw-r--r--meta-ti-bsp/conf/layer.conf8
-rw-r--r--meta-ti-bsp/dynamic-layers/openembedded-layer/recipes-bsp/u-boot/u-boot-ti-%.bbappend5
-rw-r--r--meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc4
3 files changed, 13 insertions, 4 deletions
diff --git a/meta-ti-bsp/conf/layer.conf b/meta-ti-bsp/conf/layer.conf
index 251f1fa4..e3a28628 100644
--- a/meta-ti-bsp/conf/layer.conf
+++ b/meta-ti-bsp/conf/layer.conf
@@ -18,6 +18,14 @@ LAYERDEPENDS_meta-ti-bsp = " \
18 meta-arm \ 18 meta-arm \
19" 19"
20 20
21LAYERRECOMMENDS_meta-ti-bsp = " \
22 openembedded-layer \
23"
24
25BBFILES_DYNAMIC += " \
26 openembedded-layer:${LAYERDIR}/dynamic-layers/openembedded-layer/recipes*/*/*.bbappend \
27"
28
21SIGGEN_EXCLUDERECIPES_ABISAFE += " \ 29SIGGEN_EXCLUDERECIPES_ABISAFE += " \
22 mesa-pvr \ 30 mesa-pvr \
23" 31"
diff --git a/meta-ti-bsp/dynamic-layers/openembedded-layer/recipes-bsp/u-boot/u-boot-ti-%.bbappend b/meta-ti-bsp/dynamic-layers/openembedded-layer/recipes-bsp/u-boot/u-boot-ti-%.bbappend
new file mode 100644
index 00000000..0f91e37e
--- /dev/null
+++ b/meta-ti-bsp/dynamic-layers/openembedded-layer/recipes-bsp/u-boot/u-boot-ti-%.bbappend
@@ -0,0 +1,5 @@
1
2inherit gitpkgv
3PKGV = "${PV}${GITPKGV}"
4UBOOT_VERSION = "${PKGV}-${PKGR}"
5
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
index 743eb61b..f9f7d16d 100644
--- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
+++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
@@ -5,10 +5,6 @@ do_compile:prepend () {
5 echo ${scm_version} > ${S}/.scmversion 5 echo ${scm_version} > ${S}/.scmversion
6} 6}
7 7
8inherit gitpkgv
9PKGV = "${PV}${GITPKGV}"
10UBOOT_VERSION = "${PKGV}-${PKGR}"
11
12UBOOT_SUFFIX ?= "img" 8UBOOT_SUFFIX ?= "img"
13SPL_BINARY ?= "MLO" 9SPL_BINARY ?= "MLO"
14 10