[PATCH]: powerpc: Fix build breakage due to incorrect location of autoconf.h
Kumar Gala
galak at kernel.crashing.org
Thu Jan 14 05:54:51 EST 2010
On Jan 12, 2010, at 5:59 AM, Joakim Tjernlund wrote:
>>
>> Hi Anton,
>>
>> On Tue, 12 Jan 2010 13:21:51 +1100 Anton Blanchard <anton at samba.org> wrote:
>>>
>>> commit ac4c2a3bbe5db5fc570b1d0ee1e474db7cb22585 (zlib: optimize inffast when
>>> copying direct from output) referenced include/linux/autoconf.h which
>>> is now called include/generated/autoconf.h.
>>
>> Even with this fix, you cannot build with a separate object directory.
>> See my other posting "linux-next: origin tree build failure" ...
>> --
>
> How does this work for you?
>
>> From 044f40d169bf5fe189d5cb058f56b7cd72675ca4 Mon Sep 17 00:00:00 2001
> From: Joakim Tjernlund <Joakim.Tjernlund at transmode.se>
> Date: Tue, 12 Jan 2010 11:20:36 +0100
> Subject: [PATCH] powerpc: Fix build breakage due to incorrect location of autoconf.h
>
> commit ac4c2a3bbe5db5fc570b1d0ee1e474db7cb22585 (zlib: optimize inffast when
> copying direct from output) referenced include/linux/autoconf.h which
> is now called include/generated/autoconf.h.
> Also, -I include paths needs to be prefixed with $(srctree)
>
> Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund at transmode.se>
> ---
> arch/powerpc/boot/Makefile | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
> index 826a30a..79ebd6f 100644
> --- a/arch/powerpc/boot/Makefile
> +++ b/arch/powerpc/boot/Makefile
> @@ -34,8 +34,8 @@ BOOTCFLAGS += -fno-stack-protector
> endif
>
> BOOTCFLAGS += -I$(obj) -I$(srctree)/$(obj)
> -BOOTCFLAGS += -include include/linux/autoconf.h -Iarch/powerpc/include
> -BOOTCFLAGS += -Iinclude
> +BOOTCFLAGS += -include include/generated/autoconf.h
> +BOOTCFLAGS += -I$(srctree)/arch/powerpc/include -I$(srctree)/include
>
> DTS_FLAGS ?= -p 1024
>
Ack, this works for me (seeing as -rc4 doesn't generate uImages w/o it :)
- k
More information about the Linuxppc-dev
mailing list