diff options
author | Appana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com> | 2024-08-08 22:21:47 +0530 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2024-08-14 08:55:57 -0500 |
commit | 3702a0aa10bc5e5b210e597fba9c9c07616c1131 (patch) | |
tree | e91ce8b85d857ad2ad3c681bd74f9af498be4cce | |
parent | 9279005ee0cf048a00c5fabbdb3a19fd499a45bf (diff) | |
download | meta-xilinx-3702a0aa10bc5e5b210e597fba9c9c07616c1131.tar.gz |
meta-xilinx-standalone-sdt: classes-recipe: esw: Generate lopper meta-data directly into the source folder itself
Pass -O option to the lopper command so that all the required artifacts
will be copied to the source folder and no need to do explict copy.
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-sdt/classes-recipe/esw.bbclass | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/meta-xilinx-standalone-sdt/classes-recipe/esw.bbclass b/meta-xilinx-standalone-sdt/classes-recipe/esw.bbclass index abd08a5d..76245cf7 100644 --- a/meta-xilinx-standalone-sdt/classes-recipe/esw.bbclass +++ b/meta-xilinx-standalone-sdt/classes-recipe/esw.bbclass | |||
@@ -142,11 +142,6 @@ python do_generate_driver_data() { | |||
142 | bb.error("Couldn't find source dir %s" % d.getVar('OECMAKE_SOURCEPATH')) | 142 | bb.error("Couldn't find source dir %s" % d.getVar('OECMAKE_SOURCEPATH')) |
143 | 143 | ||
144 | os.chdir(d.getVar('B')) | 144 | os.chdir(d.getVar('B')) |
145 | command = ["lopper"] + ["-f"] + [system_dt[0]] + ["--"] + ["baremetalconfig_xlnx.py"] + [machine] + [src_dir[0]] | 145 | command = ["lopper"] + ["-f"] + ["-O"] + [src_dir[0]] + [system_dt[0]] + ["--"] + ["baremetalconfig_xlnx.py"] + [machine] + [src_dir[0]] |
146 | subprocess.run(command, check = True) | 146 | subprocess.run(command, check = True) |
147 | src_file = glob.glob('*_g.c') | ||
148 | if src_file and os.path.exists(src_file[0]): | ||
149 | bb.note("Generated config file for driver %s" % driver_name) | ||
150 | command = ["install"] + ["-m"] + ["0755"] + [src_file[0]] + [src_dir[0]] | ||
151 | subprocess.run(command, check = True) | ||
152 | } | 147 | } |