From patchwork Thu Apr 5 18:25:29 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: 132882 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp6606231ljb; Thu, 5 Apr 2018 11:26:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+qvu/3kS4Pj8wxApeReAQ017QwSt/pMkWSFSSGCu5l4MDMPca1qTiVMcH1au3QPfVu5zZ1 X-Received: by 2002:a17:902:7b96:: with SMTP id w22-v6mr22370005pll.116.1522952781790; Thu, 05 Apr 2018 11:26:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522952781; cv=none; d=google.com; s=arc-20160816; b=PcC66+wSFxM74EFeljID1MFYQHJEXHNHe5ybR7PNczhLTyhksoQWPiR1XPCM7Iq09B K/tS6DtlBJPuaUBeDKrKbcMwXblmrCavU7MF1dQWQMgOhUaycOe546USJVS2rSgpvxJ2 XOIyeXVq0woMe+ksyg87PoRRG5Mep/mN/JrRCI5wDdy/IHYl+Y58aWhFv38U5V0hASr7 5tOI1vSkd4IdKlTL8o3/6mJRbKcgXmJrKRCRuZy+/GeUhSFr5rnNxYkW2nJlYQtEVd+O Ka/Sv4cpOxDghuAgB65ZRjhiquSTUQCYbRda2Nw0//drEvbL2sxYexQ32pDhjhXf3CG3 2lYA== 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=s20469/5oqaSnJSVqm0XR9WL0I4lGOnZ70P8I1QcE/5YQXgkXCTfgR7D47bNDM19hH 1MtxMBrEdoNsX3bfhj7b3vRu5tlqaVDs4dz7B/VLqGDsvp62ZQpPRDuaPy6AX+XXptwU ZPYgEGlvx+YjMnYs+zv9o5kuyLxPJZY7Ccy0bQ+GRoSI8RL3u2Lx2HQUJ8OGX3orjeZv 91AXYvI6BZ9xSiQ0rR/AaeGgd+QikKyIaKPTbeHrS1+dHCvhGSKCiK7aM6Y32BrmDeXe SlxkzBeUlAF5EI+USC4+64iptAnjaWB2rduL/9PbDSKV9dFv1hHMbK+uhejfjE4H+W9F M6Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cisco.com header.s=iport header.b=O7ZQsdme; 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 v12-v6si6622064plz.487.2018.04.05.11.26.21; Thu, 05 Apr 2018 11:26: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=O7ZQsdme; 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 0888D75073; Thu, 5 Apr 2018 18:26:10 +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 D76AB74FD9 for ; Thu, 5 Apr 2018 18:25:41 +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=1522952743; x=1524162343; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=Ci96IzX/ViY8ZrFku40t0ovC6txGMWKd1gTZhY8dukY=; b=O7ZQsdme6HsUmj2GUhPGoNd7EIYfm8c4hLoA4HgkfcKzvSklT88BK6Of pUp6LVtXfQ/G6UioyF+vsc5ezKB6XFdN8aeidBDTH1LVk9Kpv2nMf8WWO X/xPGLsafbdBDrpZ78gcTu2zoOZc5/7xBOrBPWiB8X3A7aGOxXRWWYB9i c=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AGAgBYacZa/5tdJa1cGQEBAQEBAQEBAQEBAQcBAQEBAYNCYW8omGiDA5JVgXoLH4RkAoI+ITYWAQIBAQEBAQECbBwMhSMGeRBRVxmFDa5ciEOCJYdqghODXIVvhQgCjFaKagiFU4heAow7iRqGQgIREwGBJSMDLoFSTSMVgn0JiweFXh8wjRsBAQ X-IronPort-AV: E=Sophos;i="5.48,411,1517875200"; d="scan'208";a="376983092" 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:43 +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 w35IPUvl013347 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NO); Thu, 5 Apr 2018 18:25:42 GMT From: Victor Kamensky To: openembedded-core@lists.openembedded.org Date: Thu, 5 Apr 2018 11:25:29 -0700 Message-Id: <1522952730-5967-5-git-send-email-kamensky@cisco.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522952730-5967-1-git-send-email-kamensky@cisco.com> References: <1522952730-5967-1-git-send-email-kamensky@cisco.com> X-Authenticated-User: kamensky@cisco.com Cc: Alexander Kanavin Subject: [OE-core] [PATCH v3 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"