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 15:36:25 -0500
commit479d3c0dd1ff44c8a9d76024d69a2571d755d54d (patch)
tree4bf5e2425d15ec9bfd274c1ca3bf4f56a389659d
parentf0787243b84c7131ebd8c40a8a945583c894aae1 (diff)
downloadmeta-ti-479d3c0dd1ff44c8a9d76024d69a2571d755d54d.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 481daf2c..cbf7f509 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 660ac557..b2f26a5c 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