[OE-core] [openembedded-core][PATCH] kernel-fitimage.bbclass: Create a "fitImage" symlink to resulting FIT image.
Leon Woestenberg
leon at sidebranch.com
Mon Sep 3 01:16:06 UTC 2018
From: Walter Goossens <waltergoossens at creative-embedded.com>
If an initramfs was used, the fitImage link will point to the FIT containing
the initramfs. Otherwise it will link to the FIT without initramfs.
This ensures the user can depend on "fitImage" to point to the desired
FIT image.
Signed-off-by: Leon Woestenberg <leon at sidebranch.com>
---
meta/classes/kernel-fitimage.bbclass | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass
index 6d02d74..b672579 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -496,6 +496,9 @@ kernel_do_deploy_append() {
if [ -n "${INITRAMFS_IMAGE}" ]; then
ln -sf ${its_initramfs_base_name}.its ${its_initramfs_symlink_name}.its
ln -sf ${fit_initramfs_base_name}.bin ${fit_initramfs_symlink_name}.bin
+ ln -sf ${fit_initramfs_base_name}.bin fitImage
+ else
+ ln -sf ${linux_bin_base_name}.bin fitImage
fi
fi
}
--
2.7.4
More information about the Openembedded-core
mailing list