public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] crossdev and qlist/qfile
@ 2011-12-19 17:09 Joakim Tjernlund
  2011-12-20  2:08 ` Mike Frysinger
  0 siblings, 1 reply; 4+ messages in thread
From: Joakim Tjernlund @ 2011-12-19 17:09 UTC (permalink / raw
  To: gentoo-embedded


I seem to recall that qlist and qfile worked on crossdev installed
x-gcc's but now I cannot make it work.
# > qfile /usr/powerpc-tmp_softfloat-linux-gnu/
cross-powerpc-tmp_softfloat-linux-gnu/glibc (/usr/powerpc-tmp_softfloat-linux-gnu)
cross-powerpc-tmp_softfloat-linux-gnu/linux-headers (/usr/powerpc-tmp_softfloat-linux-gnu)

This is not complete, both binutils and gcc is missing

# > qlist --all /usr/powerpc-tmp_softfloat-linux-gnu/
is empty

So I guess I am missing something here?

 Jocke




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-embedded] crossdev and qlist/qfile
  2011-12-19 17:09 [gentoo-embedded] crossdev and qlist/qfile Joakim Tjernlund
@ 2011-12-20  2:08 ` Mike Frysinger
  2011-12-20  8:31   ` Joakim Tjernlund
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Frysinger @ 2011-12-20  2:08 UTC (permalink / raw
  To: gentoo-embedded; +Cc: Joakim Tjernlund

[-- Attachment #1: Type: Text/Plain, Size: 673 bytes --]

On Monday 19 December 2011 12:09:34 Joakim Tjernlund wrote:
> I seem to recall that qlist and qfile worked on crossdev installed
> x-gcc's but now I cannot make it work.
> # > qfile /usr/powerpc-tmp_softfloat-linux-gnu/
> cross-powerpc-tmp_softfloat-linux-gnu/glibc
> (/usr/powerpc-tmp_softfloat-linux-gnu)
> cross-powerpc-tmp_softfloat-linux-gnu/linux-headers
> (/usr/powerpc-tmp_softfloat-linux-gnu)
> 
> This is not complete, both binutils and gcc is missing

no it's not ... neither the cross-compiler binutils nor gcc installs into 
/usr/$CTARGET

run `qlist -e cross-powerpc-tmp_softfloat-linux-gnu/{binutils,gcc}` to see what 
they do install
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-embedded] crossdev and qlist/qfile
  2011-12-20  2:08 ` Mike Frysinger
@ 2011-12-20  8:31   ` Joakim Tjernlund
  2011-12-20 15:41     ` Mike Frysinger
  0 siblings, 1 reply; 4+ messages in thread
From: Joakim Tjernlund @ 2011-12-20  8:31 UTC (permalink / raw
  To: Mike Frysinger; +Cc: gentoo-embedded

Mike Frysinger <vapier@gentoo.org> wrote on 2011/12/20 03:08:02:
>
> On Monday 19 December 2011 12:09:34 Joakim Tjernlund wrote:
> > I seem to recall that qlist and qfile worked on crossdev installed
> > x-gcc's but now I cannot make it work.
> > # > qfile /usr/powerpc-tmp_softfloat-linux-gnu/
> > cross-powerpc-tmp_softfloat-linux-gnu/glibc
> > (/usr/powerpc-tmp_softfloat-linux-gnu)
> > cross-powerpc-tmp_softfloat-linux-gnu/linux-headers
> > (/usr/powerpc-tmp_softfloat-linux-gnu)
> >
> > This is not complete, both binutils and gcc is missing
>
> no it's not ... neither the cross-compiler binutils nor gcc installs into
> /usr/$CTARGET
>
> run `qlist -e cross-powerpc-tmp_softfloat-linux-gnu/{binutils,gcc}` to see what
> they do install
> -mike

Right, I managed to confuse myself thoroughly :)

I am trying to create a binary package of my cross env, inkluding the sysroot so I
can install it on all dev. machines without needing to rebuild everything.
This is what I got so far:
   TARGET="powerpc-tmp_softfloat-linux-gnu"
   MY_ROOT="/usr/${TARGET}"
   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 ${TARGET}.tgz -T /tmp/${TARGET}/cross-tools \
       -T /tmp/${TARGET}/pkgs

This will create a .tgz with the whole cross env. which can be installed
on all our dev. machines.

If you konw a better way, please let me know.

 Jocke




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-embedded] crossdev and qlist/qfile
  2011-12-20  8:31   ` Joakim Tjernlund
@ 2011-12-20 15:41     ` Mike Frysinger
  0 siblings, 0 replies; 4+ messages in thread
From: Mike Frysinger @ 2011-12-20 15:41 UTC (permalink / raw
  To: Joakim Tjernlund; +Cc: gentoo-embedded

[-- Attachment #1: Type: Text/Plain, Size: 1029 bytes --]

On Tuesday 20 December 2011 03:31:37 Joakim Tjernlund wrote:
> I am trying to create a binary package of my cross env, inkluding the
> sysroot so I can install it on all dev. machines without needing to
> rebuild everything. This is what I got so far:
>    TARGET="powerpc-tmp_softfloat-linux-gnu"
>    MY_ROOT="/usr/${TARGET}"
>    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 ${TARGET}.tgz -T /tmp/${TARGET}/cross-tools \
>        -T /tmp/${TARGET}/pkgs
> 
> This will create a .tgz with the whole cross env. which can be installed
> on all our dev. machines.
> 
> If you konw a better way, please let me know.

export ROOT=/ PKGDIR=/pkgs/${CTARGET}/cross-tools
quickpkg `qlist -IC cross-${CTARGET}`
export ROOT=/usr/${CTARGET} PKGDIR=/pkgs/${CTARGET}/pkgs
quickpkg `qlist -IC`
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-12-20 15:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-19 17:09 [gentoo-embedded] crossdev and qlist/qfile Joakim Tjernlund
2011-12-20  2:08 ` Mike Frysinger
2011-12-20  8:31   ` Joakim Tjernlund
2011-12-20 15:41     ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox