summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChirag Shilwant <c-shilwant@ti.com>2023-09-15 16:45:22 +0530
committerRyan Eatmon <reatmon@ti.com>2023-09-20 17:28:50 -0500
commit6a7842768b7793c277e1958af54ddff46ee08a24 (patch)
treeea44b5dc038e8e486a30ba7e12d0340ee2b0b12b
parent0271f0a9bc355abcea41ea06be9fddc598a0d7d1 (diff)
downloadmeta-ti-6a7842768b7793c277e1958af54ddff46ee08a24.tar.gz
recipes-bsp: u-boot: Add u-boot-mergeconfig.inc to handle fragment u-boot config
- U-boot recipe in OE-Core supports out-of-tree config fragments that are passed via SRC_URI and automatically merges all *.cfg files as fragments. This makes specifying config fragments in the machine configuration a bit difficult. Hence, add a logic which will ensure we handle u-boot config fragments using a new variable UBOOT_CONFIG_FRAGMENTS. - The u-boot-mergeconfig.inc will allow us to build u-boot with list of config fragments specified in UBOOT_CONFIG_FRAGMENTS along with the base defconfig mentioned in UBOOT_MACHINE. - Include u-boot-mergeconfig.inc in u-boot-ti.inc Signed-off-by: Chirag Shilwant <c-shilwant@ti.com> Reviewed-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
-rw-r--r--meta-ti-bsp/recipes-bsp/u-boot/u-boot-mergeconfig.inc7
-rw-r--r--meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc1
2 files changed, 8 insertions, 0 deletions
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-mergeconfig.inc b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-mergeconfig.inc
new file mode 100644
index 00000000..c7ce5047
--- /dev/null
+++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-mergeconfig.inc
@@ -0,0 +1,7 @@
1do_configure:append () {
2 if [ -n "${UBOOT_CONFIG_FRAGMENTS}" ] && [ -n "${UBOOT_MACHINE}" ]
3 then
4 oe_runmake -C ${S} O=${B} ${UBOOT_MACHINE} ${UBOOT_CONFIG_FRAGMENTS}
5 oe_runmake -C ${S} O=${B} olddefconfig
6 fi
7}
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 f3285c23..5292517b 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
@@ -7,6 +7,7 @@ SPL_BINARY ?= "MLO"
7 7
8require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot-common.inc 8require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot-common.inc
9require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot.inc 9require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot.inc
10require u-boot-mergeconfig.inc
10 11
11FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot:" 12FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot:"
12 13