Hi all, This patch will add relocatable SDK support to adt installer. That is, the user can provide an install folder, different than the default one (usually /opt/${DISTRO}/${SDK_VERSION} and the binaries will be automatically relocated.
Why RFC? Well, adt_installer uses opkg in order to populate the SDK rootfs. If the user wants to install, for example, x86_64 Poky SDK under, say, /home/user/some/directory, he/she will end up with this directory structure: /home/user/some/directory/opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/... The idea is to strip opt/poky/1.2+snapshot from this structure and end up with: /home/user/some/directory/sysroots/x86_64-pokysdk-linux/... With the meta-toolchain stuff it was easy because tar has the feature to strip a number of components from file names on extraction and all was fine. But opkg, doesn't... Not that I know of. So, I had two options: - hard way: patch opkg to be able to support this. Implementation could take some time and the feature will be rarely used in real-life; - easy way: the solution I chose: after opkg finishes installation of the entire directory structure, move sysroots directory (together with the setup scripts) to the location we want and then get rid of the ./opt/poky/1.2+snapshot/ tree, which is empty anyway. Any comments? Thanks, Laurentiu Laurentiu Palcu (1): adt-installer: add support for relocatable SDK .../installer/adt-installer/adt_installer | 11 ++ .../adt-installer/scripts/adt_installer_internal | 109 ++++++++++++++++---- .../installer/adt-installer_1.0.bb | 37 +++---- 3 files changed, 121 insertions(+), 36 deletions(-) -- 1.7.9.5 _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core