From 3702a0aa10bc5e5b210e597fba9c9c07616c1131 Mon Sep 17 00:00:00 2001 From: Appana Durga Kedareswara rao Date: Thu, 8 Aug 2024 22:21:47 +0530 Subject: 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 Signed-off-by: Mark Hatle --- meta-xilinx-standalone-sdt/classes-recipe/esw.bbclass | 7 +------ 1 file changed, 1 insertion(+), 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() { bb.error("Couldn't find source dir %s" % d.getVar('OECMAKE_SOURCEPATH')) os.chdir(d.getVar('B')) - command = ["lopper"] + ["-f"] + [system_dt[0]] + ["--"] + ["baremetalconfig_xlnx.py"] + [machine] + [src_dir[0]] + command = ["lopper"] + ["-f"] + ["-O"] + [src_dir[0]] + [system_dt[0]] + ["--"] + ["baremetalconfig_xlnx.py"] + [machine] + [src_dir[0]] subprocess.run(command, check = True) - src_file = glob.glob('*_g.c') - if src_file and os.path.exists(src_file[0]): - bb.note("Generated config file for driver %s" % driver_name) - command = ["install"] + ["-m"] + ["0755"] + [src_file[0]] + [src_dir[0]] - subprocess.run(command, check = True) } -- cgit v1.2.3-54-g00ecf