diff options
author | André Draszik <adraszik@tycoint.com> | 2016-06-24 14:40:08 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-01 16:08:46 +0100 |
commit | 7585ebbbe4e95870ab7475737ed5b94255351c72 (patch) | |
tree | 72b33aed534fed9e5bdba8189bbb358fbce82fe9 /meta/recipes-devtools/perl | |
parent | 8b378a17bf6d6c43f097b9df491e5c6ec59bf316 (diff) | |
download | openembedded-core-7585ebbbe4e95870ab7475737ed5b94255351c72.tar.gz openembedded-core-7585ebbbe4e95870ab7475737ed5b94255351c72.tar.bz2 openembedded-core-7585ebbbe4e95870ab7475737ed5b94255351c72.zip |
classes/kernel: fix symlink logic when bundling initramfs images
If linkpath points to the a file in KERNEL_OUTPUT_DIR, rather than
outside, then symlink creation for the bundled initramfs image files
fails.
This is because in that case $linkpath.initramfs and $realpath.initramfs
are in the same directory, KERNEL_OUTPUT_DIR, and hence are the same.
Since we just created $realpath.initramfs, creating a symlink with the
same name will fail.
Given that $linkpath is not necessarily the same as the kernel image type,
just removing this symlink creation is not the right thing to do, as
in that case kernel_do_deploy() wouldn't find the bundled file.
What we really want is a symlink from the name of the initramfs-bundled
kernel image type to the real initramfs-bundled kernel image, as that is
what is actually used later in do_deploy().
This brings the code path for when $KERNEL_OUTPUT_DIR/$type is a symlink
in line with when it is not.
Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-devtools/perl')
0 files changed, 0 insertions, 0 deletions