* Can I just remove code of other architectures and get a clean X86 source
@ 2016-05-12 12:50 walkerlala
2016-05-12 13:17 ` Carlo Caione
0 siblings, 1 reply; 2+ messages in thread
From: walkerlala @ 2016-05-12 12:50 UTC (permalink / raw)
To: kernelnewbies
Hi everyone.
I am just reading the kernel code, adding some code to make it
pause and print some text and then interact with it a little bit. I have
compile the kernel successfully and run the kernel in QEMU. It did
work.Nice.
But, when I reading the source, I found that there are just too
many files there, which make it hard for me to manage. With so many
files, It's hard to change directories, read and modified and still
remember what you are doing (so many files with the same/similar name).
I know that's because Linux support many architectures, and that 's
the reason why there are so many folders under the 'arch' directory of
the source code.
So, I wonder, as I only want the source for x86 device, can I
simply remove that source files which are unrelated to x86 and still
make the kernel work as normal? I mean, can I just remove all the
directory under 'arch' except 'x86-64' ? Also, are there any other files
that I can safely removed and won't hurt the kernel ?
Thanks in advance.
(btw, I don't know whether this question is asked before. I google
it but find nothing related. If it's duplicated, please give me some
pointer to the mailing list where this topic located )
^ permalink raw reply [flat|nested] 2+ messages in thread* Can I just remove code of other architectures and get a clean X86 source
2016-05-12 12:50 Can I just remove code of other architectures and get a clean X86 source walkerlala
@ 2016-05-12 13:17 ` Carlo Caione
0 siblings, 0 replies; 2+ messages in thread
From: Carlo Caione @ 2016-05-12 13:17 UTC (permalink / raw)
To: kernelnewbies
On Thu, May 12, 2016 at 2:50 PM, walkerlala <ablacktshirt@gmail.com> wrote:
> Hi everyone.
> I am just reading the kernel code, adding some code to make it
> pause and print some text and then interact with it a little bit. I have
> compile the kernel successfully and run the kernel in QEMU. It did
> work.Nice.
> But, when I reading the source, I found that there are just too
> many files there, which make it hard for me to manage. With so many
> files, It's hard to change directories, read and modified and still
> remember what you are doing (so many files with the same/similar name).
> I know that's because Linux support many architectures, and that 's
> the reason why there are so many folders under the 'arch' directory of
> the source code.
> So, I wonder, as I only want the source for x86 device, can I
> simply remove that source files which are unrelated to x86 and still
> make the kernel work as normal? I mean, can I just remove all the
> directory under 'arch' except 'x86-64' ? Also, are there any other files
> that I can safely removed and won't hurt the kernel ?
> Thanks in advance.
> (btw, I don't know whether this question is asked before. I google
> it but find nothing related. If it's duplicated, please give me some
> pointer to the mailing list where this topic located )
Navigate with cscope only on one architecture:
make ARCH=arm cscope
--
Carlo Caione
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-05-12 13:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-12 12:50 Can I just remove code of other architectures and get a clean X86 source walkerlala
2016-05-12 13:17 ` Carlo Caione
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.