summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorAndré Draszik <adraszik@tycoint.com>2016-06-24 11:42:32 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-01 16:22:43 +0100
commit83444bbe2d59990ad7783c999fb942ed27e1fc28 (patch)
tree5d56580cc2ddfde13931eb92b6ff7263b7d6ecae /meta/classes
parentdc1b016636d9e2c9d0e0bb624e8577cf53ca295d (diff)
downloadpoky-83444bbe2d59990ad7783c999fb942ed27e1fc28.tar.gz
classes/kernel: fix symlink creation in DEPLOYDIR for bundled initramfs
If multiple kernel image types have been specified, only the very first one would receive a symlink in DEPLOYDIR. The reason is that we're looping over the list of image types and check if a bundled initramfs images exists using a relative path. As part of the loop we're changing the current directory, hence all additional iterations fail to see the files we're looking for, and hence no symlinks are being created. Fix by not changing the directory and adjusting the ln invocation instead. (From OE-Core rev: 2a6ac8ca71b669b8653eb19417faf58575385a21) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/kernel.bbclass3
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 59bbbe8ad5..3127590480 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -586,8 +586,7 @@ kernel_do_deploy() {
586 initramfs_base_name=${type}-${INITRAMFS_BASE_NAME} 586 initramfs_base_name=${type}-${INITRAMFS_BASE_NAME}
587 initramfs_symlink_name=${type}-initramfs-${MACHINE} 587 initramfs_symlink_name=${type}-initramfs-${MACHINE}
588 install -m 0644 ${KERNEL_OUTPUT_DIR}/${type}.initramfs ${DEPLOYDIR}/${initramfs_base_name}.bin 588 install -m 0644 ${KERNEL_OUTPUT_DIR}/${type}.initramfs ${DEPLOYDIR}/${initramfs_base_name}.bin
589 cd ${DEPLOYDIR} 589 ln -sf ${initramfs_base_name}.bin ${DEPLOYDIR}/${initramfs_symlink_name}.bin
590 ln -sf ${initramfs_base_name}.bin ${initramfs_symlink_name}.bin
591 fi 590 fi
592 done 591 done
593} 592}