* x86_64 KBUILD_IMAGE
@ 2004-07-04 1:27 William Lee Irwin III
2004-07-04 3:24 ` Andi Kleen
0 siblings, 1 reply; 2+ messages in thread
From: William Lee Irwin III @ 2004-07-04 1:27 UTC (permalink / raw)
To: linux-kernel; +Cc: ak
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
Index: mm5-2.6.7/arch/x86_64/Makefile
===================================================================
--- mm5-2.6.7.orig/arch/x86_64/Makefile 2004-07-02 20:43:26.000000000 -0700
+++ mm5-2.6.7/arch/x86_64/Makefile 2004-07-03 18:10:06.390377824 -0700
@@ -77,6 +77,7 @@
all: bzImage
BOOTIMAGE := arch/x86_64/boot/bzImage
+KBUILD_IMAGE := $(BOOTIMAGE)
bzImage: vmlinux
$(Q)$(MAKE) $(build)=$(boot) $(BOOTIMAGE)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: x86_64 KBUILD_IMAGE
2004-07-04 1:27 x86_64 KBUILD_IMAGE William Lee Irwin III
@ 2004-07-04 3:24 ` Andi Kleen
0 siblings, 0 replies; 2+ messages in thread
From: Andi Kleen @ 2004-07-04 3:24 UTC (permalink / raw)
To: William Lee Irwin III, linux-kernel
On Sat, Jul 03, 2004 at 06:27:32PM -0700, William Lee Irwin III wrote:
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-04 3:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-04 1:27 x86_64 KBUILD_IMAGE William Lee Irwin III
2004-07-04 3:24 ` Andi Kleen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.