From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulf Samuelsson Date: Thu, 25 Jan 2007 13:42:20 +0100 Subject: [Buildroot] Target support for Atmel ARM/AVR32 References: <014901c73faa$8e9c8100$01c4af0a@atmel.com><20070124233707.GG28221@aon.at><02b801c74014$8ceb1a50$01c4af0a@atmel.com> <20070125090434.GB15747@aon.at> Message-ID: <00bd01c7407f$a8c4c300$01c4af0a@atmel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Bernhard Fischer wrote: > On Thu, Jan 25, 2007 at 12:58:57AM +0100, Ulf Samuelsson wrote: >> Bernhard Fischer wrote: >>> 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? > [snip] >> My goal is to have people download the buildroot source, >> then copy a .config file to the topdir and type "make". >> Then everything should work without surprises. >> >> "Grand-Ma" should be able to do it! >> >> Many people that will uses this will be complete new to Linux and >> the thing below looks dangerous if you want to avoid support phone >> calls. >> >> The question is really, will a patch be rejected if it is built up >> as above? > > If the TODO that is mentioned in r17516 would be fixed, would that > help that problem in any way? I, personally, don't use the concept of > a board in the context of buildroot. Put that aside, what about this > layout: > -) toolchain___ > -) same for build_ > -) board_ as default COPY_TO > > where > $device is target/device/* > $arch would be generic arch e.g. i386, arm > $subarch is the real -march= > $cpu is the real -mtune= > > Opinions? That is a different problem. I can either build an ARM based buildroot or an AVR32 based buildroot. They will build in: build_arm and build_avr32, same for toolchain. My problem is that I want to build for AT91RM9200DK -ARM920T AT91RM9200DF -ARM920T AT91RM9200EK -ARM920T AT91SAM9260EK -ARM926EJS AT91SAM9261EK -ARM926EJS AT91SAM9263EK -ARM926EJS AT91SAM9XEEK -ARM926EJS using a common toolchain (The toolchain is generic arm, even though I use different CPU cores) and maybe a common root file system (today it is). This means that * 7 different Linux versions, * 7 different U-boot * 7 different bootstraps. Possibly, the root file system should be populated differently. When I have built a board, I want to have all binaries stored in one place which can be easily compressed into a tarball. Your suggestion is more for building different toolchains for different boards but this is not the case. It is a big bonus, If I do not have to recompile the root file system packages, just because I build support for a new board. > > PS: r17516 was, for your convenience: > http://uclibc.org/cgi-bin/viewcvs.cgi?rev=17516&view=rev > > _______________________________________________ > buildroot mailing list > buildroot at uclibc.org > http://busybox.net/mailman/listinfo/buildroot Best Regards, Ulf Samuelsson ulf at atmel.com GSM: +46 (706) 22 44 57 Tel: +46 (8) 441 54 22 Fax: +46 (8) 441 54 29 Mail: Box 2033 174 02 Sundbyberg Visit: Kavalleriv?gen 24 174 58 Sundbyberg' Sweden