Crosscomliling world

Rafal Jaworowski raj at semihalf.com
Mon Feb 23 01:32:06 PST 2009


Aleksey V Fedorov wrote:
>>> How to crosscomlile world for MPC8548 target on amd64 host?
>>> I have powerpc-binutils and powerpc-gcc installed in
>>> /usr/local/bin/powerpc-elf-eabi
>>> Is there standard method to make crossbuild?
>>
>> Hi Aleksey,
>> The regular way is the following:
>>
>> make buildworld TARGET_ARCH=powerpc TARGET_CPUTYPE=e500
>>
>> (This creates cross toolchain at the beginning of the build process)
>>
>> If you'd like to use cross toolchain other than the in-tree one, you
>> need to
>> tweak makefiles to point to your tools.
> 
> buildworld compliled ok.
> But how to build kernel only? For example:
> 
> # cd /usr/current/src/sys/powerpc/conf
> # config MPC85XX
> Kernel build directory is ../compile/MPC85XX
> Don't forget to do ``make cleandepend && make depend''
> # cd ../compile/MPC85XX
> # make depend TARGET_ARCH=powerpc TARGET_CPUTYPE=e500

Hm, the old method of building kernel aparently does not work, please try:

make buildkernel TARGET_ARCH=powerpc TARGET_CPUTYPE=e500 KERNCONF=MPC85XX


Rafal


More information about the freebsd-ppc mailing list