From patchwork Mon Jan 31 21:11:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Monnet X-Patchwork-Id: 12731213 X-Patchwork-Delegate: bpf@iogearbox.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0FACC4332F for ; Mon, 31 Jan 2022 21:11:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236798AbiAaVL5 (ORCPT ); Mon, 31 Jan 2022 16:11:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbiAaVLz (ORCPT ); Mon, 31 Jan 2022 16:11:55 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BF05C06173D for ; Mon, 31 Jan 2022 13:11:55 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id u24so29249767eds.11 for ; Mon, 31 Jan 2022 13:11:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=isovalent-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zQmEESnjlSoQ6wiVFz0EdUVr4f3octanu8GZ1I2hj7A=; b=ibPN07agU2xjkpXfEt4RUAeRveUqaY7j467Yo5MV/C5b7OMJLNJiUFaVmxpzBXh6ZX n0pzuj+5niGaDqMqwgleSgFpombppYAcnDC/qsYW7MGU0UqHbPGtnzzyP2eJsR2e5lvk bvhgKC40exea1k8OmWXATg1LxKOouG575jpQz89oLtTc9eVQP+Fm/oxK7XktvWb+1Fzw miNR8Qmg7GKzA9cqFq+J4xvcnX/B2lg/RyH9c2D4ijWfR9Juu/t+brDdlqDhXRiBagBh 1l06CosiUV7QBFBfr7NQ9T03JDF5s9d0yLszFdxINzmOSxHFbo3PB+j6A/FAmkPjUgcw Zlkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zQmEESnjlSoQ6wiVFz0EdUVr4f3octanu8GZ1I2hj7A=; b=YvL4eBBPJXUAWFlhVM7C9lUdty46GpGFD0roITf1N1M2xBE9k/WDTWU9bszG8PmlBr vjk+49qVnYu4QX4RG7Na4qbFmeSUn1lyKThyBzxT6lCDlwW9OTe1rno3D6+r2r0CKl57 faeLL8k7YDv4O/iV829wN1hX2RlfaOV5tawoj0Vb9k8FOTydI8OPbDcwSxNqovJjnfsc haQ04ExJSVTiltnpoHizmRSsJkabUoJW1Hkq7rbe/X0N2MF8ZoT5ukfEJh2oS292bnCS nAULly5S/BcC9R31zQPx+zUvkK9Qjte5+Lh2cyquGHkopv5iWo51hvNDFRupXVhwgeKB YoDg== X-Gm-Message-State: AOAM531lSadH62LtISsQX3gXhAV9SRLNNL7Qj9ZY74BfqSedj5e5FNHL 8TfWqP0zYjs1BKR60+z0DMKtYA== X-Google-Smtp-Source: ABdhPJx18y/ZLW9TWk0doHqtxu4inrDSaXfbnH+jfGdtLSyO3S0aPQHgPgQnw9DNH2v3MpGqY7HU6w== X-Received: by 2002:a05:6402:42cd:: with SMTP id i13mr22001683edc.121.1643663513756; Mon, 31 Jan 2022 13:11:53 -0800 (PST) Received: from localhost.localdomain ([149.86.79.138]) by smtp.gmail.com with ESMTPSA id v5sm13763947ejc.40.2022.01.31.13.11.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jan 2022 13:11:53 -0800 (PST) From: Quentin Monnet To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, Quentin Monnet Subject: [PATCH bpf-next 1/3] libbpf: Add "libbpversion" make target to print version Date: Mon, 31 Jan 2022 21:11:34 +0000 Message-Id: <20220131211136.71010-2-quentin@isovalent.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220131211136.71010-1-quentin@isovalent.com> References: <20220131211136.71010-1-quentin@isovalent.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net Add a target to libbpf's Makefile to print its version number, in a similar way to what running "make kernelversion" at the root of the repository does. This is to avoid re-implementing the parsing of the libbpf.map file in case some other tools want to extract the version of the libbpf sources they are using. Signed-off-by: Quentin Monnet --- tools/lib/bpf/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile index f947b61b2107..e3a1ae7efa33 100644 --- a/tools/lib/bpf/Makefile +++ b/tools/lib/bpf/Makefile @@ -108,6 +108,9 @@ MAKEOVERRIDES= all: +libbpfversion: + @echo $(LIBBPF_VERSION) + export srctree OUTPUT CC LD CFLAGS V include $(srctree)/tools/build/Makefile.include