FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Embedded

LinkBack Thread Tools
Old 10-05-2010, 05:42 PM
Joakim Tjernlund
Default Creating a binary only package of your cross toolchain

Here is how i did it, maybe it is useful for someone else:
mkdir -p /tmp/${TARGET}

qlist --quiet --all ${TARGET} > /tmp/${TARGET}/cross-tools
ROOT=${MY_ROOT} qlist --quiet --all > /tmp/${TARGET}/pkgs

#prefix all paths with our target root prefix
sed -i s:/:${MY_ROOT}/: /tmp/${TARGET}/pkgs

tar czf /tmp/${TARGET}.tgz -T /tmp/${TARGET}/cross-tools
-T /tmp/${TARGET}/pkgs

This will create a tgz with all the binaries one need to cross compile.
Just whish I could avoid the sed stmt, but qlist can't list the ABS path(hint, hint

here is a crude ebuild, improvements welcome:

DESCRIPTION="PowerPC cross toolchain"

KEYWORDS="x86 amd64"
RESTRICT="nomirror strip"


src_compile() {
einfo "Nothing to compile..."

src_install() {
einfo "Installing..."
cp -a * "${D}" || die "Install failed"

prepall() {
einfo "Prepall..."

pkg_postinst() {
binutils-config powerpc-e300c2-linux-gnu-2.20.1
gcc-config powerpc-e300c2-linux-gnu-4.4.4

Thread Tools

All times are GMT. The time now is 10:58 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org