From patchwork Thu Apr 5 18:25:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Victor Kamensky \(kamensky\)" X-Patchwork-Id: 132879 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp6605713ljb; Thu, 5 Apr 2018 11:25:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/6nI3hjiINwMFQphPOA+bAfTdC2I068pcUdF8jcmP3P8RTqZgArtl5Wh+yFWWvPVP55hKK X-Received: by 2002:a17:902:9894:: with SMTP id s20-v6mr16131409plp.196.1522952748574; Thu, 05 Apr 2018 11:25:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522952748; cv=none; d=google.com; s=arc-20160816; b=xITXAos+8Ngwz62ycjoQNYoA0vM7MQoyYUWnB+OcikKfggS8ODVVjL6u3No+ZPgNNJ 17ipoYZhibmYkwhjpPNG8tnwqdSlouSBNNcdM81pTcupkRlHSTduWVTXQJGTmMweWMxr ejIeefYzX5OoP1bZetdPr0jPKNLApd4/lvXVcFDQE1TJMiCfmxqmOM8jBLY5WU+AbQ2w 4UL/WucUyS4rXQrvD9LtdKWlAbC1y6Sks3n9T0Bh9MgVrZLOLmc/DMlVczEORm3wDHuE Ws4RbsyL0qaWk5g0wlhXscnBgnQOb5aAxMIMMUrWX40AWpmd5adoKKseFM1R9Le8T7vL EQnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=FbwcZpSjxJOOx3wBFhLz1gKXdC0dA93Ev7+diNfXmuM=; b=KLEiEj9qKXxb5rP5EYVz0BispZXiOwCXqO/wu4X8G9p1CtkOIy2oKlexUYPqYqXVWX iJ7t2n5I2iKK4PV13/GFuH5xRT5aGKhjrMCHAlhvpOPKCjG8ICgKH7LK2ne/5DE++dHc Emq5/LrQ3tSHK6w8To7/PgGFvcAu1Xr8YBgxAypZRbXk/6TqA5eOOBX6B/gxRZuydsow IfYSb7wEmI5Bc3M9R0j0lkIuaGhTtbQ9TnMBKw6hTX+Qj0DdsdQja3ouE+PR5+l6Efia /572r0aICgeTuUAtz6LkxKXn0qAEYKsT5S6y+dcAIraxjGi0QGR8kcek0doLfJwdJROx GPsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cisco.com header.s=iport header.b=JWffDHNP; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cisco.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id 71-v6si6212341plb.511.2018.04.05.11.25.47; Thu, 05 Apr 2018 11:25:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=fail header.i=@cisco.com header.s=iport header.b=JWffDHNP; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cisco.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id C4D6E74F60; Thu, 5 Apr 2018 18:25:41 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from rcdn-iport-4.cisco.com (rcdn-iport-4.cisco.com [173.37.86.75]) by mail.openembedded.org (Postfix) with ESMTP id 2C68974C5E for ; Thu, 5 Apr 2018 18:25:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=4962; q=dns/txt; s=iport; t=1522952741; x=1524162341; h=from:to:cc:subject:date:message-id; bh=nbyAFVrvpWfF8jUF9WRuP82nrMM1q7Vheda2OQTSmC0=; b=JWffDHNPpUe3idMGQNHjq69250IokyF17NqigYQCojfS5SfSqoBWSWfa XZ696hFBD6lN+utwAAvBRhi/bk7FZBbQ0fW8OQTmRrOzDI14g+1/0tcJ5 j6TvkX7KVgXxHTeROWsZLXut/zsBpgqLCCnVCI6UeIt0ZPagv+bN2V+fv U=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AGAgBYacZa/5tdJa1cGQEBAQEBAQEBAQEBAQcBAQEBAYNCYW8omGiDA5JVgXoLGA2EXoJAITYWAQIBAQEBAQECbBwMhSUFeIEJhVUPrk2IQ4Ilh2qCE4Ncg0UCAQKHLQKHRYQvAWGKagiFBE+FA4NbAoFqilGJGoZCAhETAYElIwEwJoEsTSMVRxCCJgmCP4M0hRSFXh8wAY0aAQE X-IronPort-AV: E=Sophos;i="5.48,411,1517875200"; d="scan'208";a="376983085" Received: from rcdn-core-4.cisco.com ([173.37.93.155]) by rcdn-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Apr 2018 18:25:40 +0000 Received: from kamensky-w541.cisco.com ([10.24.32.120]) (authenticated bits=0) by rcdn-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id w35IPUvh013347 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NO); Thu, 5 Apr 2018 18:25:40 GMT From: Victor Kamensky To: openembedded-core@lists.openembedded.org Date: Thu, 5 Apr 2018 11:25:25 -0700 Message-Id: <1522952730-5967-1-git-send-email-kamensky@cisco.com> X-Mailer: git-send-email 2.7.4 X-Authenticated-User: kamensky@cisco.com Cc: Alexander Kanavin Subject: [OE-core] [PATCH v3 0/5] systemtap adding sysroot, cross compiling of user land related scripts X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Hi, This is third version of patch series of SystemTap supporting sysroot and SystemTap script cross compilation, integrated with OE workflow. Version 3 Changes: * Simplified and cleaned image-combined-dbg class, as per Richard's neat suggestion * Rebased to latest tree to resolve merge conflict with systemtap and gcc-8 recent change Version 2 Patches, 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 + ...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 ++++++++++++++++----- 14 files changed, 1030 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