Hi, This is second version of patch series of SystemTap supporting sysroot and SystemTap script cross compilation, integrated with OE workflow.
Since first, RFC, version [1] the following changes were done: image: add image-combined-dbg helper class Needed to create rootfs-dbg that contains both target binaries and debug symbols. Instead of IMAGE_GEN_COMBINED_DEBUGFS build option as in RFC patches [2], small additional class is introduced that allows adding target symbols back into rootfs-dbg. The approach was suggested by Khem, as response on first RFC patches. Revert "systemtap: Cross compilation fix" Remove previous OE specific patch. It superseded by --sysroot support patch series systemtap: support --sysroot option in variety of situations in cross build Backport of SystemTap patches required to support --sysroot. Since my first post I worked with SystemTap maintainers and now all needed fixes for sysroot support got accepted. systemtap: create translator packageconfig Creates new PACKAGECONFIG, translator, which is on by default, but if dropped resulting systemtap package would contain only minimal run-time utilities required to activate/run host cross compiled SystemTap modules. It is implemented in such way instead of separate systemtap-utils recipe based on team's feedback. crosstap: replace script with new python based implementation Full backward compatible replacement of original crosstap shell script, written in python with extended functionality to support SystemTap scripts for user-land using --sysroot option. Compared to RFC version new script invocation wise is fully backward compatible with orginal crosstap shell script. Full setup with patch series and examples that were used for testing is available at [3]. [1] http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148387.html [2] http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148392.html [3] https://github.com/victorkamensky/systemtap-oe-sysroot-manifest Victor Kamensky (5): image: add image-combined-dbg helper class Revert "systemtap: Cross compilation fix" systemtap: support --sysroot option in variety of situations in cross build systemtap: create translator packageconfig crosstap: replace script with new python based implementation meta/classes/image-combined-dbg.bbclass | 9 + meta/classes/image.bbclass | 1 + ...001-Added-a-couple-of-small-sysroot-fixes.patch | 42 ++ ...g-sysroot-path-to-module-name-in-case-of-.patch | 61 +++ ...sure-sysroot-paths-don-t-end-with-a-slash.patch | 128 +++++ ...root-when-looking-for-the-System.map-file.patch | 29 + ...e_relocate-needs-target-file-path-not-hos.patch | 39 ++ ...ookup-with-sysroot-case-do-not-remove-sys.patch | 42 ++ ...-short-release-r-option-handling-follow-u.patch | 40 ++ ...sroot-fix-short-release-r-option-handling.patch | 53 ++ ...dle-symbolic-links-with-absolute-name-rel.patch | 117 ++++ .../systemtap/systemtap/system_map_location.patch | 23 - meta/recipes-kernel/systemtap/systemtap_git.bb | 15 +- meta/recipes-kernel/systemtap/systemtap_git.inc | 10 +- scripts/crosstap | 586 ++++++++++++++++----- 15 files changed, 1031 insertions(+), 164 deletions(-) create mode 100644 meta/classes/image-combined-dbg.bbclass create mode 100644 meta/recipes-kernel/systemtap/systemtap/0001-Added-a-couple-of-small-sysroot-fixes.patch create mode 100644 meta/recipes-kernel/systemtap/systemtap/0001-Delay-adding-sysroot-path-to-module-name-in-case-of-.patch create mode 100644 meta/recipes-kernel/systemtap/systemtap/0001-Make-sure-sysroot-paths-don-t-end-with-a-slash.patch create mode 100644 meta/recipes-kernel/systemtap/systemtap/0001-Use-sysroot-when-looking-for-the-System.map-file.patch create mode 100644 meta/recipes-kernel/systemtap/systemtap/0001-_stp_umodule_relocate-needs-target-file-path-not-hos.patch create mode 100644 meta/recipes-kernel/systemtap/systemtap/0001-debuginfo-lookup-with-sysroot-case-do-not-remove-sys.patch create mode 100644 meta/recipes-kernel/systemtap/systemtap/0001-sysroot-fix-short-release-r-option-handling-follow-u.patch create mode 100644 meta/recipes-kernel/systemtap/systemtap/0001-sysroot-fix-short-release-r-option-handling.patch create mode 100644 meta/recipes-kernel/systemtap/systemtap/0001-sysroot-handle-symbolic-links-with-absolute-name-rel.patch delete mode 100644 meta/recipes-kernel/systemtap/systemtap/system_map_location.patch -- 2.7.4 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core