Results 1 to 4 of 4
I am wondering I have the linux source code linux version 3.0
I compiled and installed it on my x86 machine and it works fine but I am wondering if ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-21-2011 #1Just Joined!
- Join Date
- Apr 2011
- Posts
- 96
kernel compiling to different arch?
I am wondering I have the linux source code linux version 3.0
I compiled and installed it on my x86 machine and it works fine but I am wondering if I could compile to a different arch like x64 for my 64 bit machine or for my phone ARM , MIPS...etc
If so does anybody know the steps in doing this
is their some setting for compiling it to a different arch in the make menuconfig
- 10-21-2011 #2Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,746
Look at the ARCH and CROSS_COMPILE flags when running make on the kernel sources.
See here for more info.
- 10-22-2011 #3Just Joined!
- Join Date
- Apr 2011
- Posts
- 96
ok, thats great it works!
Curious though is their away to list all possible strings you can use with the ARCH and CROSS_COMPILE switchs?
I know arm works but their is also different versions and other archs that I am not sure what the string value could be for them.
I.E Is their away to list the choices available for these switches ?
As well as all the possible switches available with make.
- 10-22-2011 #4Just Joined!
- Join Date
- Jul 2011
- Posts
- 16
All possible switches for ARCH are the directory names that are in the <linux/arch/>, like x86, arm, powerpc, mips, alpha, parisc etc.. For CROSS_COMPILER there are no particular switches, You need to build or download a cross compiler tool chain for your target architecture and store them somewhere and give it's path.


Reply With Quote
