Re: Is there a tool which can generate a small and simple source tree after config?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi :)

On Sun, Oct 23, 2011 at 23:29, jiangtao.jit <jiangtao.jit@xxxxxxxxx> wrote:
> Is there a tool which can generate a small and simple source tree after config?
> not pre-processor
> just generate a small source tree contains the files and dirs which really will be compiled
> and no macros like CONFIG_SMP etc.
> according to the configuration
>
> or some other way to understand the architecture of the final working source tree?

I feel the same way too, even 'til now :)

The way I do it is maybe counter intuitive for you. I compile the
kernel image with frame pointer enabled and debug info (check kernel
hacking section in "make config" during kernel compilation).

Then, together with a disk image, I run this kernel in Qemu virtual
machine. While running, I hook gdb to this Qemu instance. Finally, I
put breakpoints, watchpoints, check backtraces etc I needed to
understand the flow.

Maybe that'll work for you too.

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux