diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-11 10:42:44 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-11 11:04:51 +0100 |
commit | 57d6bdcad55c119e9ab8089d23d462436a0e4440 (patch) | |
tree | d8ab2161b5cacfd21bc33ebe71767e90248301bb /meta/classes/image.bbclass | |
parent | 9951e1da6a755f9a46d3a595aa4c2f975aee8f46 (diff) | |
download | openembedded-core-57d6bdcad55c119e9ab8089d23d462436a0e4440.tar.gz openembedded-core-57d6bdcad55c119e9ab8089d23d462436a0e4440.tar.bz2 openembedded-core-57d6bdcad55c119e9ab8089d23d462436a0e4440.zip |
image/populate_sdk: Ensure symlinks in target sysroot are relative
In the target sysroot of an SDK we can have target system absolute links
which don't make sense. This adds a script which fixes them up to become relative
paths instead.
[YOCTO #5020]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r-- | meta/classes/image.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 4a0946c8e3..f1e62f1454 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -4,7 +4,7 @@ inherit populate_sdk_base TOOLCHAIN_TARGET_TASK += "${PACKAGE_INSTALL}" TOOLCHAIN_TARGET_TASK_ATTEMPTONLY += "${PACKAGE_INSTALL_ATTEMPTONLY}" -POPULATE_SDK_POST_TARGET_COMMAND += "rootfs_install_complementary populate_sdk; " +POPULATE_SDK_POST_TARGET_COMMAND += "rootfs_install_complementary populate_sdk; rootfs_sysroot_relativelinks; " inherit gzipnative @@ -617,6 +617,11 @@ rootfs_trim_schemas () { done } +# Make any absolute links in a sysroot relative +rootfs_sysroot_relativelinks () { + sysroot-relativelinks.py ${SDK_OUTPUT}/${SDKTARGETSYSROOT} +} + EXPORT_FUNCTIONS zap_root_password remove_init_link do_rootfs make_zimage_symlink_relative set_image_autologin rootfs_update_timestamp rootfs_no_x_startup do_fetch[noexec] = "1" |