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 |