From patchwork Tue Oct 27 14:29:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 536643 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id E8A4A141368 for ; Wed, 28 Oct 2015 01:29:37 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=poo0nJY8; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 0B92A8B1EF; Tue, 27 Oct 2015 14:29:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8R4rx5n94Cnm; Tue, 27 Oct 2015 14:29:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 048638AFA3; Tue, 27 Oct 2015 14:29:36 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 979C01C1041 for ; Tue, 27 Oct 2015 14:29:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 939DA8AFA3 for ; Tue, 27 Oct 2015 14:29:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wD1oSt92Xbw3 for ; Tue, 27 Oct 2015 14:29:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by hemlock.osuosl.org (Postfix) with ESMTPS id 6DFF28AF2A for ; Tue, 27 Oct 2015 14:29:34 +0000 (UTC) Received: by wicll6 with SMTP id ll6so162398014wic.0 for ; Tue, 27 Oct 2015 07:29:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=5YT0sXx/4iVV/nXTpjHEZUFdbd9KnuVlFe4pgbDcfUQ=; b=poo0nJY8cknJatxVykAU5QeBkfn72GkU2C7FtM6YfW60mJZz9IuB+I0bXAw8dL3bRQ VhSN8Fp4pKW7Fh8O8Agb9j/1qXAxBH1lLXQ5juEZDYzXNaROKynDYANwK1xm9yTXZ8+F +NGbCJzQrOj4b2iTHriU7DksOZYLRE+8r5A8tYi2n/+qqw/SwVr/JfDFpypZBuU5WYmI 9Hsl0T+Egw6uYtsGcY3beXL2XJSs6ZUPbpPkr+XilJYpXDMrTg0Rt4s4XODBqbfNtuga uioEZb924p2DyLjj6WmklJ9Mo/u4BLQ81XZJQFWQrTHd/0TAphjDhJ4fDz/XmGQ1fhgc z3ag== X-Received: by 10.180.11.196 with SMTP id s4mr13201690wib.33.1445956172812; Tue, 27 Oct 2015 07:29:32 -0700 (PDT) Received: from gourin.bzh.lan (ns304657.ip-46-105-103.eu. [46.105.103.66]) by smtp.gmail.com with ESMTPSA id mb12sm1477926wic.15.2015.10.27.07.29.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Oct 2015 07:29:31 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Tue, 27 Oct 2015 15:29:27 +0100 Message-Id: <1445956167-11122-1-git-send-email-yann.morin.1998@free.fr> X-Mailer: git-send-email 1.9.1 Cc: "Yann E. MORIN" , Peter Korsgaard Subject: [Buildroot] [PATCH] core: add a 'make version' rule X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" We often ask people for the version they are using when they ask for help (either on the list or on IRC). Some of them do not even know which version they are using. Add a make rule to dump the full version string. Signed-off-by: "Yann E. MORIN" Cc: Peter Korsgaard Tested-by: Vicente Olivert Riera --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 853d185..3cf0c0c 100644 --- a/Makefile +++ b/Makefile @@ -88,10 +88,14 @@ DATE := $(shell date +%Y%m%d) # Need to export it, so it can be got from environment in children (eg. mconf) export BR2_VERSION_FULL := $(BR2_VERSION)$(shell $(TOPDIR)/support/scripts/setlocalversion) +.PHONY: version +version: + @echo $(BR2_VERSION_FULL) + noconfig_targets := menuconfig nconfig gconfig xconfig config oldconfig randconfig \ defconfig %_defconfig allyesconfig allnoconfig silentoldconfig release \ randpackageconfig allyespackageconfig allnopackageconfig \ - print-version olddefconfig + print-version olddefconfig version # Some global targets do not trigger a build, but are used to collect # metadata, or do various checks. When such targets are triggered,