aboutsummaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware_2024.1+git-generic.inc
blob: 4d303a840fdbcd0a86cb6c7d6534a4821b4bacd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Separate build directories for versal and versal-net
SOC_DIR = "versal"
SOC_DIR:versal-net = "versal_net"
B = "${S}/lib/sw_apps/versal_psmfw/src/${SOC_DIR}"

BSP_DIR ?= "${B}/../../misc/versal_psmfw_bsp"

EXTRA_COMPILER_FLAGS = "-g -ffunction-sections -fdata-sections -Wall -Wextra"

# Override default since we're in a subdirectory deeper now...
do_configure() {
    # manually do the copy_bsp step first, so as to be able to fix up use of
    # mb-* commands
    if [ ${SOC_DIR} != "versal" ]; then
        ${B}/../../misc/${SOC_DIR}/copy_bsp.sh
    else
        ${B}/../../misc/copy_bsp.sh
    fi
}

do_compile() {
    oe_runmake

    ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/${ESW_COMPONENT}.bin
}