[OE-core] [PATCH 1/2] kernel.bbclass: Fix fitimage build failure
Manjukumar Matha
manjukumar.harthikote-matha at xilinx.com
Thu Dec 14 02:23:50 UTC 2017
From: Thomas Perrot <thomas.perrot at tupi.fr>
When compiling fitImage with initramfs bundle, the build breaks by
throwing the following error
| CHK include/generated/compile.h
| CHK kernel/config_data.h
| mv: cannot stat 'arch/arm64/boot/fitImage': No such file or directory
Fix the error during this compilation by skipping fitImage in
do_bundle_initramfs function
Signed-off-by: Thomas Perrot <thomas.perrot at tupi.fr>
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha at xilinx.com>
---
meta/classes/kernel.bbclass | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 7ef4f47..4240752 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -208,7 +208,9 @@ do_bundle_initramfs () {
# Backing up kernel image relies on its type(regular file or symbolic link)
tmp_path=""
for type in ${KERNEL_IMAGETYPES} ; do
- if [ -h ${KERNEL_OUTPUT_DIR}/$type ] ; then
+ if [ "$type" = "fitImage" ] ; then
+ continue
+ elif [ -h ${KERNEL_OUTPUT_DIR}/$type ] ; then
linkpath=`readlink -n ${KERNEL_OUTPUT_DIR}/$type`
realpath=`readlink -fn ${KERNEL_OUTPUT_DIR}/$type`
mv -f $realpath $realpath.bak
--
2.7.4
More information about the Openembedded-core
mailing list