Re: Prob to compile Kernel on mpc860.

2 messages, 2 authors, 2003-11-10 · open the first message on its own page

Re: Prob to compile Kernel on mpc860.

From: Wolfgang Denk <hidden>
Date: 2003-10-30 16:16:29

Dear Christophe,

in message [off-list ref] you wrote:
prob 1 :
I am trying to compile the linuxppc_2_4_devel_2.4_20-2002_12_04 from Denx.
As I need debug, I replace -O2 by -g in the Makefile.
The kernel doesn't link anymore :[
You cannot compile the Linux kernel without optimization, as then  no
inlining of functions will be done. Use "-Os -g".
prob 2 :
Using linux2.4.22 from kernel.org.
I apply the patch for powerpc
the kernel doesn't compile.
Prob with stdarg.h that doesn't exist ( in sched.c )
Try this patch:

===================================================================
RCS file: /cvsroot/linuxppc_2_4_devel/Makefile,v
retrieving revision 1.7
retrieving revision 1.6
diff -u -r1.7 -r1.6
--- Makefile	1 Dec 2002 23:36:15 -0000	1.7
+++ Makefile	1 Dec 2002 22:42:52 -0000	1.6
@@ -263,8 +261,7 @@
 # 'kbuild_2_4_nostdinc :=' or -I/usr/include for kernel code and you are not UML
 # then your code is broken!  KAO.

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

 export	CPPFLAGS CFLAGS CFLAGS_KERNEL AFLAGS AFLAGS_KERNEL

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Documentation is the castor oil of programming.
Managers know it must be good because the programmers hate it so much.

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

Re: Prob to compile Kernel on mpc860.

From: Tom Rini <hidden>
Date: 2003-11-10 20:45:27

On Thu, Oct 30, 2003 at 05:16:29PM +0100, Wolfgang Denk wrote:
Dear Christophe,

in message [off-list ref] you wrote:
quoted
prob 1 :
I am trying to compile the linuxppc_2_4_devel_2.4_20-2002_12_04 from Denx.
As I need debug, I replace -O2 by -g in the Makefile.
The kernel doesn't link anymore :[
You cannot compile the Linux kernel without optimization, as then  no
inlining of functions will be done. Use "-Os -g".
quoted
prob 2 :
Using linux2.4.22 from kernel.org.
I apply the patch for powerpc
the kernel doesn't compile.
Prob with stdarg.h that doesn't exist ( in sched.c )
Try this patch:
[snip]

Or if you select BDI/KGDB/XMON, you can also pick
CONFIG_MORE_COMPILE_OPTIONS and add in -g (or put -Os -g and that will
override the -O2 that preceeds it).

--
Tom Rini
http://gate.crashing.org/~trini/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help