summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAppana Durga Kedareswara rao <appana.durga.rao@xilinx.com>2021-04-09 10:36:41 +0530
committerSai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>2021-09-27 21:33:21 -0700
commitef01c1c5065808501a00216a22d5060538e6c032 (patch)
tree2b3dc61d002dd6657914dbc765f1bf2598730109
parentaede5eaa25f673dd20b7dc969750772c88da1915 (diff)
downloadmeta-xilinx-ef01c1c5065808501a00216a22d5060538e6c032.tar.gz
meta-xilinx-standalone-experimental: recipes-applications: fsbl-zynqmp: Copy psu_init files
This commit adds a task for copying psu_init files from the system device-tree folder. Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com>
-rw-r--r--meta-xilinx-standalone-experimental/recipes-applications/fsbl-zynqmp/fsbl_git.bb18
1 files changed, 18 insertions, 0 deletions
diff --git a/meta-xilinx-standalone-experimental/recipes-applications/fsbl-zynqmp/fsbl_git.bb b/meta-xilinx-standalone-experimental/recipes-applications/fsbl-zynqmp/fsbl_git.bb
index 8c98ffe7..27c0081b 100644
--- a/meta-xilinx-standalone-experimental/recipes-applications/fsbl-zynqmp/fsbl_git.bb
+++ b/meta-xilinx-standalone-experimental/recipes-applications/fsbl-zynqmp/fsbl_git.bb
@@ -8,6 +8,24 @@ ESW_COMPONENT_SRC = "/lib/sw_apps/zynqmp_fsbl/src"
8 8
9DEPENDS += "xilstandalone xiltimer xilffs xilsecure xilpm" 9DEPENDS += "xilstandalone xiltimer xilffs xilsecure xilpm"
10 10
11do_copy_psu_init[depends] += "device-tree-lops:do_deploy"
12python do_copy_psu_init() {
13 import glob, subprocess, os
14
15 system_dt = d.getVar('SYSTEM_DTFILE')
16 src_dir = glob.glob(d.getVar('OECMAKE_SOURCEPATH'))
17 psu_init_src = os.path.dirname(system_dt)
18 src_file = psu_init_src + str("/psu_init.c")
19 hdr_file = psu_init_src + str("/psu_init.h")
20 if os.path.exists(src_file):
21 command = ["install"] + ["-m"] + ["0755"] + [src_file] + [src_dir[0]]
22 subprocess.run(command, check = True)
23 command = ["install"] + ["-m"] + ["0755"] + [hdr_file] + [src_dir[0]]
24 subprocess.run(command, check = True)
25}
26addtask do_copy_psu_init before do_configure after do_prepare_recipe_sysroot
27do_prepare_recipe_sysroot[rdeptask] = "do_unpack"
28
11do_install() { 29do_install() {
12 install -d ${D}/${base_libdir}/firmware 30 install -d ${D}/${base_libdir}/firmware
13 # Note that we have to make the ELF executable for it to be stripped 31 # Note that we have to make the ELF executable for it to be stripped