[Buildroot] ARCH=ppc vs powerpc

Peter Korsgaard jacmet at uclibc.org
Thu Apr 3 15:09:38 UTC 2008


>>>>> "Guillaume" == Guillaume Dargaud <dargaud at lpsc.in2p3.fr> writes:

Hi,

 Guillaume> Deprecated or not, various info I have insist that I
 Guillaume> should use ARCH=ppc If I try:
 >> 
 Guillaume> $ make ARCH=ppc KERNEL_ARCH=ppc
 >> 
 >> That won't work as various other parts (E.G. kernel headers depends on
 >> KERNEL_ARCH=powerpc

 Guillaume> So how is one supposed to understand the 'use the
 Guillaume> ARCH=ppc' branch for Xilinx compilation ?!?

I'm not following you - ARCH=ppc is a kernel thing, it doesn't have
anything to do with buildroot.

 Guillaume> This morning I restarted from stratch to try to solve
 Guillaume> those ARCH vs KERNEL_ARCH issues, and now I've figured out
 Guillaume> that I can't even compile anything anymore (with the same
 Guillaume> .config files as before):

 Guillaume> $ make ARCH=ppc
 Guillaume> [...]
 Guillaume> checking whether we are cross compiling... no
 Guillaume> [...]

 Guillaume> I'm...lost and confused.

Don't set ARCH or KERNEL_ARCH on the buildroot command line, only use
it when you are compiling a kernel (outside buildroot).

 >> I normally don't compile my (ppc) kernels within buildroot. First
 >> create your rootfs and cross compiler with buildroot and then use it
 >> to compile the kernel manually (E.G. add
 >> build_powerpc/staging_dir/usr/bin to your path).

 Guillaume> OK, I think that's the straw that broke the camel's
 Guillaume> back. After a totally wasted month I'm gonna go do
 Guillaume> something else, like try OpenEmbedded or ELDK.

Suit yourself, but buildroot with Xilinx/ARCH=ppc kernels works (I use
it myself).

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list