From patchwork Tue Apr 3 17:23:32 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: 132774 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp4070588ljb; Tue, 3 Apr 2018 10:23:55 -0700 (PDT) X-Google-Smtp-Source: AIpwx489Pb1ejHEGlSUUyUf+unteH91QcaNZ0noE739bG6E2kOsBd5uX5ab4ttRjgO0fIZlBEQ99 X-Received: by 2002:a17:902:4225:: with SMTP id g34-v6mr15321232pld.297.1522776235795; Tue, 03 Apr 2018 10:23:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522776235; cv=none; d=google.com; s=arc-20160816; b=OOPiPw9A72k88jYzYgAY2PDet42GmFLQxiY+XuPVx32ombic/rSJfcZvmzeUfyVZ0j Ah9EsoiWcU4PjUQSgI7hB0XF4Xl7607Z+Br9dbg78gX4Cw3DwUNYPETUD9CsEZoXg9k4 e7O8gRadmKxigdaNYL6VvEE5xG/6dc8WTiRaZMhR8rHGtGIFGgHqSbt4wHZ24SuwapcQ tEW5mqxoWlgPQp9d1ngyd4Y3JM5zmqdNMRckO3RVglisgBtjmn+oeDSCmEmEs1aJv44p 81JkWaNASZWtBAeG7XtV3/M3ocubF3GPFfWt7+djU2QtLutSctnUWouI7Jq7aeV/1xWS zstw== 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=yMQyOGDRj1jbhROpuZI2zzaO0JnJu8wh6im/Uzcg5w8=; b=n78O/dksQmkLBL5HlHgKgpLIPbHikgKsMS48mcP/+7JyVv6NfiA+PwMoPDLk+vqgVg 0CmSgnMxZacebkqwCXWLMjZlrGC3HHOSOzfamFfeFSwpZNY6u3A4WMxLTCI+SdRxvXdj DSjgTsriMYHwBEnrGAYyyebGIRe3PhzX66SYfOKDXjJQT/533cBv0ASeweBXqGoU/bpQ CFuoXs12nQXLwGGvfYP1LSfYIwRw+01L76HjgEbjffvMmb93YmI3Zg/YrFMV7STOXymt iBrNR/NNwljCnk+WZGy8HLi7SV0gUTgF4odBe73vMQhGThOqs1c8SnDvAo/CToEFmSMN 5lvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cisco.com header.s=iport header.b=hldUq3H5; 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 b184si2246789pgc.795.2018.04.03.10.23.55; Tue, 03 Apr 2018 10:23:55 -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=hldUq3H5; 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 00E5574A30; Tue, 3 Apr 2018 17:23:51 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from rcdn-iport-6.cisco.com (rcdn-iport-6.cisco.com [173.37.86.77]) by mail.openembedded.org (Postfix) with ESMTP id 4EE2774897 for ; Tue, 3 Apr 2018 17:23:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=4784; q=dns/txt; s=iport; t=1522776231; x=1523985831; h=from:to:cc:subject:date:message-id; bh=YFV4CvlJJgkKCk/ZzHGspcG0z0oib3MYpdjlJdw0RJ4=; b=hldUq3H5cVngy2Smt7oyiE842GN8W2Dno2p9vck3XOrUeDvGZftewvUJ n6CjelZjemPeSrbA0Mle5iuzvG9BRxvr5bcTMhVANvsX/2sLI0IlibaZS AZdPOg9kZVOYHdwLhrJi01H2Hg++rT7EQzQ0nrcEdh9Ke84xNGURkwAKz I=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AYAgBQuMNa/4cNJK1dGQEBAQEBAQEBAQEBAQcBAQEBAYNCYW8omGODA5RPCxgNhF6ERCE4FAECAQEBAQEBAmsohSUFeIEJhVUPr0CIRIIlh2GCE4Ncg0UCAQKHLQKHQoQvAWGKaAiFA0+FA4NaAoFoik2JFYZBAhETAYElMyEmgSxNIxVHEIImCYI/jiUfMAGOPAEB X-IronPort-AV: E=Sophos;i="5.48,402,1517875200"; d="scan'208";a="376142708" Received: from alln-core-2.cisco.com ([173.36.13.135]) by rcdn-iport-6.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Apr 2018 17:23:50 +0000 Received: from kamensky-w541.cisco.com ([10.82.174.186]) (authenticated bits=0) by alln-core-2.cisco.com (8.14.5/8.14.5) with ESMTP id w33HNck0010603 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NO); Tue, 3 Apr 2018 17:23:49 GMT From: Victor Kamensky To: openembedded-core@lists.openembedded.org Date: Tue, 3 Apr 2018 10:23:32 -0700 Message-Id: <1522776217-23250-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 v2 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 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