Gentoo Archives: gentoo-embedded

From: Joakim Tjernlund <joakim.tjernlund@×××××××××.se>
To: Mike Frysinger <vapier@g.o>
Cc: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] crossdev and qlist/qfile
Date: Tue, 20 Dec 2011 08:32:01
Message-Id: OFCEB4F0B2.61335667-ONC125796C.002DCF99-C125796C.002ED715@transmode.se
In Reply to: Re: [gentoo-embedded] crossdev and qlist/qfile by Mike Frysinger
1 Mike Frysinger <vapier@g.o> wrote on 2011/12/20 03:08:02:
2 >
3 > On Monday 19 December 2011 12:09:34 Joakim Tjernlund wrote:
4 > > I seem to recall that qlist and qfile worked on crossdev installed
5 > > x-gcc's but now I cannot make it work.
6 > > # > qfile /usr/powerpc-tmp_softfloat-linux-gnu/
7 > > cross-powerpc-tmp_softfloat-linux-gnu/glibc
8 > > (/usr/powerpc-tmp_softfloat-linux-gnu)
9 > > cross-powerpc-tmp_softfloat-linux-gnu/linux-headers
10 > > (/usr/powerpc-tmp_softfloat-linux-gnu)
11 > >
12 > > This is not complete, both binutils and gcc is missing
13 >
14 > no it's not ... neither the cross-compiler binutils nor gcc installs into
15 > /usr/$CTARGET
16 >
17 > run `qlist -e cross-powerpc-tmp_softfloat-linux-gnu/{binutils,gcc}` to see what
18 > they do install
19 > -mike
20
21 Right, I managed to confuse myself thoroughly :)
22
23 I am trying to create a binary package of my cross env, inkluding the sysroot so I
24 can install it on all dev. machines without needing to rebuild everything.
25 This is what I got so far:
26 TARGET="powerpc-tmp_softfloat-linux-gnu"
27 MY_ROOT="/usr/${TARGET}"
28 mkdir -p /tmp/${TARGET}
29 qlist --quiet --all ${TARGET} > /tmp/${TARGET}/cross-tools
30 ROOT=${MY_ROOT} qlist --quiet --all > /tmp/${TARGET}/pkgs
31 #prefix all paths with our target root prefix
32 sed -i s:/:${MY_ROOT}/: /tmp/${TARGET}/pkgs
33 tar czf ${TARGET}.tgz -T /tmp/${TARGET}/cross-tools \
34 -T /tmp/${TARGET}/pkgs
35
36 This will create a .tgz with the whole cross env. which can be installed
37 on all our dev. machines.
38
39 If you konw a better way, please let me know.
40
41 Jocke

Replies

Subject Author
Re: [gentoo-embedded] crossdev and qlist/qfile Mike Frysinger <vapier@g.o>