Skip to content

Commit

Permalink
vendor/xilinx: meta-xilinx-standalone-experimental: Move vendor speci…
Browse files Browse the repository at this point in the history
…fic information to xilinx

Move logic for vendor into vendor layer.

This logic will configure Libmetal Repo (for Linux and MC builds) with
existing variable instead of new one. Also ensure that support for Versal NET
is present.

Signed-off-by: Ben Levinsky <ben.levinsky@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
  • Loading branch information
bentheredonethat authored and mhatle committed Apr 23, 2024
1 parent b506426 commit 37a6ae4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion recipes-openamp/libmetal/libmetal.inc
Expand Up @@ -46,7 +46,6 @@ EXTRA_OECMAKE = " \
-DLIBEXEC_INSTALL_DIR=${libexecdir} \
-DMACHINE=${LIBMETAL_MACHINE} \
-DWITH_EXAMPLES=ON \
-DSOC_FAMILY="${SOC_FAMILY}" \
"

ALLOW_EMPTY:${PN}-demos = "1"
Expand Down
Expand Up @@ -37,7 +37,6 @@ LIBMETAL_DEMO ?= "OFF"

EXTRA_OECMAKE:armv7r = "\
-DWITH_EXAMPLES=${LIBMETAL_DEMO} \
-DSOC_FAMILY=${SOC_FAMILY} \
"
OECMAKE_C_LINK_FLAGS:append:xilinx-standalone = " -lxilstandalone -lscugic -lxiltimer -lgcc"

Expand Down
5 changes: 5 additions & 0 deletions vendor/xilinx/recipes-openamp/libmetal/libmetal-xlnx.inc
@@ -0,0 +1,5 @@
LIBMETAL_DEF:zynqmp = " -DPLATFORM_ZYNQMP"
LIBMETAL_DEF:versal = " -Dversal"
LIBMETAL_DEF:versal-net = " -DVERSAL_NET"
LIBMETAL_DEF ?= ""
TARGET_CFLAGS:append = " ${LIBMETAL_DEF} "
1 change: 1 addition & 0 deletions vendor/xilinx/recipes-openamp/libmetal/libmetal_%.bbappend
@@ -1,4 +1,5 @@
LIBMETAL_MACHINE:versal = "zynqmp"
LIBMETAL_MACHINE:versal-net = "zynqmp"

EXTRA_OECMAKE:append:zynqmp = " -DWITH_VFIO=on"
EXTRA_OECMAKE:append:versal = " -DWITH_VFIO=on"
Expand Down

0 comments on commit 37a6ae4

Please sign in to comment.