mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 21:32:13 +02:00
kernel: Make symbol link to vmlinuz in boot directory
Rename do_kernel_link_vmlinux to do_kernel_link_images and make a symbol link to vmlinuz(if exists) for reference in arch/$arch/boot directory. Signen-off-by: He Zhe <zhe.he@windriver.com> (From OE-Core rev: 6e58f54be103814b6b8a85b236510633c49e6832) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -484,15 +484,18 @@ python split_kernel_packages () {
|
||||
}
|
||||
|
||||
# Many scripts want to look in arch/$arch/boot for the bootable
|
||||
# image. This poses a problem for vmlinux based booting. This
|
||||
# task arranges to have vmlinux appear in the normalized directory
|
||||
# location.
|
||||
do_kernel_link_vmlinux() {
|
||||
# image. This poses a problem for vmlinux and vmlinuz based
|
||||
# booting. This task arranges to have vmlinux and vmlinuz appear
|
||||
# in the normalized directory location.
|
||||
do_kernel_link_images() {
|
||||
if [ ! -d "${B}/arch/${ARCH}/boot" ]; then
|
||||
mkdir ${B}/arch/${ARCH}/boot
|
||||
fi
|
||||
cd ${B}/arch/${ARCH}/boot
|
||||
ln -sf ../../../vmlinux
|
||||
if [ -f ../../../vmlinuz ]; then
|
||||
ln -sf ../../../vmlinuz
|
||||
fi
|
||||
}
|
||||
|
||||
do_strip() {
|
||||
@@ -522,7 +525,7 @@ do_strip() {
|
||||
}
|
||||
do_strip[dirs] = "${B}"
|
||||
|
||||
addtask do_strip before do_sizecheck after do_kernel_link_vmlinux
|
||||
addtask do_strip before do_sizecheck after do_kernel_link_images
|
||||
|
||||
# Support checking the kernel size since some kernels need to reside in partitions
|
||||
# with a fixed length or there is a limit in transferring the kernel to memory
|
||||
|
||||
Reference in New Issue
Block a user