diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2024-08-13 14:52:39 -0600 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2024-09-04 09:32:26 -0500 |
| commit | c7074d682d8a1743062efd47037b4b59667a0b5f (patch) | |
| tree | 1fdbe70ef729152395cde649312856be47d876ef /meta-xilinx-standalone-sdt | |
| parent | d7238edf7afe4c7afb6e304f9564d46a883b1e1a (diff) | |
| download | meta-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.inc | 12 |
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" | |||
| 11 | ESW_FSBL_DEPENDS:append:zynq = " xilrsa" | 11 | ESW_FSBL_DEPENDS:append:zynq = " xilrsa" |
| 12 | ESW_FSBL_DEPENDS:append:zynqmp = " xilsecure xilpm" | 12 | ESW_FSBL_DEPENDS:append:zynqmp = " xilsecure xilpm" |
| 13 | 13 | ||
| 14 | USE_SDT_ARTIFACTS ?= "" | 14 | DEPENDS += "${PSU_INIT_DEPENDS} ${ESW_FSBL_DEPENDS}" |
| 15 | USE_SDT_ARTIFACTS[doc] = "Set this to "1" in machine file, if SDT artifacts are used from repo" | ||
| 16 | |||
| 17 | DEPENDS += "${@'sdt-artifacts' if d.getVar('USE_SDT_ARTIFACTS') == '1' else ''} ${ESW_FSBL_DEPENDS}" | ||
| 18 | 15 | ||
| 19 | CFLAGS:append:aarch64 = " -DARMA53_64" | 16 | CFLAGS:append:aarch64 = " -DARMA53_64" |
| 20 | CFLAGS:append:armv7r = " -DARMR5" | 17 | CFLAGS:append:armv7r = " -DARMR5" |
| 21 | 18 | ||
| 19 | # These files usually come in from sdt-artifacts (SYSTEM_DTFILE_DEPENDS) | ||
| 22 | FSBL_PS_INIT_C:zynq = "ps7_init.c" | 20 | FSBL_PS_INIT_C:zynq = "ps7_init.c" |
| 23 | FSBL_PS_INIT_C:zynqmp = "psu_init.c" | 21 | FSBL_PS_INIT_C:zynqmp = "psu_init.c" |
| 24 | FSBL_PS_INIT_H:zynq = "ps7_init.h" | 22 | FSBL_PS_INIT_H:zynq = "ps7_init.h" |
| 25 | FSBL_PS_INIT_H:zynqmp = "psu_init.h" | 23 | FSBL_PS_INIT_H:zynqmp = "psu_init.h" |
| 26 | 24 | ||
| 25 | SYSTEM_DTFILE_DEPENDS ??= "" | ||
| 26 | PSU_INIT_DEPENDS ?= "${SYSTEM_DTFILE_DEPENDS}" | ||
| 27 | PSU_INIT_PATH ?= "${SYSTEM_DTFILE_DIR}" | 27 | PSU_INIT_PATH ?= "${SYSTEM_DTFILE_DIR}" |
| 28 | PSU_INIT_PATH[doc] = "Path to psu_init or ps7_init files, defaults to system device tree output directory" | 28 | PSU_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 | } |
