From patchwork Tue Mar 6 17:50:40 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: 130826 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp4221060lja; Tue, 6 Mar 2018 09:51:12 -0800 (PST) X-Google-Smtp-Source: AG47ELvSptJW14bU5XEkBInaVBQ3TMdLyvZXofRuiw7AgHdt16UGqZIAJiKwy1517zp/1hAVI82D X-Received: by 10.98.180.13 with SMTP id h13mr19625576pfn.139.1520358672051; Tue, 06 Mar 2018 09:51:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520358672; cv=none; d=google.com; s=arc-20160816; b=eVs+dhwMK1vjb59XH6FKnT6z0uJcmQy6MKLSP1zorpDbSrefeUKFkm6q5TRI8+lniF /E8vZvaAP9Rh7Kv1+9cuih/T1XW+Xkx5fko2UeKsbCexQ+YEWm4EI2Es167hOrKTaB8v aXfG1HGZ3DxDMpypoRK1+hcMxHxzyMQbpDuUcXLL02sjnEdzgswZyos6/vZzJL4NA6yZ q/lQax+8oZB1SLAtIFmYBA7nUyPwWQWdLglC5o3p603ACqMXULFtj0Jr/3ZNNdMbhT/h bp3p0ktXvUGCI4NW5uEwU6FXT+ngXh8w7GacUcqcAx6UsJ9E2rZcxoWI5/YQ873Cke9B 2IjQ== 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=i94uJLJ7QQBoPm03H/Z24SNlwWV6nR4ypLuf44dZhc4=; b=hl0eXv501L+bKd4loU2IaYe14ih/ea8BB15jxov2C5TR3C75445ZEnWInEqporWdTf cvUn7G7wPew57yI1rLRKUCwmAsygjhixjSnvHFuZ/f5fnlGYI0Dg7y9wMg6eFAK2jqio wB3YfQFX7Hn7BMNm/+ipZGNhPWWDTPtFAjxy5PS10Y36c5/F6pr/VHsHayinf5kYb0Uj x1GHp6vrRzmI/f9MsUdunNUpvU/D9ND7WpIqfh9/sfenbb8XKCyl2voUmZVgbV3I6UNM gXCFiirGLsvYCibHueFEUN3tWHEXp1iZtkP5aEtHJbvqhAbjrdOrEeYB9TvQ+NVzvypX YHvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cisco.com header.s=iport header.b=YkNUAtVG; 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 f7-v6si11799450pln.211.2018.03.06.09.51.11; Tue, 06 Mar 2018 09:51:12 -0800 (PST) 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=YkNUAtVG; 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 7C20978AA1; Tue, 6 Mar 2018 17:51:07 +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 8120578A97 for ; Tue, 6 Mar 2018 17:50:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=2352; q=dns/txt; s=iport; t=1520358653; x=1521568253; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=txmjxN6J8upIiZqMwT55qqOjzoG5ZK5xQntw6ci5kK4=; b=YkNUAtVGPEIUOlKD+TDzwq0siQ3ZIdRDQ0tkzUKZ/rsWmul8lEVY4YBF bL8ZsQHXhib+vgw6W+LxWSTxYhYkRUJSwVKziQMj4KWkCEEpye0POpPnB NbKDZFS5CS4CT/kpp1Zz/w72n0yqgdJ9IpwcPJvbLpX4e2UrO19+i5JMC I=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BJAgCk055a/5xdJa1dGQEBAQEBAQEBAQEBAQcBAQEBAYNQZnAom3GDGJZJCh+FEQKDAyE3FQECAQEBAQEBAmsnhSQGeRBRVxmFG6s6hHKDdIImhTGCLoY0hUFihSEEjnGLdgmGVIMSAQWHEwKOdol9hywCERkBgS40IoFSTSMVgn0JhGAfN4wlAQEB X-IronPort-AV: E=Sophos;i="5.47,432,1515456000"; d="scan'208";a="146325668" Received: from rcdn-core-5.cisco.com ([173.37.93.156]) by rcdn-iport-5.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Mar 2018 17:50:52 +0000 Received: from kamensky-w541.cisco.com ([10.24.22.184]) (authenticated bits=0) by rcdn-core-5.cisco.com (8.14.5/8.14.5) with ESMTP id w26HofYp007528 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NO); Tue, 6 Mar 2018 17:50:51 GMT From: Victor Kamensky To: openembedded-core@lists.openembedded.org Date: Tue, 6 Mar 2018 09:50:40 -0800 Message-Id: <1520358641-7062-5-git-send-email-kamensky@cisco.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520358641-7062-1-git-send-email-kamensky@cisco.com> References: <1520358641-7062-1-git-send-email-kamensky@cisco.com> X-Authenticated-User: kamensky@cisco.com Cc: Alexander Kanavin Subject: [OE-core] [RFC PATCH 4/5] systemtap: introduce utils variant of systemtap package build 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 In case of small target images it is too expensive to include full stap package into the image. Because default systemtap package include SystemTap translater and have very deep dependencies on variety of libraries. And in cross compiling environment compilation of SystemTap kernel modules can happen on host for a given target using --sysroot and other proper options. In order to deploy resulting SystemTap .ko module, one need small set of SystemTap runtime tools like staprun and stapio. systemtap-utils introduces special "small" variant of systemtap build where only SystemTap run-time utilties are built. As result addition on target is quite small. Signed-off-by: Victor Kamensky --- .../systemtap/systemtap-utils_git.bb | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 meta/recipes-kernel/systemtap/systemtap-utils_git.bb -- 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-utils_git.bb b/meta/recipes-kernel/systemtap/systemtap-utils_git.bb new file mode 100644 index 0000000..3359257 --- /dev/null +++ b/meta/recipes-kernel/systemtap/systemtap-utils_git.bb @@ -0,0 +1,31 @@ +SUMMARY = "Small set only runtime utilities for SystemTap" +HOMEPAGE = "https://sourceware.org/systemtap/" + +require systemtap_git.inc + +FILESEXTRAPATHS =. "${FILE_DIRNAME}/systemtap:" + +DEPENDS = "elfutils" + +# should not be used along with complete systemtap +RCONFLICTS_${PN} = "systemtap" + +EXTRA_OECONF += "--with-libelf=${STAGING_DIR_TARGET} --without-rpm \ + --without-nss --without-avahi --without-dyninst \ + --disable-server --disable-grapher --enable-prologues \ + --with-python3 --without-python2-probes \ + --disable-sdt-probes --disable-translator \ + --disable-libvirt --disable-sqlite --disable-monitor \ + --without-python3-probes \ + --disable-docs --disable-publican --disable-refdocs \ + ac_cv_prog_have_javac=no \ + ac_cv_prog_have_jar=no " + +do_install_append () { + rm -rf ${D}${datadir}/systemtap + rm -rf ${D}${includedir} + # remove bash dependency we don't need it anyway + rm ${D}${libexecdir}/systemtap/stap-env +} + +inherit autotools gettext