From patchwork Wed Jun 27 03:14:35 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: 140083 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp336808ljj; Tue, 26 Jun 2018 20:22:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLbqMKE3JyXcfl2aZ8H3QfYq3ivrzjcV7AWpu5lQG9VFstgqL6q163xxLkqGjo2+/h2mwfG X-Received: by 2002:a17:902:4101:: with SMTP id e1-v6mr4275297pld.205.1530069768904; Tue, 26 Jun 2018 20:22:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530069768; cv=none; d=google.com; s=arc-20160816; b=uKHde1DdFAaAX96JX6W4xfthJDoSBYoRiOLkQESSCwEg6BHMRQlB2/KxxhElYIgj6G 81OM6pH5EVKVtY64tchSedtV1nzsolC7asSbc+Cs40Ow3wJsAlrp2jihSCM9/R/fF180 I9KDKSBux7tomrqX386U7rzUsrTZYQcym2aw96IWL5cAjZeFVMofkLLwX7ADwP2nkI7b 1MWOihKqlfBxMAa2s1r7R26FVqumm1hI0jOrK0Y67pbiFNHFQ2eCQ16fCfqgDpaWx4BL rnm/G2ox6lsj/++yI5g2VzjXjEapvwvlDzu2hgDD3r/5jVQnPhQruRCoeTsUuY6BbJUu Vpgg== 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=gqYtHoBDS9jqW+2no63m+KA/gtOOMqVpi7GWgJOOSWs=; b=OPS41/oHGjWhPt2pnj5aAxzvLQycszoFE8vIjo5UTsd78s4OgRmtpI5m4GU7TAsFML y1uacbknyuXZCSjXalpTiMI2JtEbX2q4VXwZjH8rOZOdfomYOXSobIU725vzgjijvDIj FYRV5XFMGpMixvGjcbxgCAkXYIB9s4NDiGkDsj7g96L5FhIrmiGIeaUHa3MvnP22KsH1 8aPEQfxzi13PeuSpuZoUHduMcn1vRAXzbYQagp8mQw21K1de2OTDkh1TnbsfMGylCmnD WyZNaXBjtSeWR9N6kdldpkYCH0+O71qBf3EQAIgHbkx+sxGGRr4Lxq1J3P2s/6aGHTWv 9YgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=a2cqV8s6; 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 13-v6si3193747ple.274.2018.06.26.20.22.48; Tue, 26 Jun 2018 20:22:48 -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=a2cqV8s6; 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 A12BD748AA; Wed, 27 Jun 2018 03:22:45 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-oi0-f65.google.com (mail-oi0-f65.google.com [209.85.218.65]) by mail.openembedded.org (Postfix) with ESMTP id 038E5747EB for ; Wed, 27 Jun 2018 03:22:43 +0000 (UTC) Received: by mail-oi0-f65.google.com with SMTP id n84-v6so514944oib.9 for ; Tue, 26 Jun 2018 20:22:45 -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=I7BbBaoPM2pFUTLq9IEEC+ef8iM+UPa5MIAwJkL8Y6w=; b=a2cqV8s6nvtrapg/hsVXWUvJXnijELQKooi+91aZGpRXJ1R9zwGx3zZzkQ4wwPggOD L+mjOfMJ+XDJDPFVQWMRA2408nZL1Pg4CD80Q0xPkhZYi2hrTxOcBFHxaaabTbN065l0 6sl7BzQ7ribdJgSzdmr/qFPH6KdTJe6iwO3pQ= 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=I7BbBaoPM2pFUTLq9IEEC+ef8iM+UPa5MIAwJkL8Y6w=; b=iGiWjCfOol4VSLguZyFAQdJq+dv/eNTf56HnGRNxiFFXhev1Mz1rkl+vcjBUF1ybfE FDUNQxjHr6SfVwV4vkF6QgtgJPklZqlqmiXcWbdu8Hc7HxW18WTGse3O6CF/b9oIFMkY dqMEapcVvJwLkgxhXE96GAdC7DYYZOVsjtHbXGTZT9PxWfZJCm5+SLNvUNvmStSg6u8L cM1kVveaoinDLc6dBLKmLjliJXyKr8htskJGVKmlmu8l0Ksm2k0TrejnkDDkclGsT1wz nCih7w/jiBDd/z+WwKIJ55A+8DFrmnKzw4jEXsDuZG86nZ4RIA9Z1WztLwN/8zTB6Urm I4Gw== X-Gm-Message-State: APt69E3KCS8fy9fIdT2a1NpIZuGX4kpzgUvA7jB+gOHUeL8M1GuBlc3b P968vVmUknQtAF97k7a32ixpsyaOKJs= X-Received: by 2002:aca:be86:: with SMTP id o128-v6mr2372325oif.301.1530069286662; Tue, 26 Jun 2018 20:14:46 -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 w10-v6sm1580765oif.41.2018.06.26.20.14.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 26 Jun 2018 20:14:45 -0700 (PDT) From: =?utf-8?q?Daniel_D=C3=ADaz?= To: openembedded-devel@lists.openembedded.org Date: Tue, 26 Jun 2018 22:14:35 -0500 Message-Id: <1530069275-25999-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] 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 --- Apologies for sending without [meta-oe] earlier. meta-oe/recipes-kernel/bpftool/bpftool.bb | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 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..887f079 --- /dev/null +++ b/meta-oe/recipes-kernel/bpftool/bpftool.bb @@ -0,0 +1,32 @@ +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 + chown -R root:root ${D} +} + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +python do_package_prepend() { + d.setVar('PKGV', d.getVar("KERNEL_VERSION", True).split("-")[0]) +} + +B = "${WORKDIR}/${BPN}-${PV}"