Skip to content

relocatable SDK

Laurentiu Palcu openembedded-core 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 2 repliesIn review
  2. v16 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- addressed Saul's comments: added Upstream-Status for patches, signed-off-by and patches description;
- addressed Philip's comment about default installation directory: now the default installation directory is the same as SDKPATH variable;
- added patch for eglibc-2.16;

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6eglibc: relocatable SDK changesmeta/recipes-core/eglibc/eglibc-2.15/relocatable_sdk.patch meta/recipes-core/eglibc/eglibc-2.16/relocatable_sdk.patch meta/recipes-core/eglibc/eglibc_2.15.bb +1 more+197 -40 replies
2/6binutils: relocatable SDK: change PT_INTERP section sizemeta/recipes-devtools/binutils/binutils-crosssdk_2.22.bb meta/recipes-devtools/binutils/binutils/relocatable_sdk.patch+27 -00 replies
3/6scripts: add script for relocating the SDKscripts/relocate_sdk.py+200 -00 replies
4/6populate_sdk_base.bbclass: create self-extracting archivemeta/classes/populate_sdk_base.bbclass+86 -00 replies
5/6relocatable.bbclass: split it up, to reuse codemeta/classes/chrpath.bbclass meta/classes/relocatable.bbclass+91 -890 replies
6/6package.bbclass: change RPATHs for nativesdk packagesmeta/classes/package.bbclass+5 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/6] relocatable SDK

Changes in v2:
- addressed Saul's comments: added Upstream-Status for patches, signed-off-by and patches description;
- addressed Philip's comment about default installation directory: now the default installation directory is the same as SDKPATH variable;
- added patch for eglibc-2.16;

Hi,

This patchset adds relocatable SDK functionality. Instead of a tarball, the output of "bitbake meta-toolchain/meta-toolchain-sdk" will be a self extracting archive.

The user will then execute the .sh script and give it the target directory for SDK installation (default is /opt/poky). The installer will then extract the embedded tarball to the user provided location and will set up the
SDK: change the paths in the environment script, change the dynamic loader path in all binaries and, also, change the ls.so.cache path in the dynamic loader itself, together with the SYSDIR paths/lengths.

With that, no more root privileges are needed in order to install the SDK.

Thanks,
Laurentiu

The following changes since commit e12df2ca5c71ad672ebbfefbc47cabbac3333d61:

lib/oe/lsb.py: Map unknown distributions to 'Unknown' (2012-07-31 08:01:28 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib lpalcu/relocatable_sdk
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=lpalcu/relocatable_sdk

Laurentiu Palcu (6):
eglibc: relocatable SDK changes
binutils: relocatable SDK: change PT_INTERP section size
scripts: add script for relocating the SDK populate_sdk_base.bbclass: create self-extracting archive relocatable.bbclass: split it up, to reuse code package.bbclass: change RPATHs for nativesdk packages

 meta/classes/chrpath.bbclass                       |   89 +++++++++
 meta/classes/package.bbclass                       |    5 +
 meta/classes/populate_sdk_base.bbclass             |   86 +++++++++
 meta/classes/relocatable.bbclass                   |   91 +--------
 .../eglibc/eglibc-2.15/relocatable_sdk.patch       |   81 ++++++++
 .../eglibc/eglibc-2.16/relocatable_sdk.patch       |  108 +++++++++++
 meta/recipes-core/eglibc/eglibc_2.15.bb            |    6 +-
 meta/recipes-core/eglibc/eglibc_2.16.bb            |    6 +-
 .../binutils/binutils-crosssdk_2.22.bb             |    5 +
 .../binutils/binutils/relocatable_sdk.patch        |   22 +++
 scripts/relocate_sdk.py                            |  200 ++++++++++++++++++++
 11 files changed, 606 insertions(+), 93 deletions(-)
 create mode 100644 meta/classes/chrpath.bbclass
 create mode 100644 meta/recipes-core/eglibc/eglibc-2.15/relocatable_sdk.patch
 create mode 100644 meta/recipes-core/eglibc/eglibc-2.16/relocatable_sdk.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils/relocatable_sdk.patch
 create mode 100755 scripts/relocate_sdk.py
Signature · 1 line
1.7.9.5