summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone-sdt
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2024-08-13 14:52:39 -0600
committerMark Hatle <mark.hatle@amd.com>2024-09-04 09:32:26 -0500
commitc7074d682d8a1743062efd47037b4b59667a0b5f (patch)
tree1fdbe70ef729152395cde649312856be47d876ef /meta-xilinx-standalone-sdt
parentd7238edf7afe4c7afb6e304f9564d46a883b1e1a (diff)
downloadmeta-xilinx-c7074d682d8a1743062efd47037b4b59667a0b5f.tar.gz
meta-xilinx-standalone-sdt: fsbl-firmware: Fix dependencies on sdt-artifacts
Additionally rework the fsbl-firmware's access to the PSU_INIT files. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-standalone-sdt')
-rw-r--r--meta-xilinx-standalone-sdt/recipes-bsp/embeddedsw/fsbl-firmware_sdt.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta-xilinx-standalone-sdt/recipes-bsp/embeddedsw/fsbl-firmware_sdt.inc b/meta-xilinx-standalone-sdt/recipes-bsp/embeddedsw/fsbl-firmware_sdt.inc
index 838004fa..2c96b04f 100644
--- a/meta-xilinx-standalone-sdt/recipes-bsp/embeddedsw/fsbl-firmware_sdt.inc
+++ b/meta-xilinx-standalone-sdt/recipes-bsp/embeddedsw/fsbl-firmware_sdt.inc
@@ -11,19 +11,19 @@ ESW_FSBL_DEPENDS = "xilstandalone xiltimer xilffs"
11ESW_FSBL_DEPENDS:append:zynq = " xilrsa" 11ESW_FSBL_DEPENDS:append:zynq = " xilrsa"
12ESW_FSBL_DEPENDS:append:zynqmp = " xilsecure xilpm" 12ESW_FSBL_DEPENDS:append:zynqmp = " xilsecure xilpm"
13 13
14USE_SDT_ARTIFACTS ?= "" 14DEPENDS += "${PSU_INIT_DEPENDS} ${ESW_FSBL_DEPENDS}"
15USE_SDT_ARTIFACTS[doc] = "Set this to "1" in machine file, if SDT artifacts are used from repo"
16
17DEPENDS += "${@'sdt-artifacts' if d.getVar('USE_SDT_ARTIFACTS') == '1' else ''} ${ESW_FSBL_DEPENDS}"
18 15
19CFLAGS:append:aarch64 = " -DARMA53_64" 16CFLAGS:append:aarch64 = " -DARMA53_64"
20CFLAGS:append:armv7r = " -DARMR5" 17CFLAGS:append:armv7r = " -DARMR5"
21 18
19# These files usually come in from sdt-artifacts (SYSTEM_DTFILE_DEPENDS)
22FSBL_PS_INIT_C:zynq = "ps7_init.c" 20FSBL_PS_INIT_C:zynq = "ps7_init.c"
23FSBL_PS_INIT_C:zynqmp = "psu_init.c" 21FSBL_PS_INIT_C:zynqmp = "psu_init.c"
24FSBL_PS_INIT_H:zynq = "ps7_init.h" 22FSBL_PS_INIT_H:zynq = "ps7_init.h"
25FSBL_PS_INIT_H:zynqmp = "psu_init.h" 23FSBL_PS_INIT_H:zynqmp = "psu_init.h"
26 24
25SYSTEM_DTFILE_DEPENDS ??= ""
26PSU_INIT_DEPENDS ?= "${SYSTEM_DTFILE_DEPENDS}"
27PSU_INIT_PATH ?= "${SYSTEM_DTFILE_DIR}" 27PSU_INIT_PATH ?= "${SYSTEM_DTFILE_DIR}"
28PSU_INIT_PATH[doc] = "Path to psu_init or ps7_init files, defaults to system device tree output directory" 28PSU_INIT_PATH[doc] = "Path to psu_init or ps7_init files, defaults to system device tree output directory"
29 29
@@ -31,13 +31,13 @@ do_configure:prepend() {
31 if [ -e ${PSU_INIT_PATH}/${FSBL_PS_INIT_C} ]; then 31 if [ -e ${PSU_INIT_PATH}/${FSBL_PS_INIT_C} ]; then
32 install -m 0644 ${PSU_INIT_PATH}/${FSBL_PS_INIT_C} ${S}/${ESW_COMPONENT_SRC} 32 install -m 0644 ${PSU_INIT_PATH}/${FSBL_PS_INIT_C} ${S}/${ESW_COMPONENT_SRC}
33 else 33 else
34 bbwarn "Using the default ${FSBL_PS_INIT_C}, this may not work correctly." 34 bbfatal "Using the default ${FSBL_PS_INIT_C}, this may not work correctly. Looking for ${PSU_INIT_PATH}/${FSBL_PS_INIT_C}"
35 fi 35 fi
36 36
37 if [ -e ${PSU_INIT_PATH}/${FSBL_PS_INIT_H} ]; then 37 if [ -e ${PSU_INIT_PATH}/${FSBL_PS_INIT_H} ]; then
38 install -m 0644 ${PSU_INIT_PATH}/${FSBL_PS_INIT_H} ${S}/${ESW_COMPONENT_SRC} 38 install -m 0644 ${PSU_INIT_PATH}/${FSBL_PS_INIT_H} ${S}/${ESW_COMPONENT_SRC}
39 else 39 else
40 bbwarn "Using the default ${FSBL_PS_INIT_H}, this may not work correctly." 40 bbfatal "Using the default ${FSBL_PS_INIT_H}, this may not work correctly. Looking for ${PSU_INIT_PATH}/${FSBL_PS_INIT_H}"
41 fi 41 fi
42 install -m 0644 ${S}/cmake/UserConfig.cmake ${S}/${ESW_COMPONENT_SRC} 42 install -m 0644 ${S}/cmake/UserConfig.cmake ${S}/${ESW_COMPONENT_SRC}
43} 43}