From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6755821036247187456 X-Received: by 2002:a17:906:1c07:: with SMTP id k7mr23306152ejg.229.1574697925504; Mon, 25 Nov 2019 08:05:25 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:906:590b:: with SMTP id h11ls5832927ejq.10.gmail; Mon, 25 Nov 2019 08:05:24 -0800 (PST) X-Google-Smtp-Source: APXvYqy1JYtjAdnpk7+REXQk9QhQYo5yPvFEceRO3bnfvd2EqIPAfuhOTshu91MwbjVDVWC0UK8K X-Received: by 2002:a17:906:5a83:: with SMTP id l3mr38254270ejq.194.1574697924831; Mon, 25 Nov 2019 08:05:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574697924; cv=none; d=google.com; s=arc-20160816; b=0jsrVbsr6ZdpPC4HwcLmQNZLjtPZ3q8OjwFUP9dqY0A1A+0JRAPU18PN76bEqt3o6K y/NPRLGtRDQh94sFcYq1yyR1VRq2+0eXcbmwD/Uc6PzQxGQacdsw0vrIy4xiSONuDTWS XKtrKse2uXejVA5zSEgIT3ol1OFFAJLf+pJhxF3iMEXmtrA4czmXTunperAIxO7B1bVA Pl94pTUJ77MfEYnwX6m699DNlUOqpcaQtuC7Cs103KnZ1/iaYtF8/fWDoW7S8MtoKYig 2LRioBy854oWeb7j2JqmHqtJmBff65IO+O8WCPTWxtBIRwZBZT9B7Ag2JEMpqApKpZzs n0pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:ironport-sdr:ironport-sdr; bh=lUoG51Kurb35q+/vxLRUTP+DlxOFR6hAmcLumQ9KS+E=; b=QiYjcMy/0nS7TjC0w1PrV1AVwR7iRUG9zeV+mOSQrSyGmllGLwokX52fPATFEFZ8fE yzq673A5FYM9Ib3uOcMnkET1M68OwgEMKGCr7YeqaTP8APgXedkP1KqdpRA1AL65N8vM 79IHv7P9pIHf0WwpdsEpt8iPZSBZvl3y/LFbMEQHDL4zpWbRsSSMBcM7EJnRsVyk3p6s aCZwVm1a13IRbk0/kvoi9YeauNTz5f/qgO9yG0VzSvnNqyNYJ3G6Vta4UWNbaS76AFUW RQLTL6kq1MEVwmNWzCtu7kE0j0RP0dfNLKOMrsWEyeF8sMl5Mb1vH2DsWmdWEfKYs6dh eVLw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.180 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com. [68.232.137.180]) by gmr-mx.google.com with ESMTPS id n21si347614eja.0.2019.11.25.08.05.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Nov 2019 08:05:24 -0800 (PST) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.180 as permitted sender) client-ip=68.232.137.180; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.180 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com IronPort-SDR: fPDiW13xhy+qlz3mMBYv40PPA6VUt6oVINvTFPHUaGEB/wxHAgn8BPWJTeGDq1zHid3qrSqhaj mlzYXPyh+17a/RzP0JsPwrg32rXkmECs0/2CumaLHYok4XE9nnDpmIaB4uwcBxAU9zHfgcf3Aw zzah5a0d4q+gCN1ma4YCNmLwZnJ+vzDI/qMMAisgDrSUHnjMcutPJnNt7FNV7JJwFy9TLwk5Om i+5EzjTiY0ykNc23/EZY1ebJ2zTNxFLKmwBuLHUEMWyi7voRnrM1t75sqQlUCqJGRBH2cl5Jtj YPE= X-IronPort-AV: E=Sophos;i="5.69,242,1571731200"; d="scan'208";a="43486764" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 25 Nov 2019 08:05:22 -0800 IronPort-SDR: hPeGzFa/6vGv0KIh2eu5kC+SZX9OyL6aK1xAYcnZDtwrUQTYnGiqVHPbUBuBZ1mOpieScGEGu/ zXNNbjzjq5LCgrPRPch0PxH3hHADtMomTTAHLqWQbahDBDdfSQ1EFAtRs9j01ZdGpxCjy+zCgt 6n3ms27jeThkoXbUz0wGf3FHRpTZk7L6GDkPGs7AWJMLpxvX/TIzTeo+641mBmZC5tr1YIvCbf wzC1CwUc24gMuwPlY6IvsSmpSzvQaUQFwd2LiF8MmNHpvWccpuJwwzBihFaUs563e49HoY5wJU q6c= From: Cedric Hombourger To: CC: Cedric Hombourger Subject: [PATCH L-C v4 2/5] linux-mainline: fix stripping of .0 from the kernel version Date: Mon, 25 Nov 2019 17:04:51 +0100 Message-ID: <1574697894-825-3-git-send-email-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1574697894-825-1-git-send-email-Cedric_Hombourger@mentor.com> References: <3c232836-fc03-b784-33e2-cc21393dfad7@siemens.com> <1574697894-825-1-git-send-email-Cedric_Hombourger@mentor.com> MIME-Version: 1.0 Content-Type: text/plain Return-Path: Cedric_Hombourger@mentor.com X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-07.mgc.mentorg.com (139.181.222.7) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: 7NrmnW7X07nv The strip() function was used to strip the trailing .0 from the kernel version since it is omitted in the upstream archive file names. That function is actually taking a character set as argument not a substring. This was causing ARCHIVE_VERSION to expand to "4.19.8" when the user provided version was "4.19.80". The inline python code was changed to check if the version ends with ".0" and only then remove the last two characters. Signed-off-by: Cedric Hombourger --- meta-isar/recipes-kernel/linux/linux-mainline_4.19.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-isar/recipes-kernel/linux/linux-mainline_4.19.0.bb b/meta-isar/recipes-kernel/linux/linux-mainline_4.19.0.bb index e50e149..127f6e2 100644 --- a/meta-isar/recipes-kernel/linux/linux-mainline_4.19.0.bb +++ b/meta-isar/recipes-kernel/linux/linux-mainline_4.19.0.bb @@ -7,7 +7,7 @@ require recipes-kernel/linux/linux-custom.inc -ARCHIVE_VERSION = "${@d.getVar('PV').strip('.0')}" +ARCHIVE_VERSION = "${@ d.getVar('PV')[:-2] if d.getVar('PV').endswith('.0') else d.getVar('PV') }" SRC_URI += " \ https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${ARCHIVE_VERSION}.tar.xz \ -- 2.20.1