aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2020-09-16 14:54:47 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-16 14:01:35 +0100
commit22874b43de45e86418f683eb9d4394d7a8a08033 (patch)
tree79a9e52b4f218c174dbe4317728cecfdfb4b4f1e /meta/classes/kernel.bbclass
parent9a16dc2ac3d5e8ea95a575c377d3ad1602c1db12 (diff)
downloadopenembedded-core-contrib-22874b43de45e86418f683eb9d4394d7a8a08033.tar.gz
openembedded-core-contrib-22874b43de45e86418f683eb9d4394d7a8a08033.tar.bz2
openembedded-core-contrib-22874b43de45e86418f683eb9d4394d7a8a08033.zip
kernel.bbclass: eliminate (initramfs_)symlink_name variables
* they are used only once, we can use the value directly * notice that .bin extension isn't part of the variable values [YOCTO #12937] Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass6
1 files changed, 2 insertions, 4 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 10e734a19e..fbd2959341 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -718,8 +718,7 @@ kernel_do_deploy() {
for imageType in ${KERNEL_IMAGETYPES} ; do
base_name=$imageType-${KERNEL_IMAGE_NAME}
install -m 0644 ${KERNEL_OUTPUT_DIR}/$imageType $deployDir/$base_name.bin
- symlink_name=$imageType-${KERNEL_IMAGE_LINK_NAME}
- ln -sf $base_name.bin $deployDir/$symlink_name.bin
+ ln -sf $base_name.bin $deployDir/$imageType-${KERNEL_IMAGE_LINK_NAME}.bin
ln -sf $base_name.bin $deployDir/$imageType
done
@@ -742,9 +741,8 @@ kernel_do_deploy() {
continue
fi
initramfs_base_name=$imageType-${INITRAMFS_NAME}
- initramfs_symlink_name=$imageType-${INITRAMFS_LINK_NAME}
install -m 0644 ${KERNEL_OUTPUT_DIR}/$imageType.initramfs $deployDir/$initramfs_base_name.bin
- ln -sf $initramfs_base_name.bin $deployDir/$initramfs_symlink_name.bin
+ ln -sf $initramfs_base_name.bin $deployDir/$imageType-${INITRAMFS_LINK_NAME}.bin
done
fi
}