From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1H5Vbj-0001Yr-Sq for garchives@archives.gentoo.org; Fri, 12 Jan 2007 23:14:48 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id l0CND0JD004461; Fri, 12 Jan 2007 23:13:00 GMT Received: from ebox1b.ebox.com (ebox1.ebox.com [64.7.141.6]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id l0CNCxQr009063 for ; Fri, 12 Jan 2007 23:13:00 GMT Received: from [192.168.1.101] (PC115.max-kade.uni-kiel.de [134.245.201.115]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by ebox1b.ebox.com (Postfix) with ESMTP id DEB2017DEAB for ; Fri, 12 Jan 2007 18:12:57 -0500 (EST) Message-ID: <45A815F8.2030403@visible-assets.com> Date: Sat, 13 Jan 2007 00:12:56 +0100 From: Christopher Friedt User-Agent: Thunderbird 2.0b1 (X11/20061215) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 To: gentoo-embedded@lists.gentoo.org Subject: [gentoo-embedded] overlay-specific keywords / use flags for cross-compiling References: In-Reply-To: Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 34fa044e-83c6-4ead-a860-5b321e65a6ca X-Archives-Hash: 0d6df38ab262b8db71812fbc2fd16c34 Hi everyone, I've set up a 'build root' that I can chroot into for cross development. There is also a directory of targets to compile for, and for each target, a series of different configurations. When I chroot into my buildroot my 'enter_chroot' script will automatically mount -o bind each of the sysroot, binpkgs, and overlay directories for a specified configuration, as well as mount -o bind the portage tree itself. So my directory structure looks something like this: gentoo-crossdev-buildroot/ enter_chroot.sh (mounts proc, mounts -o bind portage/sysroot/binpkg/overlay etc) portage/ ... (the portage tree) buildroot/ ... (all cross compilation tools and a stage1 filesystem) targets/ arm-9tdmi-linux-gnu/ cross-toolchain/ configurations/ reference/ overlay/ binpkgs/ sysroot/ client1/ ... client2/ ... arm-9tdmi-linux-uclibc/ cross-toolchain/ configurations/ reference/ overlay/ binpkgs/ sysroot/ client1/ ... client2/ ... What I'm hoping to do is leverage the power of portage overlays here, and make it possible to have different package customizations for each client and each platform that my company deals with. It doesn't take a lot to see that this is a great way to minimize maintenance. My problem though, is that when doing cross development (I use the xmerge scrypt and set a SYSROOT variable), I have noticed that when I set new flags in $SYSROOT/etc/portage/package.use, it's not noticed properly during emerge. I'm hoping that portage can be flexible enough to acknowlege those use flags. The xmerge script (taken from one of the gentoo cross development guides online) properly sets the PORTAGE_CONFIGROOT variable, ROOT, etc, so I don't understand why it doesn't acknowlege the changes in $SYSROOT/etc/portage/package.use. Any suggestions? Regards, ~/Chris -- gentoo-embedded@gentoo.org mailing list