|
发表于 2003-6-15 23:31:03
|
显示全部楼层
there are two types of compilation.
1) native compile.we do it all the time. install a linux on x86 pc and compile kernel for x86 pc. install on sparc sun ultra 80 and recompile kernel for ultra sparc
2) cross-compile. u do compile on x86, but use "toolchain" to generate binary code exectuable on other cpu. for example, u can download a m68k-linux-gcc tool chain to compile a kernel for m68k. this is because m68k is so weak that compile a kernel on m68k cpu directly will take u long long time. and even impossible. because some m68k cpu do not have mmu and only 4-8m cpu.
so if u want to have a m68k kernel image,
1) download a good toolchain
2) downlaod linux kernel, and some patches.(linxu kernel do not support all existed cpus because new cpu come so fast, and soem patch code are not stable enough to be included into linux kernel)
3) make menuconfig....
for m68k, u can check uclinux to see if that include u cpu support. |
|