Received: from [124.219.5.209] (helo=aakash.openmoko.org) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1LFNV7-0001je-Rj for openembedded-devel@lists.openembedded.org; Wed, 24 Dec 2008 07:45:50 +0100 Received: from [172.16.23.192] (helo=buddha.tw.openmoko.com ident=Debian-exim) by aakash.openmoko.org with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1LFNQ4-0002W7-MX for openembedded-devel@lists.openembedded.org; Wed, 24 Dec 2008 14:40:47 +0800 Received: from john by buddha.tw.openmoko.com with local (Exim 4.69) (envelope-from ) id 1LFNQh-000820-NN for openembedded-devel@lists.openembedded.org; Wed, 24 Dec 2008 14:41:15 +0800 Date: Wed, 24 Dec 2008 14:41:15 +0800 From: John Lee To: openembedded-devel@lists.openembedded.org Message-ID: <20081224064114.GB29421@buddha.tw.openmoko.com> Mail-Followup-To: openembedded-devel@lists.openembedded.org References: <20081222092936.GY2135@buddha.tw.openmoko.com> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: 172.16.23.192 X-SA-Exim-Mail-From: john_lee@openmoko.org X-Spam-Checker-Version: SpamAssassin 3.1.7-deb (2006-10-05) on aakash.openmoko.org X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.7-deb X-SA-Exim-Version: 4.2.1 (built Tue, 09 Jan 2007 17:23:22 +0000) X-SA-Exim-Scanned: Yes (on aakash.openmoko.org) Subject: Re: Please review john_lee/openmoko-toolchain 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: Wed, 24 Dec 2008 06:45:50 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Dec 22, 2008 at 01:07:28PM +0100, Koen Kooi wrote: > On 22-12-08 10:29, John Lee wrote: >> Hi, >> > >> meta-toolchain-openmoko.bb: add feed to toolchain >> >> By modifying the opkg config files in the toolchain, the toolchain can >> expend itself by installing packages from the repository. >> >> >> We need to do some modifications to the contents of toolchain before >> the packaging complete, so we use this variable as a hook. The >> modification is to create an opkg config file so the toolchain knows >> where to get new packages. A better way might be to install >> distro-feed-configs, but that includes several opkg config files while >> alias 'opkg-target' uses just one: opkg.conf. > > Suggestions for the existing patch: > > * rename OPENMOKO_URI to TOOLCHAIN_FEED_URI > * move the modify_opkg_conf () to meta-toolchain.bb > * TOOLCHAIN_FEED_URI ? = "" in meta-toolchain.bb > * TOOLCHAIN_FEED_URI = > "http://downloads.openmoko.org/repository/testing" in > meta-toolchain-openmoko.bb or better, conf/distro/openmoko.conf > > That way more distributions can use it and each distro version can have > it's own SDK by setting TOOLCHAIN_FEED_URI in its distro file. I renamed and moved TOOLCHAIN_FEED_URI into meta-toolchain.bb and make it default to DISTRO_FEED_URI instead of empty string, so each distro can use its own feed setting. > As you might have noticed /etc/opkg/arch.conf isn't in any packages (not > unlike the initial devnodes), so you have to generate it for the SDK. I > ran in to the same problem with the online image creator[1] and resorted > to manually installing the conf files: [2] modify_opkg_conf will add arch into the opkg conf file as well, so I think this is not necessary. IMHO meta-toolchain.bb looks fine now. I'm now more concerned about autotools.bbclass since it's global change. - John