Re: [PATCH] Fix 32bit build for git-x86

From: Sam Ravnborg
Date: Tue Jan 15 2008 - 02:45:36 EST


On Tue, Jan 15, 2008 at 02:04:49AM +0100, Andi Kleen wrote:
>
> Fixes the 32build here with git-x86 (tip 2f42671697ea9abc7d10ea7f663d6ef6e8ec6358)
>
> Fix git-x86 build
>
> Otherwise
>
> make[3]: Nothing to be done for `vmlinux'.
> KBUILD_IMAGE := arch/x86/boot/bzImage
> make[2]: KBUILD_IMAGE: Command not found
> make[2]: *** [all] Error 127

Thanks Andi.

I wonder how these tabs came in.
I am almost sure they were not in my original patch. But as git-send-email
do not save copies of my sent mails I cannot be sure.

Ingo - do you have a script on your side that could have converted
the spaces to tabs?
It could be a simple "make checkpatch happy" change too - but in this case
it was wrong.

Leading tabs in Makefiles that are not in front of commands are a typical
source of non-so-easy-to-debug problems.
Been there before....

Sam


>
> Signed-off-by: Andi Kleen <ak@xxxxxxx>
>
> Index: linux/arch/x86/Makefile
> ===================================================================
> --- linux.orig/arch/x86/Makefile
> +++ linux/arch/x86/Makefile
> @@ -211,7 +211,8 @@ PHONY += zImage bzImage compressed zlilo
> all: bzImage
>
> # KBUILD_IMAGE specify target image being built
> - KBUILD_IMAGE := $(boot)/bzImage
> +KBUILD_IMAGE := $(boot)/bzImage
> +
> zImage zlilo zdisk: KBUILD_IMAGE := arch/x86/boot/zImage
>
> zImage bzImage: vmlinux
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/