diff options
| author | Ben Levinsky <ben.levinsky@amd.com> | 2024-02-14 09:06:58 -0800 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2024-02-15 13:50:28 -0600 |
| commit | e1a06225a7e7058f9916c94650fa2b888f4d5bb2 (patch) | |
| tree | 7813c763b961a922f893f09afab7a08038628d37 /meta-xilinx-standalone-experimental | |
| parent | 266e7242b131afa99bf17364d3e83184e3e352e9 (diff) | |
| download | meta-xilinx-e1a06225a7e7058f9916c94650fa2b888f4d5bb2.tar.gz | |
meta-xilinx-standalone-experimental: open-amp: Add openamp-fw* port
Port openamp-fw recipes to use open-amp-xlnx MC recipe
Signed-off-by: Ben Levinsky <ben.levinsky@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-standalone-experimental')
4 files changed, 48 insertions, 0 deletions
diff --git a/meta-xilinx-standalone-experimental/recipes-applications/openamp-fw/openamp-fw-echo-testd.bb b/meta-xilinx-standalone-experimental/recipes-applications/openamp-fw/openamp-fw-echo-testd.bb new file mode 100644 index 00000000..58f08bf2 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-applications/openamp-fw/openamp-fw-echo-testd.bb | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | require openamp-fw.inc | ||
| 2 | |||
| 3 | PROVIDES:append:armv7r = " openamp-fw-echo-testd " | ||
| 4 | |||
| 5 | OPENAMP_FW_SRC_NAME = "rpmsg-echo.out" | ||
| 6 | OPENAMP_FW_NAME = "image_echo_test" | ||
diff --git a/meta-xilinx-standalone-experimental/recipes-applications/openamp-fw/openamp-fw-mat-muld.bb b/meta-xilinx-standalone-experimental/recipes-applications/openamp-fw/openamp-fw-mat-muld.bb new file mode 100644 index 00000000..c8d4382d --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-applications/openamp-fw/openamp-fw-mat-muld.bb | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | require openamp-fw.inc | ||
| 2 | |||
| 3 | PROVIDES:append:armv7r = " openamp-fw-mat-muld " | ||
| 4 | |||
| 5 | OPENAMP_FW_SRC_NAME = "matrix_multiplyd.out" | ||
| 6 | OPENAMP_FW_NAME = "image_matrix_multiply" | ||
diff --git a/meta-xilinx-standalone-experimental/recipes-applications/openamp-fw/openamp-fw-rpc-demo.bb b/meta-xilinx-standalone-experimental/recipes-applications/openamp-fw/openamp-fw-rpc-demo.bb new file mode 100644 index 00000000..4efdb4c6 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-applications/openamp-fw/openamp-fw-rpc-demo.bb | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | require openamp-fw.inc | ||
| 2 | |||
| 3 | PROVIDES:append:armv7r = " openamp-fw-rpc-demo " | ||
| 4 | |||
| 5 | OPENAMP_FW_SRC_NAME = "rpc_demo.out" | ||
| 6 | OPENAMP_FW_NAME = "image_rpc_demo" | ||
| 7 | OPENAMP_WITH_PROXY = "ON" | ||
| 8 | |||
| 9 | # NOTE: BSP should have flag ESW_CFLAGS:append = " -DUNDEFINE_FILE_OPS=1 " | ||
diff --git a/meta-xilinx-standalone-experimental/recipes-applications/openamp-fw/openamp-fw.inc b/meta-xilinx-standalone-experimental/recipes-applications/openamp-fw/openamp-fw.inc new file mode 100644 index 00000000..dec27313 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-applications/openamp-fw/openamp-fw.inc | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
| 2 | LICENSE = "MIT" | ||
| 3 | INSANE_SKIP:${PN} = "arch" | ||
| 4 | |||
| 5 | FW_LIB_DIR = "/lib/firmware" | ||
| 6 | |||
| 7 | OPENAMP_FW_SRC_NAME ?= "rpmsg-echo.out" | ||
| 8 | OPENAMP_FW_NAME ?= "image_echo_test" | ||
| 9 | |||
| 10 | FW_MACHINE:zynqmp = "cortexr5-0-zynqmp" | ||
| 11 | FW_MACHINE:versal = "cortexr5-0-versal" | ||
| 12 | FW_MACHINE:versal-net = "cortexr52-0-versal-net" | ||
| 13 | FW_OS ?= "baremetal" | ||
| 14 | |||
| 15 | OPENAMP_FW_DEPLOY_DIR ?= "${BASE_TMPDIR}/tmp-${FW_MACHINE}-${FW_OS}/deploy/images/${MACHINE}" | ||
| 16 | DEPENDS = " open-amp-xlnx " | ||
| 17 | do_install[mcdepends] += "mc::${FW_MACHINE}-${FW_OS}:open-amp-xlnx:do_deploy" | ||
| 18 | do_install() { | ||
| 19 | install -d ${D}${FW_LIB_DIR} | ||
| 20 | src=${OPENAMP_FW_DEPLOY_DIR}/${OPENAMP_FW_SRC_NAME} | ||
| 21 | dest=${D}${FW_LIB_DIR}/${OPENAMP_FW_NAME} | ||
| 22 | install -m 0644 ${src} ${dest} | ||
| 23 | } | ||
| 24 | |||
| 25 | do_compile[noexec] = "1" | ||
| 26 | |||
| 27 | FILES:${PN} = "/lib/firmware/${OPENAMP_FW_NAME}" | ||
