From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtprelay-b21.telenor.se ([195.54.99.212]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1RG8N5-0001JJ-U9 for openembedded-devel@lists.openembedded.org; Tue, 18 Oct 2011 14:02:15 +0200 Received: from iph4.telenor.se (iph4.telenor.se [195.54.127.135]) by smtprelay-b21.telenor.se (Postfix) with ESMTP id 37FCFE9D5F for ; Tue, 18 Oct 2011 13:56:23 +0200 (CEST) X-SENDER-IP: [83.227.57.13] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AocqALBonU5T4zkNPGdsb2JhbAAMN5oBjnwBAQEBN4IgAQEBAQIBAQEBNTYKBgsLIRYPCQMCAQIBFQEbFBMGAgEBh3wItieIGwSRY4IakVg X-IronPort-AV: E=Sophos;i="4.69,364,1315173600"; d="scan'208";a="1989811758" Received: from c-0d39e353.011-39-73746f12.cust.bredbandsbolaget.se (HELO [10.175.196.249]) ([83.227.57.13]) by iph4.telenor.se with ESMTP; 18 Oct 2011 13:56:22 +0200 Message-ID: <4E9D6966.2040903@telia.com> Date: Tue, 18 Oct 2011 13:56:22 +0200 From: Ulf Samuelsson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: openembedded-devel@lists.openembedded.org References: <4E9C975D.60709@telia.com> <4E9D3547.4050809@telia.com> In-Reply-To: Subject: Re: Building multiple u-boot binaries in oe-core? X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2011 12:02:16 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 2011-10-18 10:25, Koen Kooi skrev: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Op 18-10-11 10:13, Ulf Samuelsson schreef: >> I added the functionality for building multiple u-boot binaries to >> classic openembedded, but this has not been implemented in oe-core. I >> find that rather useful. Anyone disagreeing? >> >> The core of this is: do_compile () { if ! [ "x${UBOOT_MACHINES}" == "x" ] ; then for board in ${UBOOT_MACHINES} ; do if ! [ `grep ${board}_config Makefile | wc -c` == 0 ] ; then mkdir -p binaries/${board} oe_runmake O=binaries/${board} distclean oe_runmake O=binaries/${board} ${board}_config oe_runmake O=binaries/${board} all fi done else oe_runmake ${UBOOT_MACHINE} oe_runmake all fi } | Note that I removed the _config part from UBOOT_MACHINES. | | At the moment, the binary after youv'e done "make beagleboard_config; | make" will be called: u-boot-beagleboard_config-${PV}-${PR}.bin | I think "u-boot-beagleboard-${PV}-${PR}.bin" is nicer. | There aren't that many boards in oe-core at the moment. > 4 qemu machine to be exact > >> Isn't this a good time to get rid of UBOOT_MACHINE altogher and/or >> redefine it without the "_config" > Not sure, there are a *lot* of BSPs out there where _config is expected to > be there. A simple "sed" script would fix most if not all of the machine descriptions. Doing it the way I did it in openembedded classic, will of course remove the need, but leaving the u-boot recipe somewhat unclean. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.5 (Darwin) > Comment: GPGTools - http://gpgtools.org > > iD8DBQFOnTfkMkyGM64RGpERAhgKAJ934JngAAMd33iLVGrYVKYKJ7Am8ACfaxKL > GdSJOI5qgK2eFk7OwHwD3eU= > =62Sb > -----END PGP SIGNATURE----- > > > _______________________________________________ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel -- Best Regards Ulf Samuelsson