From patchwork Thu Oct 1 14:47:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Voss, Samuel M Collins via buildroot" X-Patchwork-Id: 1375120 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=busybox.net Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=distech-controls.com header.i=@distech-controls.com header.a=rsa-sha256 header.s=pps-02182019 header.b=Q6RdYaTE; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=distech-controls.com header.i=@distech-controls.com header.a=rsa-sha256 header.s=selector1 header.b=ZOb/d8I6; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C2GFc2KjBz9sPB for ; Fri, 2 Oct 2020 00:48:04 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 010DA86B84; Thu, 1 Oct 2020 14:48:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZxJR3CXmVeUH; Thu, 1 Oct 2020 14:48:00 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 594E186B72; Thu, 1 Oct 2020 14:48:00 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id E57541BF2BA for ; Thu, 1 Oct 2020 14:47:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E1AEA86A1C for ; Thu, 1 Oct 2020 14:47:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9bBU2EhbtdlY for ; Thu, 1 Oct 2020 14:47:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mx0b-002ab301.pphosted.com (mx0b-002ab301.pphosted.com [148.163.154.99]) by whitealder.osuosl.org (Postfix) with ESMTPS id D849D86944 for ; Thu, 1 Oct 2020 14:47:57 +0000 (UTC) Received: from pps.filterd (m0118796.ppops.net [127.0.0.1]) by mx0b-002ab301.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 091ElL20008886 for ; Thu, 1 Oct 2020 10:47:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=distech-controls.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pps-02182019; bh=ef3lddL9reQVsLJELs7Nv9cQrspVmEBF3Hu9cwFhH3I=; b=Q6RdYaTE3ZSS06ra8YuB60dmiRZmKgQbRt93Sz1ArmJ5EgQRcs7Bt93skTOWpbS/1mra 3QY2OKshBzU1JaLY4Y3UmhEyk88uPt9AtUc5BDxV1ObltlAn1dwvw8Ywdxc+dNnXphJO /m3nObVcdFJ1nuNgGANz3ixbkcvkZxLYOtUj2B1sy/lT2/lfAFM4h/XjE6It72Qu+RNV W7vtXbrCm5o/xjU19xgU4AecFUbzVK3J0zqsJtgS3wG6uc1OlHZHV+qoBDU48DlycECj yzD0c0F/civr/FBbhWp5fW41QqMd27HIfEwOILyD/fJ+FnHI3p1R5yDzU55vhyyRS7IA Ow== Received: from nam04-sn1-obe.outbound.protection.outlook.com (mail-sn1nam04lp2056.outbound.protection.outlook.com [104.47.44.56]) by mx0b-002ab301.pphosted.com with ESMTP id 33t18vvfcm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 01 Oct 2020 10:47:56 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=anaswCNw302rU4Fjhwo6VUM4RMUxXhsDlvCYLtCN1yMqtXgxXTMhKvR4nS5P4mrprMe2yteXu20TyFguxgvaaBx7TdJnp5rwk4rOy0Vf9Ml8cONAO2wXQzCyr8r6Es3QhBri1pI0EWi6Jx7p6UvmIfxWg15CUz1EOur00wDh446lKnx4Ra2J8/U9Mw+wBoB2Q5rxEbX+upBezwbkNvJ532ghJ2fVyZv0XkDMYOLoUb6M4Cv8xBRxg7bR15KnOnDwBrr92WRIFy0dQANipYyNsxkH/UwGe3tjRXuBeX5eoy/bHPjU7vFG+EzE12J/JXSnK9jG9tiOcjqpGUdyllTKOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ef3lddL9reQVsLJELs7Nv9cQrspVmEBF3Hu9cwFhH3I=; b=C+rQXF6XpccjqNVV8uKI8rZ+00/CcgSSOV3FpKy6DsMqV1ZmFLqc5QLURoVgPVRZJ1YpO6cqvRihX4t7SRRJVZMVRu3CJjYGACoVu/h/SxNUKcAICiLzJx+hc3iDdZciGvjJIUfQve3Uhnl9I/Y/biaIqgO/SKnEjbqlBVlRLuPL8KWjJZgYL0vzTX62nKSiLwqZkLnMwY0eiAkuPKEAz8Op6vPA7AIM4q04lpTxqYFu/kjv3wAENhEloY5rnzFVvgG2H+OE+mgKwaDsRCj3G75MkmpIKMlRHuse/iFHUw9BG51C287unO/HfGrd6F24+rGezrVjQIWY9i6/glhSdA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=distech-controls.com; dmarc=pass action=none header.from=distech-controls.com; dkim=pass header.d=distech-controls.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=distech-controls.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ef3lddL9reQVsLJELs7Nv9cQrspVmEBF3Hu9cwFhH3I=; b=ZOb/d8I6SBZ36kD/fvfUyJH5b07jdgWHydjeiW5XZjs+4fWmr79UD6Q37gLNaNvQJpoNKokqWIYeWyv2Quu4miJLoh0iOPa1dWlGUQCkPAPs3EN1N+bQs5Zxo/MCPQxtlR1Gfp+ApiFe3fyUufQSpKVr0vuu9dnNWQ6Fy1m3A/w= Received: from DM6PR01MB4137.prod.exchangelabs.com (2603:10b6:5:2a::30) by DM5PR0102MB3576.prod.exchangelabs.com (2603:10b6:4:a4::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.32; Thu, 1 Oct 2020 14:47:55 +0000 Received: from DM6PR01MB4137.prod.exchangelabs.com ([fe80::1cba:c332:100d:2efb]) by DM6PR01MB4137.prod.exchangelabs.com ([fe80::1cba:c332:100d:2efb%2]) with mapi id 15.20.3433.038; Thu, 1 Oct 2020 14:47:54 +0000 To: "buildroot@buildroot.org" Thread-Topic: [PATCH 1/1] Get git version and transfer it to build target Thread-Index: AQHWjQgCaJ1hhynlEkabCcqJ8wQ766mC6WFg Date: Thu, 1 Oct 2020 14:47:54 +0000 Message-ID: References: <20200917153353.8824-1-etouhtarian@distech-controls.com> In-Reply-To: <20200917153353.8824-1-etouhtarian@distech-controls.com> Accept-Language: fr-FR, en-US Content-Language: fr-FR X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mib-plugin: true authentication-results: buildroot.org; dkim=none (message not signed) header.d=none;buildroot.org; dmarc=none action=none header.from=distech-controls.com; x-originating-ip: [92.137.19.212] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: f32a8d4e-66d3-4cda-a595-08d86618fb0a x-ms-traffictypediagnostic: DM5PR0102MB3576: x-microsoft-antispam-prvs: x-pp-identifier: acuityo365 x-ms-oob-tlc-oobclassifiers: OLM:747; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: uzpWPJKDefGVStveH9uFEgR80jNumumqhSdnMy2W8c+lMYaFNqBolsVNYI9oPxfbcAs7TUJwLC0l2yXqnprihTI+MQjA+2oP7H+8Kn/W5g75uC315gaYYmydVyexhBb5Py6+zF2D6fKKkg63lvo20o017lntOPjfVd4qfQZiIy/40bVgz1RrG0d9Q2lIQOfiHSVnSaVkoLRf5n3Czk8SnOOZe1EY5+lEK/fMVvf3nPF4FvU7Bw2UVfrZkpdCtoEM0XKLZJ26KHk/weTeEL9z/q36rqxrGzUTO0yvYRgHA931By7npTSiC+sDlMbCpjPF x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR01MB4137.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(366004)(376002)(136003)(396003)(346002)(2906002)(316002)(6916009)(55016002)(4744005)(8676002)(86362001)(186003)(7696005)(8936002)(6506007)(26005)(52536014)(5660300002)(478600001)(71200400001)(66946007)(66556008)(9686003)(66446008)(33656002)(66476007)(76116006)(64756008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: S3++cAaW4Hjo5JAkV6P7hKBDT0CUiXvlYEji1TpysX4Mp+t4ATsfN3jDx/A0q5nhZpc06NOkClZMFrNh28xsVw5NHtHx0oZwZ9JSQAcpG96m6Pi1lGVNUANDcDXRFwmyQePyx4Otxyw0NgO8c1QkWNFz+lddLXR0uy1cQb8eqdga5KNeyatj0GvdrELQgvwxG1GkiM/4WUhJT8SJnksJaW4Z+Eu5vwaWxFzCHzzgCbtnBEBnoxhnWh/lz6sCF8SvKAd3pM76L67uhQfBxQHdq3P5YeEpRf5zO6C7BHfmYjNbKalxoooiNj1W66Uz/ky2TVgmAEq/mLFajRJ9wri2VYom5VfYI7N+n9HqUAIqDmgwwR9O40RbX/yyLGn5u3RZvrdQlygDNX7zYwANAmINwJv+MU3/txdaftRZ/qbZ8Gzbul3Zpj4Mu9R/iAhToWkY4K+dMLXnd1cDBRNDDf17pvvQbOfEgiIIAc7sZ60RyaHh0VQlwaIVXyBrC6N8bH9LNCLxpq5cd/7cRk7CjTaKBpH2SsWG8ZvPaC9wDYEcNe4CR6ia9FKNkONElJD//Emafax55HLbThkhWEqAnFzKso8PwpP8QZsp4OaXV6LFbKVcPOY4r8wJ/1jwzneGbzUT76pFacZWG7qz5s0tsXaBPQ== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: distech-controls.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR01MB4137.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: f32a8d4e-66d3-4cda-a595-08d86618fb0a X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Oct 2020 14:47:54.8575 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: caadbe96-024e-4f67-82ec-fb28ff53d16d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: pEZUZ38/cfBYYIPeAMAkyjumjY84LKI4jSMGcITmJ4a8IUPnj9jcjLafqVZDfX/SOsEHsQ31lta1k/ZPJHDXrQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR0102MB3576 X-Proofpoint-Processed: True X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 suspectscore=0 phishscore=0 mlxlogscore=925 clxscore=1015 priorityscore=1501 lowpriorityscore=0 adultscore=0 malwarescore=0 spamscore=0 mlxscore=0 bulkscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2010010128 Subject: [Buildroot] [PATCH 1/1] Get git version and transfer it to build target X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: "Touhtarian, Eric via buildroot" Reply-To: "Touhtarian, Eric" Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Eric Touhtarian --- linux/linux.mk | 7 +++++++ 1 file changed, 7 insertions(+) buildroot mailing list buildroot@busybox.net http://lists.busybox.net/mailman/listinfo/buildroot diff --git a/linux/linux.mk b/linux/linux.mk index b9f2052ee7..36f98dd704 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -538,6 +538,13 @@ $(error No custom repo URL set. Check your BR2_LINUX_KERNEL_CUSTOM_REPO_URL sett endif endif +ifeq ($(BR2_LINUX_KERNEL_CUSTOM_GIT),y) +define LINUX_GIT_VERSION + $(TOPDIR)/support/scripts/setlocalversion $(LINUX_DL_DIR)/git > +$(@D)/.scmversion endef LINUX_PRE_BUILD_HOOKS += LINUX_GIT_VERSION +endif + ifeq ($(BR_BUILDING),y) ifeq ($(BR2_LINUX_KERNEL_USE_DEFCONFIG),y) -- 2.17.1 _______________________________________________