Skip to contentSkip to conversation

x86_64 KBUILD_IMAGE

PATCH Applied William Lee Irwin III 2 participants 2 messages Jul 4, 2004

lore
Share & tools
lore
#0 lore raw

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
Index: mm5-2.6.7/arch/x86_64/Makefile
===================================================================
@@ -77,6 +77,7 @@
 all: bzImage
 
 BOOTIMAGE                     := arch/x86_64/boot/bzImage
+KBUILD_IMAGE                  := $(BOOTIMAGE)
 
 bzImage: vmlinux
 	$(Q)$(MAKE) $(build)=$(boot) $(BOOTIMAGE)
Applied
#1 lore raw
Quoted 7 lines · William Lee Irwin III

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.

Applied. Thanks.

-Andi