x86_64 KBUILD_IMAGE
x86_64 doesn't set KBUILD_IMAGE, and hence defaults to vmlinux. This confuses make rpm in such a manner that it copies a raw ELF executable to /boot/vmlinuz-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION instead of the expected bzImage, which is surprisingly unbootable and not what's normally expected to be placed in /boot/ with that filename.
Just setting the variable is enough to convince it to use bzImage properly.
-- wli
arch/x86_64/Makefile +1 -0
@@ -77,6 +77,7 @@ all: bzImage BOOTIMAGE := arch/x86_64/boot/bzImage +KBUILD_IMAGE := $(BOOTIMAGE) bzImage: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(BOOTIMAGE)
Andi Kleen
AppliedQuoted 7 lines · William Lee Irwin III
x86_64doesn't setKBUILD_IMAGE, and hence defaults to vmlinux. This confuses make rpm in such a manner that it copies a raw ELF executable to/boot/vmlinuz-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSIONinstead of the expected bzImage, which is surprisingly unbootable and not what's normally expected to be placed in/boot/with that filename.Just setting the variable is enough to convince it to use bzImage properly.
Applied. Thanks.
-Andi