Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Multiple architectures best practices?
@ 2009-12-29 19:44 Terry Forrest
  2010-02-20 19:07 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Terry Forrest @ 2009-12-29 19:44 UTC (permalink / raw)
  To: buildroot



[apologies for the duplicate - previous note lacked a subject ] 

Hi All - new to buildroot and am impressed!  Nice design
and implementation.

We would like to use BR to build for two architectures from
the same tree.  We can use a local x86 for a "simulation" mode,
and the target is arm.  I see that this is cleanly supported in the
2009.11 release.

My question is on a "best practice" for this.  I've set up 
a top-level Makefile that goes something like this:


TOPDIR    = path_to_my_top
BUILD   = ${TOPDIR}/build
BUILDROOT = buildroot-2009.11
BROOT    = ${BUILD}/${BUILDROOT}

setup-x86:
    cp configs/buildroot-config-x86 ${BROOT}/.config
    ${MAKE} -C ${BROOT} oldconfig

setup-arm:
    cp configs/buildroot-config-arm ${BROOT}/.config
    ${MAKE} -C ${BROOT} oldconfig

build-x86: setup-x86
    make -C ${BROOT} O=${BUILD}/output_x86 

build-arm: setup-arm
    make -C ${BROOT} O=${BUILD}/output_arm

This seems to work okay - any comments or warnings?
Again, I'm new to BR and want to make sure I'm not 
gonna step in anything.

Thanks!
Terry 		 	   		  
_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.
http://clk.atdmt.com/GBL/go/171222986/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091229/c036d76f/attachment.htm>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-20 19:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-29 19:44 [Buildroot] Multiple architectures best practices? Terry Forrest
2010-02-20 19:07 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox