Bug#381787: mkvmlinuz should bail if it can't find addnote
Subject: mkvmlinuz should bail if it can't find addnote
Package: mkvmlinuz
Version: 23
A user from Ubuntu reported a bug in mkvmlinuz's failure reporting.
mkvmlinuz terminates silently when the object dir can't be found and verbose
mode is not set. It shouild bail and tell the user that the vmlinuz image
could not be created.
For example:
$ mkvmlinuz -d asd
Terminated with no output while
$ mkvmlinuz -d asd -v
=== Building for sub-architecture chrp.
=== Using kernel image file /boot/vmlinux-2.6.17-5-powerpc.
=== Using initrd image file /boot/initrd.img-2.6.17-5-powerpc.
=== Release version seems to be 2.6.17-5-powerpc.
=== Using object files from asd.
=== Building a bootable compressed kernel image
in /boot/vmlinuz-2.6.17-5-powerpc.
=== Doing build in /tmp/tmp.tkscvv6085.
=== Creating compressed initrd image initrd.gz...
cp -p /boot/initrd.img-2.6.17-5-powerpc /tmp/tmp.tkscvv6085/initrd.gz
=== Creating compressed kernel image vmlinux.gz...
strip -s -R .comment /boot/vmlinux-2.6.17-5-powerpc -o /tmp/tmp.tkscvv6085/vmlinux
gzip --force --best /tmp/tmp.tkscvv6085/vmlinux
=== Putting everything into ELF image file image.o...
objcopy
asd/mkvmlinuz-kernel-vmlinux.strip.o /tmp/tmp.tkscvv6085/dummy_kernel.o --add-section=.kernel:vmlinux.strip=/tmp/tmp.tkscvv6085/vmlinux.gz --set-section-flags=.kernel:vmlinux.strip=contents,alloc,load,readonly,data
objcopy: 'asd/mkvmlinuz-kernel-vmlinux.strip.o': No such file
objcopy: error: the input file 'asd/mkvmlinuz-kernel-vmlinux.strip.o' is empty
objcopy
asd/mkvmlinuz-kernel-initrd.o /tmp/tmp.tkscvv6085/dummy_initrd.o --add-section=.kernel:initrd=/tmp/tmp.tkscvv6085/initrd.gz --set-section-flags=.kernel:initrd=contents,alloc,load,readonly,data
objcopy: 'asd/mkvmlinuz-kernel-initrd.o': No such file
objcopy: error: the input file 'asd/mkvmlinuz-kernel-initrd.o' is empty
=== Creating bootable kernel image file vmlinuz.chrp...
ld -m elf32ppc -T asd/zImage.lds -o /tmp/tmp.tkscvv6085/vmlinuz.chrp
asd/crt0.o asd/string.o asd/prom.o asd/stdio.o asd/main.o asd/div64.o
asd/infblock.o asd/infcodes.o asd/inffast.o asd/inflate.o asd/inftrees.o
asd/infutil.o /tmp/tmp.tkscvv6085/dummy_kernel.o /tmp/tmp.tkscvv6085/dummy_initrd.o
ld: cannot open linker script file asd/zImage.lds: No such file or directory
asd/addnote /tmp/tmp.tkscvv6085/vmlinuz.chrp
/usr/sbin/mkvmlinuz: line 26: asd/addnote: No such file or directory
=== Cleaning up...
Complains that the object files can't be found.
Posted at: https://launchpad.net/distros/ubuntu/+source/mkvmlinuz/+bug/34305
Reply to: