From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernhard Fischer Date: Thu, 25 Jan 2007 00:37:07 +0100 Subject: [Buildroot] Target support for Atmel ARM/AVR32 In-Reply-To: <014901c73faa$8e9c8100$01c4af0a@atmel.com> References: <014901c73faa$8e9c8100$01c4af0a@atmel.com> Message-ID: <20070124233707.GG28221@aon.at> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On Wed, Jan 24, 2007 at 12:06:31PM +0100, Ulf Samuelsson wrote: >I am hoping to add Target support for a number of Atmel Development board, >but before I do that, I would like to discuss how this is done. > >Would like to separate building the root file system from other utilities, >since the "build_" directory is overcrowded. > >Currently I am using a "target_build_" directory. >In this directory, I create a subdirectory for each target_board. > >I.E: >buildroot/target_build_arm > at91rm9200dk > at91rm9200df > at91rm9200ek > at91sam9260ek > at91sam9261ek > at91sam9262ek >or >buildroot/target_build_avr32 > atstk1002 > >In the target_build_/ directory >I download patches for Linux/U-Boot before I apply them >and then build >* Bootstrap >* U-Boot >* Linux >* Other Utitlties >in that directory. > >The results are renamed to show and date. > >Would like to move "buildroot/build_/root" to >"buildroot/target_build_//root" as well, >but have not yet gotten this to work. >(This will allow me to have different contents for different boards) > >At the end, the result is moved to "buildroot/binaries/" >so that I have easy way to create a delivery by just compressing >that directory into a tarball. > >Does this seem to be a reasonable approach? Building out of tree would make this alot easier and less complicated, IMO. $ svn co proto://buildroot /space/src/buildroot $ mkdir -p /space/obj/board{1,2,3} $ cd /space/obj/board1 $ make -f ../../src/buildroot HOSTCC="my-gcc" DL_DIR=/space/down where picking up the DL_DIR from the user is not currently supported. Not sure if we want that. Index: package/Makefile.in =================================================================== --- package/Makefile.in (revision 17510) +++ package/Makefile.in (working copy) @@ -33,8 +33,12 @@ TOPDIR_SUFFIX:= endif +ifndef DL_DIR DL_DIR=$(strip $(subst ",, $(BR2_DL_DIR))) #")) +else +$(warning "Using DL_DIR from environment and not from .config") +endif ifeq ($(DL_DIR),) DL_DIR:=$(BASE_DIR)/dl endif