Date: Mon, 23 Feb 2009 10:32:01 +0100 From: Rafal Jaworowski <raj@semihalf.com> To: Aleksey V Fedorov <alexf@vsi.ru> Cc: freebsd-ppc@freebsd.org Subject: Re: Crosscomliling world Message-ID: <49A26D11.5070007@semihalf.com> In-Reply-To: <Pine.GSO.4.62.0902212108130.25932@serv1> References: <Pine.GSO.4.62.0902211912030.19887@serv1> <49A02FBA.2010103@semihalf.com> <Pine.GSO.4.62.0902212108130.25932@serv1>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49A26D11.5070007>