diff options
Diffstat (limited to 'meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2024.2+git-generic.inc')
| -rw-r--r-- | meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2024.2+git-generic.inc | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2024.2+git-generic.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2024.2+git-generic.inc new file mode 100644 index 00000000..7416dfb5 --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware_2024.2+git-generic.inc | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | # Separate build directories for versal and versal-net | ||
| 2 | SOC_DIR = "versal" | ||
| 3 | SOC_DIR:versal-net = "versal_net" | ||
| 4 | B = "${S}/lib/sw_apps/versal_plm/src/${SOC_DIR}" | ||
| 5 | |||
| 6 | BSP_DIR ?= "${B}/../../misc/versal_plm_bsp" | ||
| 7 | |||
| 8 | FILESPATH .= ":${FILE_DIRNAME}/embeddedsw/${PV}:${FILE_DIRNAME}/embeddedsw" | ||
| 9 | |||
| 10 | SRC_URI += " \ | ||
| 11 | file://makefile-skip-copy_bsp.sh.patch \ | ||
| 12 | file://0001-versal_fw-Fixup-core-makefiles.patch \ | ||
| 13 | " | ||
| 14 | |||
| 15 | EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra -Os -flto -ffat-lto-objects" | ||
| 16 | |||
| 17 | do_configure() { | ||
| 18 | # manually do the copy_bsp step first, so as to be able to fix up use of | ||
| 19 | # mb-* commands | ||
| 20 | ${B}/../../misc/${SOC_DIR}/copy_bsp.sh | ||
| 21 | } | ||
| 22 | |||
| 23 | do_compile() { | ||
| 24 | oe_runmake | ||
| 25 | |||
| 26 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin | ||
| 27 | } | ||
