All of lore.kernel.org
 help / color / mirror / Atom feed
* bbclass providing some level of scratchbox compatibility
@ 2007-11-23 14:15 Robert Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Schuster @ 2007-11-23 14:15 UTC (permalink / raw)
  To: openembedded-devel


[-- Attachment #1.1: Type: text/plain, Size: 1235 bytes --]

Hi,
I am using OE to build binaries that can be run from within Maemo
scratchbox.

The binaries I create are for the native architecture (the one of the
host CPU) not the emulated one. Such binaries need a special rpath. What
the bbclass does is simply putting that special rpath in LD_RUN_PATH
before configuring and compiling. This has the effect that all built
binaries have it in.

Together with a halfway compatible toolchain (CS gcc3.4.4, glibc2.3.x)
that allows me to run those binaries in Maemo's scratchbox.

I am using this for Jalimo[0] and would like to push it upstream. I am
open for suggestions.

File a bug?

Regards
Robert

[0] - http://jalimo.org/wiki/doku.php?id=doc:howto:cacaoandecjinscratchbox
# By adding this class to your build all binaries get the special rpath
# "/scratchbox/host_shared/lib/:/scratchbox/tools/lib/"
# Doing so makes libraries and programs runnable inside the Scratchbox
# environment as native binaries (not for the CPU that Scratchbox is
# emulating).

do_configure_prepend () {
  export LD_RUN_PATH="/scratchbox/host_shared/lib:/scratchbox/tools/lib"
}

do_compile_prepend () {
  export LD_RUN_PATH="/scratchbox/host_shared/lib:/scratchbox/tools/lib"
}

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread
* bbclass providing some level of scratchbox compatibility
@ 2007-11-23 14:14 Robert Schuster
  2007-11-23 15:46 ` Koen Kooi
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Schuster @ 2007-11-23 14:14 UTC (permalink / raw)
  To: openembedded-devel


[-- Attachment #1.1: Type: text/plain, Size: 1235 bytes --]

Hi,
I am using OE to build binaries that can be run from within Maemo
scratchbox.

The binaries I create are for the native architecture (the one of the
host CPU) not the emulated one. Such binaries need a special rpath. What
the bbclass does is simply putting that special rpath in LD_RUN_PATH
before configuring and compiling. This has the effect that all built
binaries have it in.

Together with a halfway compatible toolchain (CS gcc3.4.4, glibc2.3.x)
that allows me to run those binaries in Maemo's scratchbox.

I am using this for Jalimo[0] and would like to push it upstream. I am
open for suggestions.

File a bug?

Regards
Robert

[0] - http://jalimo.org/wiki/doku.php?id=doc:howto:cacaoandecjinscratchbox
# By adding this class to your build all binaries get the special rpath
# "/scratchbox/host_shared/lib/:/scratchbox/tools/lib/"
# Doing so makes libraries and programs runnable inside the Scratchbox
# environment as native binaries (not for the CPU that Scratchbox is
# emulating).

do_configure_prepend () {
  export LD_RUN_PATH="/scratchbox/host_shared/lib:/scratchbox/tools/lib"
}

do_compile_prepend () {
  export LD_RUN_PATH="/scratchbox/host_shared/lib:/scratchbox/tools/lib"
}

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

end of thread, other threads:[~2007-11-23 17:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-23 14:15 bbclass providing some level of scratchbox compatibility Robert Schuster
  -- strict thread matches above, loose matches on Subject: below --
2007-11-23 14:14 Robert Schuster
2007-11-23 15:46 ` Koen Kooi
2007-11-23 17:09   ` Robert Schuster

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.