From patchwork Thu Feb 11 14:25:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maciej W. Rozycki" X-Patchwork-Id: 8280551 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4B9BC9F38B for ; Thu, 11 Feb 2016 14:26:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 68BDF2039E for ; Thu, 11 Feb 2016 14:26:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5323820306 for ; Thu, 11 Feb 2016 14:26:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751759AbcBKOZr (ORCPT ); Thu, 11 Feb 2016 09:25:47 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:16341 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751153AbcBKOZq (ORCPT ); Thu, 11 Feb 2016 09:25:46 -0500 Received: from hhmail02.hh.imgtec.org (unknown [10.100.10.20]) by Websense Email Security Gateway with ESMTPS id 9652F6A19AB24; Thu, 11 Feb 2016 14:25:42 +0000 (GMT) Received: from [10.100.200.149] (10.100.200.149) by hhmail02.hh.imgtec.org (10.100.10.21) with Microsoft SMTP Server id 14.3.266.1; Thu, 11 Feb 2016 14:25:44 +0000 Date: Thu, 11 Feb 2016 14:25:43 +0000 From: "Maciej W. Rozycki" To: Ralf Baechle CC: "Michael S. Tsirkin" , Michal Marek , James Hogan , , , Subject: [PATCH] ld-version: Drop the 4th and 5th version components Message-ID: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 X-Originating-IP: [10.100.200.149] Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP ... making upstream development binutils snapshots work as expected, e.g.: $ mips64el-linux-ld --version GNU ld (GNU Binutils) 2.20.1.20100303 [...] $ Signed-off-by: Maciej W. Rozycki --- It may well actually have been a release mistake with the proper 2.20.1 maintenance release as I reckon the development vs release build switch is a knob that used to require to be flipped in the sources by the release manager; maybe it still does. Either way this version guarantees all the 2.20.1 stuff to be present as the version number is only bumped up as a release is being made, so any prior snapshot would report 2.20.0.20100302, etc., or maybe even 2.20.0.20100303 if made earlier on on the same day. So please apply, or anyone is welcome to improve it, as my limited awk-fu (which I'll be happy to get corrected) tells me the script doesn't really terminate parsing on a non-point-non-digit character. NB comments in scripts/Kbuild.include around `ld-version' have not been accordingly updated in the course of changes made to `ld-version.sh' and they still need such an update, unless we right-shift the version code calculated back by 4 decimal digits, which I hesitated doing here for simplicity. What was the original reason to add the 4th and 5th components? Maciej linux-mips-ld-version-fix.diff -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-20160211/scripts/ld-version.sh =================================================================== --- linux-20160211.orig/scripts/ld-version.sh +++ linux-20160211/scripts/ld-version.sh @@ -5,6 +5,6 @@ gsub(".*version ", ""); gsub("-.*", ""); split($1,a, "."); - print a[1]*100000000 + a[2]*1000000 + a[3]*10000 + a[4]*100 + a[5]; + print a[1]*100000000 + a[2]*1000000 + a[3]*10000; exit }