From patchwork Wed Jun 27 17:43:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Daniel_D=C3=ADaz?= X-Patchwork-Id: 140374 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1178178ljj; Wed, 27 Jun 2018 10:44:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcuKr1gZhFM/zv/P7RnxfWQIYYINSots0069vNzFxkhF5mIHCrR1Gy221Cq4MMF8CVvHeA6 X-Received: by 2002:a62:8d03:: with SMTP id z3-v6mr6725237pfd.112.1530121447465; Wed, 27 Jun 2018 10:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530121447; cv=none; d=google.com; s=arc-20160816; b=Pq/F985sgodkjschEDHOTNQ48DwyOtvkliGmz9WnTUoAx5/9JPUxKhS9djrfcQZiEF f+zoQOjzZu0F+fRBOtfnXQFX5fAhaCKMOPi7Xu79VR34nOdyni60ZEUxafj7S7qCdH91 M+TmPSJKHAuCB4YdDeIOmAWjRs4aWNSyhyadenu6td2KsXM67EoAhzMqfjPI8hytRUmo KNnL0E7LSI5bi+FiJWUTQyNb9d/xOz6WXrhudvBy6ar/pndVRKHXzBvatuolxsN8v3p8 HSPqwGD+TLjkZ/VxwcnxBUsWIDAngVO4YllMMHiPDpgZVT3lXwSFlaha4WCEyuDDcfpJ lzVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to :arc-authentication-results; bh=8OrZlEwiKFofAoZtemV+shIi1GVOE24VY3vjnxnTk8w=; b=q0bCr1Wifs7FwEA/Vsb8VDECsl0E2Y6yevva1IpzbFHy6UaM5oRGuM1mYN/sPq82E1 lMLrANt+dUMV2vBRcEipgQHyO9TFX/ZahsB4TMrNKxXfUvwcsUXJc+dqq58k8sdttyjY /uWDVZdo1Rgb54DrFV2CwaxtB5uhxe39tzecGfMdyn7/dNHt0MG7ed6Bl41AgkvvO4de gZvN3zEjZtP7QnJu49pqECUclLjlQuZioqtzoHSBXxRb1lLn3MvcgzEYUkR8cpwSgb2K 0FqZHb5hl6QBmJ3Vsms8dYfxJ5gm30nYh2/YlAJ9yEuIdpM1uW/ryGf/RvSxnC+ltbr3 E/4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=b4Ba+Lso; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id d34-v6si4340009pld.252.2018.06.27.10.44.06; Wed, 27 Jun 2018 10:44:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=b4Ba+Lso; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 76CAD746B2; Wed, 27 Jun 2018 17:44:00 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-oi0-f54.google.com (mail-oi0-f54.google.com [209.85.218.54]) by mail.openembedded.org (Postfix) with ESMTP id 1C3F56FFED for ; Wed, 27 Jun 2018 17:43:58 +0000 (UTC) Received: by mail-oi0-f54.google.com with SMTP id f79-v6so2645182oib.7 for ; Wed, 27 Jun 2018 10:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fatQDHA+6qs3NGdG0TsWdD4zzjUXmQV9C/5KyxfFYtc=; b=b4Ba+LsoW3TO8ozJ10hd3tAjD07jFn3H5KHMx4DDkImjnqeJzHlDUGuM7//TPhytgx ExykQFBZwbEj/BnImKbznIlgxMhWlGU5mkzwIyUeM5NaLLOO0iU849JYan0LNbsERzZ5 vqFnHglqQn1yCi1EWJnKpIhHCprHyY9vqqI6c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fatQDHA+6qs3NGdG0TsWdD4zzjUXmQV9C/5KyxfFYtc=; b=cgvDFgGIo0vyEK2ikXwvFIw7CMYwhroUhOqMZ7YvmYVnnw4CR6ALZS3Fwf7kYw9YVy G/4hJtghSX3eMXobVglGgs051OYFmIRLgN00wM/QNvpsAEDo09TPJ/12Jp84XGuThzub yui7oEzvqRK408xzEKFD+eDitEZIl0/wVeZ973AVIzyixu/8iAVC95FLHmAu8SsD7nhD wuayLTL8GQjTiXP+pwQNdZzxY13QHidh7nLfotXBsQl42Xf1aazDdEGsi5Rsp4Eg9/qS q7EflVJ6rL42LLYSuqpr4mEMtaHd3Tp9gwgY0r1oxywbLCuKfKwFbb66pxRjvDNFDmPd szbQ== X-Gm-Message-State: APt69E2klcTzBvlEkDRl43YXhM+oFA4GFzrY6Nf0wKYZbTLaqj0++OTM KZ3pek+QYkaqi3X6S+m6bKBGoSEaMo8= X-Received: by 2002:aca:6b03:: with SMTP id g3-v6mr3545569oic.219.1530121439417; Wed, 27 Jun 2018 10:43:59 -0700 (PDT) Received: from aura.cortijodelrio.net (CableLink-187-161-191-185.PCs.InterCable.net. [187.161.191.185]) by smtp.googlemail.com with ESMTPSA id h142-v6sm2848238oic.9.2018.06.27.10.43.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Jun 2018 10:43:58 -0700 (PDT) From: =?utf-8?q?Daniel_D=C3=ADaz?= To: openembedded-devel@lists.openembedded.org Date: Wed, 27 Jun 2018 12:43:51 -0500 Message-Id: <1530121431-7102-1-git-send-email-daniel.diaz@linaro.org> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH v2] bpftool: add new recipe X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org The bpftool allows for inspection and simple manipulation of eBPF programs and maps, so common in the kernel selftests. Signed-off-by: Daniel Díaz --- v2: Drop superfluous chown meta-oe/recipes-kernel/bpftool/bpftool.bb | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 meta-oe/recipes-kernel/bpftool/bpftool.bb diff --git a/meta-oe/recipes-kernel/bpftool/bpftool.bb b/meta-oe/recipes-kernel/bpftool/bpftool.bb new file mode 100644 index 0000000..fd0653a --- /dev/null +++ b/meta-oe/recipes-kernel/bpftool/bpftool.bb @@ -0,0 +1,31 @@ +SUMMARY = "Inspect and manipulate eBPF programs and maps" +DESCRIPTION = "bpftool is a kernel tool for inspection and simple manipulation \ +of eBPF programs and maps." +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" +DEPENDS = "binutils elfutils" +PROVIDES = "virtual/bpftool" + +inherit bash-completion kernelsrc kernel-arch + +do_populate_lic[depends] += "virtual/kernel:do_patch" + +EXTRA_OEMAKE = "-C ${S}/tools/bpf/bpftool O=${B} CROSS=${TARGET_PREFIX} CC="${CC}" LD="${LD}" AR=${AR} ARCH=${ARCH}" + +do_configure[depends] += "virtual/kernel:do_shared_workdir" + +do_compile() { + oe_runmake +} + +do_install() { + oe_runmake DESTDIR=${D} install +} + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +python do_package_prepend() { + d.setVar('PKGV', d.getVar("KERNEL_VERSION", True).split("-")[0]) +} + +B = "${WORKDIR}/${BPN}-${PV}"