diff options
Diffstat (limited to 'meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2023.2.bb')
-rw-r--r-- | meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2023.2.bb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2023.2.bb b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2023.2.bb new file mode 100644 index 00000000..569c5a46 --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2023.2.bb | |||
@@ -0,0 +1,34 @@ | |||
1 | require psm-firmware.inc | ||
2 | |||
3 | # Separate build directories for versal and versal-net | ||
4 | SOC_DIR = "versal" | ||
5 | SOC_DIR:versal-net = "versal_net" | ||
6 | B = "${S}/lib/sw_apps/versal_psmfw/src/${SOC_DIR}" | ||
7 | |||
8 | BSP_DIR ?= "${B}/../../misc/versal_psmfw_bsp" | ||
9 | |||
10 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/2023.1:${FILE_DIRNAME}/embeddedsw" | ||
11 | |||
12 | SRC_URI += " \ | ||
13 | file://makefile-skip-copy_bsp.sh.patch \ | ||
14 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
15 | " | ||
16 | |||
17 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra" | ||
18 | |||
19 | # Override default since we're in a subdirectory deeper now... | ||
20 | do_configure() { | ||
21 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
22 | # mb-* commands | ||
23 | if [ ${SOC_DIR} != "versal" ]; then | ||
24 | ${B}/../../misc/${SOC_DIR}/copy_bsp.sh | ||
25 | else | ||
26 | ${B}/../../misc/copy_bsp.sh | ||
27 | fi | ||
28 | } | ||
29 | |||
30 | do_compile() { | ||
31 | oe_runmake | ||
32 | |||
33 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
34 | } | ||