summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaju Kumar Pothuraju <rajukumar.pothuraju@amd.com>2024-12-12 21:19:13 +0530
committerMark Hatle <mark.hatle@amd.com>2025-03-30 14:16:06 -0600
commitcca59d47d3040289b99a2e5f816abcb14047e456 (patch)
treec815eff1af92a5f384cce9c5f7c97a559e52d78f
parentfade9d4e41854d66bf53e962731d47feb729c444 (diff)
downloadmeta-xilinx-cca59d47d3040289b99a2e5f816abcb14047e456.tar.gz
xilinx-bootbin: Update to work with multiple optionaldata fields
optionaldata fields can be multiple update the logic to work with multiple with ';' separated. Signed-off-by: Raju Kumar Pothuraju <rajukumar.pothuraju@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb b/meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb
index 80696176..9aaac3c4 100644
--- a/meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb
+++ b/meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb
@@ -141,9 +141,9 @@ python do_configure() {
141 biffd.write("the_ROM_image:\n") 141 biffd.write("the_ROM_image:\n")
142 biffd.write("{\n") 142 biffd.write("{\n")
143 143
144 if d.getVar("BIF_OPTIONAL_DATA"): 144 for opt_data in (d.getVar("BIF_OPTIONAL_DATA") or "").split(';'):
145 opt_data = d.getVar("BIF_OPTIONAL_DATA") or "" 145 if opt_data:
146 biffd.write("\toptionaldata { %s }\n" % opt_data) 146 biffd.write("\toptionaldata { %s }\n" % opt_data)
147 147
148 arch = d.getVar("SOC_FAMILY") 148 arch = d.getVar("SOC_FAMILY")
149 bifattr = (d.getVar("BIF_COMMON_ATTR") or "").split() 149 bifattr = (d.getVar("BIF_COMMON_ATTR") or "").split()