Link to home
Start Free TrialLog in
Avatar of sanjay_thakur
sanjay_thakur

asked on

How to add a debug flag while compiling the kernel

Hi all,

I tried adding the -DDEBUG flag in the top level make file
but I get this error when I do "make bzImage"

In file included from init/do_mounts.c:913:
init/../lib/inflate.c: In function `inflate':
init/../lib/inflate.c:999: warning: implicit declaration of function `fprintf'
init/../lib/inflate.c:999: `stderr' undeclared (first use in this function)
init/../lib/inflate.c:999: (Each undeclared identifier is reported only once
init/../lib/inflate.c:999: for each function it appears in.)
make: *** [init/do_mounts.o] Error 1                          


How do I set the Debug flag while compiling the linux kernel.

Also I wonder if I have to edit the toplevel Makefile
can I do it using "make menuconfig" .Please let me know


Thanks
ASKER CERTIFIED SOLUTION
Avatar of bryanh
bryanh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of garboua
garboua

ps what kernel are you trying to build?
Avatar of sanjay_thakur

ASKER

I am trying to build linux kernel version 2.4 for Power PC
440.
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Split: bryanh {http:#8030982} & garboua {http:#8061817}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jmcg
EE Cleanup Volunteer