summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAppana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com>2023-10-31 09:46:52 +0530
committerMark Hatle <mark.hatle@amd.com>2023-11-01 16:09:55 -0500
commitdd83b512b5dbf1b8f9396e5385e9e5c38d3e91d5 (patch)
tree16c70010303ed8a48f2ae6d9905d2230a75d60d2
parentfa788430b0ee2b4fd4dd5e8b14434e5bbca621f7 (diff)
downloadmeta-xilinx-dd83b512b5dbf1b8f9396e5385e9e5c38d3e91d5.tar.gz
meta-xilinx-standalone-experimental: classes: esw: Add task for common meta package
DEVICE_ID, BOARD, and other cmake meta-data are being generated in the standalone folder, which won't be available to other modules if other modules try to access this CMake variables it is generated as an empty string. Fix this issue by copying the common CMake meta-data file to the cmake directory, so that other modules can consume it Signed-off-by: Appana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-standalone-experimental/classes/esw.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-xilinx-standalone-experimental/classes/esw.bbclass b/meta-xilinx-standalone-experimental/classes/esw.bbclass
index 2f4d7277..a08e04fb 100644
--- a/meta-xilinx-standalone-experimental/classes/esw.bbclass
+++ b/meta-xilinx-standalone-experimental/classes/esw.bbclass
@@ -95,6 +95,14 @@ do_install() {
95CFLAGS:append = " ${ESW_CFLAGS}" 95CFLAGS:append = " ${ESW_CFLAGS}"
96EXTRA_OECMAKE += "-DYOCTO=ON" 96EXTRA_OECMAKE += "-DYOCTO=ON"
97 97
98do_configure:prepend() {
99 (
100 cd ${S}
101 lopper ${DTS_FILE} -- bmcmake_metadata_xlnx ${ESW_MACHINE} ${S}/lib/bsp/standalone/src/ hwcmake_metadata ${S}
102 install -m 0755 StandaloneExample.cmake ${S}/cmake/Findcommonmeta.cmake
103 )
104}
105
98# We need to find the license file, which vaires depending on the component 106# We need to find the license file, which vaires depending on the component
99# recurse a maximum of x times, could be fancier but it gets complicated since 107# recurse a maximum of x times, could be fancier but it gets complicated since
100# we dont know for certain we are running devtool or just externalsrc 108# we dont know for certain we are running devtool or just externalsrc