diff options
| author | Paul Eggleton <paul.eggleton@microsoft.com> | 2021-12-20 13:58:23 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-12-22 23:11:45 +0000 |
| commit | 65e8df66d9579b609791deb74d8e1b9ec17c1115 (patch) | |
| tree | 38d39d5f4e2234ea73b268de5c60a355b26d60c3 /meta/classes/kernel-devicetree.bbclass | |
| parent | 9eb8c5195e622dffe53b3c25432afc4db4985477 (diff) | |
| download | poky-65e8df66d9579b609791deb74d8e1b9ec17c1115.tar.gz | |
classes/kernel*: add variables to allow changing artifact extension
Allow .bin suffix to be removed (or changed) in the various artifact
filenames. Removing this extension is useful when trying to remove
symlinks and present only unversioned image files (especially for the
FIT image).
(From OE-Core rev: cbecc3cf06eb7359fedf3c6af281cc72178cad18)
Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel-devicetree.bbclass')
| -rw-r--r-- | meta/classes/kernel-devicetree.bbclass | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/classes/kernel-devicetree.bbclass b/meta/classes/kernel-devicetree.bbclass index c8aaf7458f..b4338da1b1 100644 --- a/meta/classes/kernel-devicetree.bbclass +++ b/meta/classes/kernel-devicetree.bbclass | |||
| @@ -93,18 +93,18 @@ do_deploy:append() { | |||
| 93 | if [ "$type" = "zImage" ] && [ "${KERNEL_DEVICETREE_BUNDLE}" = "1" ]; then | 93 | if [ "$type" = "zImage" ] && [ "${KERNEL_DEVICETREE_BUNDLE}" = "1" ]; then |
| 94 | cat ${D}/${KERNEL_IMAGEDEST}/$type \ | 94 | cat ${D}/${KERNEL_IMAGEDEST}/$type \ |
| 95 | $deployDir/$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext \ | 95 | $deployDir/$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext \ |
| 96 | > $deployDir/$type-$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext.bin | 96 | > $deployDir/$type-$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext${KERNEL_DTB_BIN_EXT} |
| 97 | if [ -n "${KERNEL_DTB_LINK_NAME}" ]; then | 97 | if [ -n "${KERNEL_DTB_LINK_NAME}" ]; then |
| 98 | ln -sf $type-$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext.bin \ | 98 | ln -sf $type-$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext${KERNEL_DTB_BIN_EXT} \ |
| 99 | $deployDir/$type-$dtb_base_name-${KERNEL_DTB_LINK_NAME}.$dtb_ext.bin | 99 | $deployDir/$type-$dtb_base_name-${KERNEL_DTB_LINK_NAME}.$dtb_ext${KERNEL_DTB_BIN_EXT} |
| 100 | fi | 100 | fi |
| 101 | if [ -e "${KERNEL_OUTPUT_DIR}/${type}.initramfs" ]; then | 101 | if [ -e "${KERNEL_OUTPUT_DIR}/${type}.initramfs" ]; then |
| 102 | cat ${KERNEL_OUTPUT_DIR}/${type}.initramfs \ | 102 | cat ${KERNEL_OUTPUT_DIR}/${type}.initramfs \ |
| 103 | $deployDir/$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext \ | 103 | $deployDir/$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext \ |
| 104 | > $deployDir/${type}-${INITRAMFS_NAME}-$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext.bin | 104 | > $deployDir/${type}-${INITRAMFS_NAME}-$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext${KERNEL_DTB_BIN_EXT} |
| 105 | if [ -n "${KERNEL_DTB_LINK_NAME}" ]; then | 105 | if [ -n "${KERNEL_DTB_LINK_NAME}" ]; then |
| 106 | ln -sf ${type}-${INITRAMFS_NAME}-$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext.bin \ | 106 | ln -sf ${type}-${INITRAMFS_NAME}-$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext${KERNEL_DTB_BIN_EXT} \ |
| 107 | $deployDir/${type}-${INITRAMFS_NAME}-$dtb_base_name-${KERNEL_DTB_LINK_NAME}.$dtb_ext.bin | 107 | $deployDir/${type}-${INITRAMFS_NAME}-$dtb_base_name-${KERNEL_DTB_LINK_NAME}.$dtb_ext${KERNEL_DTB_BIN_EXT} |
| 108 | fi | 108 | fi |
| 109 | fi | 109 | fi |
| 110 | fi | 110 | fi |
