Date: Sat, 21 Feb 2009 21:13:11 +0300 (MSK) From: Aleksey V Fedorov <alexf@vsi.ru> To: Rafal Jaworowski <raj@semihalf.com> Cc: freebsd-ppc@freebsd.org Subject: Re: Crosscomliling world Message-ID: <Pine.GSO.4.62.0902212108130.25932@serv1> In-Reply-To: <49A02FBA.2010103@semihalf.com> References: <Pine.GSO.4.62.0902211912030.19887@serv1> <49A02FBA.2010103@semihalf.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 21 Feb 2009, Rafal Jaworowski wrote: > Aleksey V Fedorov wrote: >> Hi! >> >> 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 cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -Wa,-me500 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../dev/ath -I../../../dev/ath/ath_hal -I../../../contrib/ngatm -I../../../dev/twa -I../../../gnu/fs/xfs/FreeBSD -I../../../gnu/fs/xfs/FreeBSD/support -I../../../gnu/fs/xfs -I../../../contrib/opensolaris/compat -I../../../dev/cxgb -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -msoft-float -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector ../../../amd64/amd64/genassym.c as: unrecognized option `-me500' ../../../amd64/amd64/genassym.c:57:25: error: machine/tss.h: No such file or directory In file included from ../../../vm/vm_map.h:70, from ../../../amd64/amd64/genassym.c:62: ../../../sys/sx.h: In function '__sx_xlock': ../../../sys/sx.h:150: warning: cast from pointer to integer of different size ../../../sys/sx.h: In function '__sx_xunlock': ../../../sys/sx.h:166: warning: cast from pointer to integer of different size In file included from ../../../net/if_var.h:80, from ../../../net/if.h:458, from ../../../amd64/amd64/genassym.c:64: ../../../sys/buf_ring.h: In function 'buf_ring_dequeue_sc': ../../../sys/buf_ring.h:199: warning: cast from pointer to integer of different size ../../../sys/buf_ring.h: In function 'buf_ring_peek': [skip] --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.62.0902212108130.25932>