diff options
author | Mark Hatle <mark.hatle@amd.com> | 2024-08-02 12:38:34 -0500 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2024-08-05 13:44:05 -0500 |
commit | 11b608fbcaf7416c025bcbbdfd12932bc3a76f19 (patch) | |
tree | 505d79f2aaedd65a54b7ca1130f6c4b33abe5dc2 /meta-xilinx-standalone-sdt | |
parent | f14e51e278b2e88f51686e5924d12fb35dcf0b8b (diff) | |
download | meta-xilinx-11b608fbcaf7416c025bcbbdfd12932bc3a76f19.tar.gz |
meta-xilinx-standalone-sdt: openamp-fw: Expand error message / Fix path
Make it clear the package can't not be built if the specified multiconf
is not available in the users configuration.
Also fix the default deploy path.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-standalone-sdt')
-rw-r--r-- | meta-xilinx-standalone-sdt/recipes-applications/openamp-fw/openamp-fw.inc | 18 |
1 files changed, 16 insertions, 2 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 0aa6ae4b..dd2835ab 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,6 +2,8 @@ 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 | COMPATIBLE_HOST = ".*" | ||
6 | |||
5 | FW_LIB_DIR = "${nonarch_base_libdir}/firmware" | 7 | FW_LIB_DIR = "${nonarch_base_libdir}/firmware" |
6 | INSANE_SKIP:${PN} = "arch" | 8 | INSANE_SKIP:${PN} = "arch" |
7 | 9 | ||
@@ -15,17 +17,29 @@ FW_OS ?= "baremetal" | |||
15 | 17 | ||
16 | FW_TARGET ?= "${MACHINE}-${FW_MACHINE}-${FW_OS}" | 18 | FW_TARGET ?= "${MACHINE}-${FW_MACHINE}-${FW_OS}" |
17 | 19 | ||
18 | OPENAMP_FW_DEPLOY_DIR ?= "tmp-${FW_TARGET}/deploy" | 20 | OPENAMP_FW_DEPLOY_DIR ?= "tmp-${FW_TARGET}/deploy/images/${MACHINE}" |
21 | #OPENAMP_FW_DEPLOY_DIR ?= "tmp-${FW_TARGET}/deploy/" | ||
19 | 22 | ||
20 | DEPENDS = " open-amp-xlnx " | 23 | DEPENDS = " open-amp-xlnx " |
21 | do_install[mcdepends] += "mc::${FW_TARGET}:open-amp-xlnx:do_deploy" | 24 | do_install[mcdepends] += "mc::${FW_TARGET}:open-amp-xlnx:do_deploy" |
22 | do_install() { | 25 | do_install() { |
23 | install -d ${D}${FW_LIB_DIR} | ||
24 | src=${TOPDIR}/${OPENAMP_FW_DEPLOY_DIR}/${OPENAMP_FW_SRC_NAME} | 26 | src=${TOPDIR}/${OPENAMP_FW_DEPLOY_DIR}/${OPENAMP_FW_SRC_NAME} |
25 | dest=${D}${FW_LIB_DIR}/${OPENAMP_FW_NAME} | 27 | dest=${D}${FW_LIB_DIR}/${OPENAMP_FW_NAME} |
28 | if [ ! -e $src ]; then | ||
29 | bberror "Multiconfig firmware $src is not found. Set OPENAMP_FW_DEPLOY_DIR:pn-${PN} if necessary." | ||
30 | exit 1 | ||
31 | fi | ||
32 | install -d ${D}${FW_LIB_DIR} | ||
26 | install -m 0644 ${src} ${dest} | 33 | install -m 0644 ${src} ${dest} |
27 | } | 34 | } |
28 | 35 | ||
29 | do_compile[noexec] = "1" | 36 | do_compile[noexec] = "1" |
30 | 37 | ||
31 | FILES:${PN} = "${FW_LIB_DIR}/${OPENAMP_FW_NAME}" | 38 | FILES:${PN} = "${FW_LIB_DIR}/${OPENAMP_FW_NAME}" |
39 | |||
40 | python() { | ||
41 | multiconfigs = (d.getVar('BBMULTICONFIG') or '').split() | ||
42 | fw_target = d.getVar('FW_TARGET') | ||
43 | if not fw_target in multiconfigs: | ||
44 | 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'))) | ||
45 | } | ||