From patchwork Tue Apr 3 17:23:36 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: 132777 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp4071042ljb; Tue, 3 Apr 2018 10:24:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx48HRYUArDuDjsFGw9qS5GSlT0YTsZlgeXy7ZxtDikK7tFmWM0HvdiYPfxiQFNbBDeqPfRWa X-Received: by 2002:a17:902:6909:: with SMTP id j9-v6mr15207602plk.92.1522776261739; Tue, 03 Apr 2018 10:24:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522776261; cv=none; d=google.com; s=arc-20160816; b=yp/3aRSVEIPLozXmkoCXtUqYzO4Li0G6aB4nZd4/X5Ry4/shOgJwmy0UOdf2XsYLEz PzeZeHknNgNXy4sCvr70FO5wjLRp4iGm3iNIM+FqYRyiG8ZEHWVu89wwM/r5ifRTYmHM MS9Gy9RzgUunkdK5bI94i0L2lvK+1cLNRVB/y5XXTL8iVCVmuVAc+eD14EWqJ/V7mkWg LAxga3aBl+/Gx4O137trDKTDsItPK0nf41EC1xGfSNxqhqM49MPfFAlfzqQidXeGfafN 9SQOs8I2FzbA4OSZZxspnaBeKLRGNUZ9CdPqHTwfvwBzAtzeUpQEdepAJp1yzvEgqN5O /BYw== 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:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to:arc-authentication-results; bh=F5C/xqqZrpGjeMeouOJOPztAfCD/FHAP7ixHsgA1SoM=; b=LWONz4vXPyMnco2mUny7FLqhbI5WdaBYchpbFEj63h8bEsapWIHIaJUw9LR/0QSt6X Bx1sydDMxO/ACv9o9C2w1AB5CjrY4SKMgDtCgOWbHiuQ/Qy+go8m31W/a945zcTPqsyX FF5gM+eRZ4nAnSWFyQE3xSU34r7mgXDspQtb2ZAuOg9BgFBS8i/G42eaxccT9g2Z1ga7 /aWJMjk5ifl7uNu/bxdH97Mp1rxzR828qBawRvT+PSZUnZStlOjv6G0PSSK8mBscjKSh jhsWgfYJOluPBkT+IhUtOiIUVuS+aNUunCV/IMgKRy9Kmh9UND1fz72oS+OYjtm+Taki wscg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cisco.com header.s=iport header.b=VwIOEgit; 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 n1-v6si982291pld.238.2018.04.03.10.24.21; Tue, 03 Apr 2018 10:24:21 -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=VwIOEgit; 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 62B1E74A55; Tue, 3 Apr 2018 17:24:09 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from rcdn-iport-5.cisco.com (rcdn-iport-5.cisco.com [173.37.86.76]) by mail.openembedded.org (Postfix) with ESMTP id 4B1AC74928 for ; Tue, 3 Apr 2018 17:23:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=2349; q=dns/txt; s=iport; t=1522776237; x=1523985837; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=Ci96IzX/ViY8ZrFku40t0ovC6txGMWKd1gTZhY8dukY=; b=VwIOEgitwJ7mm2AWWdcw7KpB+rFtqcN5AgmnC+u7176Pycz4TBtkHH7T CPndIp9fVx+Heqb9aRRqbYAOVMYKiacCH9MzCJ4OrzzuVmxljWPT6hNxn Imv1k/++LcU+CT8p3P16XLq7UviR0hatzal89ba2Sa1icexw7q0Wf1s+a g=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AYAgDZt8Na/4cNJK1dGQEBAQEBAQEBAQEBAQcBAQEBAYNCYW8omGODA5RPCx+EZAKEQiE4FAECAQEBAQEBAmsohSMGeRBRVxmFDa9OiESCJYdhghODXIVvhQgCjFOKaAiFUohdAow1iRWGQQIREwGBJTMhgVJNIxWCfQmQZB8wjj0BAQ X-IronPort-AV: E=Sophos;i="5.48,402,1517875200"; d="scan'208";a="158136718" Received: from alln-core-2.cisco.com ([173.36.13.135]) by rcdn-iport-5.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Apr 2018 17:23:56 +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 w33HNck4010603 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NO); Tue, 3 Apr 2018 17:23:55 GMT From: Victor Kamensky To: openembedded-core@lists.openembedded.org Date: Tue, 3 Apr 2018 10:23:36 -0700 Message-Id: <1522776217-23250-5-git-send-email-kamensky@cisco.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522776217-23250-1-git-send-email-kamensky@cisco.com> References: <1522776217-23250-1-git-send-email-kamensky@cisco.com> X-Authenticated-User: kamensky@cisco.com Cc: Alexander Kanavin Subject: [OE-core] [PATCH v2 4/5] systemtap: create translator packageconfig 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 For cases when systemap module compilation happens on host in cross-compilation mode, and it is desirable to minimize systemtap presense on target we need to have just smallest possible set of utilties that are required to run compiled modules. Introduce new "translator" PACKAGECONFIG, if it is not set it would mean that just minimal set of run-time utilities will be included in the package. For run-time only systemtap build variant use PACKAGECONFIG_pn-systemtap = "" or PACKAGECONFIG_pn-systemtap = "monitor" Suggested-by: Taras Kondratiuk Signed-off-by: Victor Kamensky --- meta/recipes-kernel/systemtap/systemtap_git.bb | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) -- 2.7.4 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-kernel/systemtap/systemtap_git.bb b/meta/recipes-kernel/systemtap/systemtap_git.bb index 475b207..b280f58 100644 --- a/meta/recipes-kernel/systemtap/systemtap_git.bb +++ b/meta/recipes-kernel/systemtap/systemtap_git.bb @@ -3,9 +3,7 @@ HOMEPAGE = "https://sourceware.org/systemtap/" require systemtap_git.inc -DEPENDS = "boost elfutils" - -RDEPENDS_${PN} += "python3-core bash perl" +DEPENDS = "elfutils" EXTRA_OECONF += "--with-libelf=${STAGING_DIR_TARGET} --without-rpm \ --without-nss --without-avahi --without-dyninst \ @@ -18,7 +16,8 @@ STAP_DOCS ?= "--disable-docs --disable-publican --disable-refdocs" EXTRA_OECONF += "${STAP_DOCS} " -PACKAGECONFIG ??= "sqlite monitor python3-probes" +PACKAGECONFIG ??= "translator sqlite monitor python3-probes" +PACKAGECONFIG[translator] = "--enable-translator,--disable-translator,boost,python3-core bash perl" PACKAGECONFIG[libvirt] = "--enable-libvirt,--disable-libvirt,libvirt" PACKAGECONFIG[sqlite] = "--enable-sqlite,--disable-sqlite,sqlite3" PACKAGECONFIG[monitor] = "--enable-monitor,--disable-monitor,ncurses json-c" @@ -26,4 +25,12 @@ PACKAGECONFIG[python3-probes] = "--with-python3-probes,--without-python3-probes, inherit autotools gettext pkgconfig distutils3-base +do_install_append () { + if [ ! -f ${D}${bindir}/stap ]; then + # translator disabled case, need to leave only minimal runtime + rm -rf ${D}${datadir}/${PN} + rm ${D}${libexecdir}/${PN}/stap-env + fi +} + BBCLASSEXTEND = "nativesdk"