From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6755821036247187456 X-Received: by 2002:a5d:87d7:: with SMTP id q23mr2440584ios.304.1573118658298; Thu, 07 Nov 2019 01:24:18 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a92:d210:: with SMTP id y16ls1055178ily.11.gmail; Thu, 07 Nov 2019 01:24:18 -0800 (PST) X-Google-Smtp-Source: APXvYqxLWbGj+yHY1bvEZ9GFei/2xh2cnj83E5qzxtWDPAtWe40MiBnsT8iSqrbURFuYAohWy3TJ X-Received: by 2002:a92:aa48:: with SMTP id j69mr3240509ili.162.1573118657987; Thu, 07 Nov 2019 01:24:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573118657; cv=none; d=google.com; s=arc-20160816; b=Gg4zkneRg0m17sjO3jV8Lx7qa2Gv8gG1I6fVK7KpQVwaOMA8gn30jQQlpv6L7IysCi EN0iUa2WeG+aA09XUB7Ndr5dHXE1XqhIkpaR8HgHZZe677+mfMcGO+ZvtRLkIidbY0lM Qxl2+mjUXWrsXYFXLgzpn5m6P/A5W51u6pTCYeywmcUpPXzjiz3+3o8hEn807JUbPDsf mKtyTa/A3gkZ3LsR2iSJCh/N+h1ynYKgXWCcmGHm4DyWvGuuiog5jm5tQQYE0fVB65h6 NwFich8JF3IiMQPx6y3g7/OxAUfY+UQYvr81Yz/iMtXfggGZY5SIvj1qeIkVLikflqh1 Jrpw== 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=iNsOuJ96gU6RHANPKlmLdAes6nQXT0MpcfH4Jt2/kJkD+H7v/sMOxeSdYy11P+x/0k E1QRFlXpdPOB8+aaXy7mxHJpe/vYRKnySgCme38PkCL23xSghYFaDnRdBhBDpnUNsEXo Ehg0KNLpdQTYOKsY1eCqIcoBMqyF4yjJe0lE4LVrWDmteqVJ3nCHhZ9SA4mQGhuBXwjA Yw3zuzKZNAjLPOWwXd3tylvwSd86VqzZad0vKgQknanakzJMoQLKxTTMbe0+NNJjRZyV 4DN3TXjiU60714XovCavxNdLPh//DhB5E0TXf9hQkatUYvgKFJvTSjADA4piNV8DLKex a85A== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.141.98 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com. [68.232.141.98]) by gmr-mx.google.com with ESMTPS id n6si87621iod.3.2019.11.07.01.24.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Nov 2019 01:24:17 -0800 (PST) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.141.98 as permitted sender) client-ip=68.232.141.98; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.141.98 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com IronPort-SDR: /ExWjfe1R38Jff8gJsEGN7ES8nacpczy9CkjAcmclSgQ92/Q+djrYBwo8b32NSMfH51cw89kO/ Tj1PQKyyasGHwpcaB8PjsK0cDp2BXJ2FmKL2m2zff4QvvYgBl6ssh4s4ZqqGqpshYgQm5sbuTN MOd/7nDxt7fg6+04FxtvzVBmE8w7Bci8YEgSFQPrqvYNSIbEK50jGXkyU3gSh1uR+A8HnmRZ8r cR0m95zaS7TkN7eVNeuGK5HCW6DnSF0EIsPTlQ+w0p4Mmm1ca/4wGvsjJbPTJ5spjLNTDGVHlo KXY= X-IronPort-AV: E=Sophos;i="5.68,277,1569312000"; d="scan'208";a="42888826" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 07 Nov 2019 01:23:59 -0800 IronPort-SDR: 1HBa8E7oUH5kB2Z39Pw1DJwTxIG/l8pcVZxwdPf5FbVq1TKTy0Eq7Bi5Tto6mc4af4vfNVDPQ/ likBUN+i7Iz8d86Na+Pi8JokZS5Xq5xUtegrg1PLBPcio4DdPcBD8EyOScp2eV6hSXASQijK3h lAxKusNJnSQnvTFXYUjhVhcx2zM4xD2t6FvcM+VLIELJfOixckWdU+fPbIYfxAY0pZl0YNyn+G 41/U6x6PUZsow3tzp7ben9XAra53wze7kebXTOBszR8Fjv6+VszjjRisccsYHGWV18PYY1T1Pw M70= From: Cedric Hombourger To: CC: Cedric Hombourger Subject: [PATCH L-C v2 2/7] linux-mainline: fix stripping of .0 from the kernel version Date: Thu, 7 Nov 2019 10:23:19 +0100 Message-ID: <1573118604-909-3-git-send-email-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1573118604-909-1-git-send-email-Cedric_Hombourger@mentor.com> References: <1572962145-318-1-git-send-email-Cedric_Hombourger@mentor.com> <1573118604-909-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-02.mgc.mentorg.com (139.181.222.2) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: 6YT2wmHl91Br 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