Skip to contentSkip to conversation

bbclass providing some level of scratchbox compatibility

DISCUSSION Robert Schuster 2 participants 3 messages Nov 23, 2007

lore
Share & tools
lore
#0 lore raw

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"
}

#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert Schuster schreef:

Quoted 9 lines

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.

Looks nice, but shouldn't we put the generated binaries (e.g. packages, tarballs) in a special dir in deploy so there's no risk of confusing the m with non-rpathed ones?

Quoted 7 lines

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?

Always :)

regards,

Koen

Quoted 6 lines

Regards
Robert

[0] - http://jalimo.org/wiki/doku.php?id=doc:howto:cacaoandecjinscratchbox

Quoted 6 lines

------------------------------------------------------------------------

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

- --
[email protected] will go go away in december 2007, please use [email protected] instead.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFHRvXOMkyGM64RGpERArK+AJ4vMC4CiawyuEUvl4B4nS8JZ3vPIgCdFNYv dfREBlDgZTf/iek33/8MiOA=
=XxR9
-----END PGP SIGNATURE-----

#2 lore raw

Hi Koen.

Quoted 9 lines · Koen Kooi
Quoted 7 lines

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?

Always :)

... and so did I:

http://bugs.openembedded.org/show_bug.cgi?id=3360

Regards
Robert