Compiling Kernel 2.6 for ppc32

Wolfgang Denk wd at denx.de
Wed Sep 10 03:30:49 EST 2003


In message <000001c376ed$eef95430$0f21258d at fhkonstanz.de> you wrote:
>
> I tried to compile the kernel 2.6. test 4 for PowerPC. I used the cross
> compile tool chain ELDK V2.1 from Denx http://www.denx.de/. I am not
> able to make the kernel, because I get the following error.
>
> In file included from include/asm/system.h:8,
>                  from include/linux/list.h:8,
>                  from include/linux/signal.h:4,
>                  from arch/ppc/kernel/asm-offsets.c:12:
> include/linux/kernel.h:10: stdarg.h: Datei oder Verzeichnis nicht
> gefunden In file included from include/asm/system.h:8,
...


In the top level Makefile, change the line

kbuild_2_4_nostdinc     := -nostdinc -iwithprefix include

into:

kbuild_2_4_nostdinc     := -nostdinc $(shell $(CC) -print-search-dirs | \
				sed -ne 's/install: \(.*\)/-I \1include/gp')


Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Good manners are the settled  medium  of  social,  as  specie  is  of
commercial, life; returns are equally expected for both.
           - Lord Chesterfield _Letters to his Son_, 25 December 1753

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list