diff options
Diffstat (limited to 'meta-xilinx-standalone-sdt/recipes-applications/openamp-fw/openamp-fw.inc')
-rw-r--r-- | meta-xilinx-standalone-sdt/recipes-applications/openamp-fw/openamp-fw.inc | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/meta-xilinx-standalone-sdt/recipes-applications/openamp-fw/openamp-fw.inc b/meta-xilinx-standalone-sdt/recipes-applications/openamp-fw/openamp-fw.inc index 398f8dce..137532b7 100644 --- a/meta-xilinx-standalone-sdt/recipes-applications/openamp-fw/openamp-fw.inc +++ b/meta-xilinx-standalone-sdt/recipes-applications/openamp-fw/openamp-fw.inc | |||
@@ -2,26 +2,43 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda | |||
2 | LICENSE = "MIT" | 2 | LICENSE = "MIT" |
3 | INSANE_SKIP:${PN} = "arch" | 3 | INSANE_SKIP:${PN} = "arch" |
4 | 4 | ||
5 | FW_LIB_DIR = "/lib/firmware" | 5 | COMPATIBLE_HOST = ".*" |
6 | |||
7 | FW_LIB_DIR = "${nonarch_base_libdir}/firmware" | ||
8 | INSANE_SKIP:${PN} = "arch" | ||
6 | 9 | ||
7 | OPENAMP_FW_SRC_NAME ?= "rpmsg-echo.out" | 10 | OPENAMP_FW_SRC_NAME ?= "rpmsg-echo.out" |
8 | OPENAMP_FW_NAME ?= "image_echo_test" | 11 | OPENAMP_FW_NAME ?= "image_echo_test" |
9 | 12 | ||
10 | FW_MACHINE:zynqmp = "cortexr5-0-zynqmp" | 13 | FW_MACHINE:zynqmp = "cortexr5-0" |
11 | FW_MACHINE:versal = "cortexr5-0-versal" | 14 | FW_MACHINE:versal = "cortexr5-0" |
12 | FW_MACHINE:versal-net = "cortexr52-0-versal-net" | 15 | FW_MACHINE:versal-net = "cortexr52-0" |
13 | FW_OS ?= "baremetal" | 16 | FW_OS ?= "baremetal" |
14 | 17 | ||
15 | OPENAMP_FW_DEPLOY_DIR ?= "${MC_TMPDIR_PREFIX}-${FW_MACHINE}-${FW_OS}/deploy/images/${MACHINE}" | 18 | FW_TARGET ?= "${MACHINE}-${FW_MACHINE}-${FW_OS}" |
19 | |||
20 | OPENAMP_FW_DEPLOY_DIR ?= "-${FW_TARGET}/deploy/images/${MACHINE}/" | ||
21 | |||
16 | DEPENDS = " open-amp-xlnx " | 22 | DEPENDS = " open-amp-xlnx " |
17 | do_install[mcdepends] += "mc::${FW_MACHINE}-${FW_OS}:open-amp-xlnx:do_deploy" | 23 | do_install[mcdepends] += "mc::${FW_TARGET}:open-amp-xlnx:do_deploy" |
18 | do_install() { | 24 | do_install() { |
19 | install -d ${D}${FW_LIB_DIR} | 25 | src=${TMPDIR}${OPENAMP_FW_DEPLOY_DIR}/${OPENAMP_FW_SRC_NAME} |
20 | src=${OPENAMP_FW_DEPLOY_DIR}/${OPENAMP_FW_SRC_NAME} | ||
21 | dest=${D}${FW_LIB_DIR}/${OPENAMP_FW_NAME} | 26 | dest=${D}${FW_LIB_DIR}/${OPENAMP_FW_NAME} |
27 | if [ ! -e $src ]; then | ||
28 | bberror "Multiconfig firmware $src is not found. Set OPENAMP_FW_DEPLOY_DIR:pn-${PN} if necessary." | ||
29 | exit 1 | ||
30 | fi | ||
31 | install -d ${D}${FW_LIB_DIR} | ||
22 | install -m 0644 ${src} ${dest} | 32 | install -m 0644 ${src} ${dest} |
23 | } | 33 | } |
24 | 34 | ||
25 | do_compile[noexec] = "1" | 35 | do_compile[noexec] = "1" |
26 | 36 | ||
27 | FILES:${PN} = "/lib/firmware/${OPENAMP_FW_NAME}" | 37 | FILES:${PN} = "${FW_LIB_DIR}/${OPENAMP_FW_NAME}" |
38 | |||
39 | python() { | ||
40 | multiconfigs = (d.getVar('BBMULTICONFIG') or '').split() | ||
41 | fw_target = d.getVar('FW_TARGET') | ||
42 | if not fw_target in multiconfigs: | ||
43 | raise bb.parse.SkipRecipe("Required multiconfig %s is not available. Either add the multiconfig to your configuration or adjust FW_TARGET:pn-%s." % (fw_target, d.getVar('PN'))) | ||
44 | } | ||