From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6755821036247187456 X-Received: by 2002:a9d:2ac7:: with SMTP id e65mr7140960otb.321.1573196955625; Thu, 07 Nov 2019 23:09:15 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a9d:32a4:: with SMTP id u33ls1815936otb.16.gmail; Thu, 07 Nov 2019 23:09:15 -0800 (PST) X-Google-Smtp-Source: APXvYqxDcnByVW3GndAL4tTDC3r3Tqo8wTmREUowpMGN+EWrH9JVt64PnZAWl6Bf13635Z+9F5bM X-Received: by 2002:a05:6830:2255:: with SMTP id t21mr7055758otd.19.1573196955306; Thu, 07 Nov 2019 23:09:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573196955; cv=none; d=google.com; s=arc-20160816; b=IK8BNJPwhqJyyvmDtQk/SWj7sQGj9IsxdjYWQ8E91ntaVBLkzBo6P+VkIztytM1/Vl pbM5TYExOtZIlCb06nSsrgF/carJuLhlBxJ0kZN49YWOrAEI6wZY9fWsfsRivDu250BL FrY6YSDu+3qmUW5UXUeF0dg3zy/rayvpDsNcXDni30lV3mm/GIXI2fFPunv9QaVKPWPW 6NQ1KtHAqBnHqNrRwOEPqeU9mNwE1Wd2xWbV5kCl3C+1SukAMwzt03xZJCzyKojk26aT aE9PmtvgiKR9TIGhteIaVoOHcsGqoBx5xPPeLLk+O8mRASFq9TdbExnU6HqPETewCCW+ XDJg== 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=M/oqiG3hVQVFzg5C9liwv12BVP7Vr06cGnPVr5I3kn3I9YUboD0kTHw3FgWdU7/q2u Qed7Z8IOB4l3Murs2PNsQlGFHAqmn7qzT/Smn9rEZPDYS13ymimBhYoT88cpikK1u1KH qtlzizWQ0R5xcZHkA36OVEkhGongTC0kmSO+iAvRziDLYgHkG6LKtu/hlEWfQPISZNII deQKF6RJPbI9KB2/lWxjyFkKmYPD4u599kr2um9eTZUPzItyfk3N1zbqLhZSnAtlg3zF KMdIDZGnmgr5NaUaegoXxCURxiKUQDwOoZTzSL7tLtsmbyAwSIBrRkwkOxxOyJMy4qWV Xqbw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.129.153 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com. [68.232.129.153]) by gmr-mx.google.com with ESMTPS id n63si305679oib.3.2019.11.07.23.09.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Nov 2019 23:09:15 -0800 (PST) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.129.153 as permitted sender) client-ip=68.232.129.153; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.129.153 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com IronPort-SDR: KYWesY8UCbjwc3NWijTR/iwbCmD33z4konP+MUjUJ8K9VGWwcBI67JeZ3+om30gK1pwdllCVTg mrEA6/ioV4T3258g56uEPc3htUxz2ejZUDLAPV7l8AeGTeHNbXe+SNf1XaVeeiknQqJpPWWR0d QSSX1GOclHVF/ABPHmYqLg03/gepiDqpBKetsJ2eoj3FCNewH2bsGYBZkv99avvZq0GfdjZhpr SodECAkdSOumwZ2mt+fdr4/7IE7i/+nbTsqxBzfoqW17C5cJoPdLsW2K3akr9HLfv2KosM9jAm xfY= X-IronPort-AV: E=Sophos;i="5.68,280,1569312000"; d="scan'208";a="44844088" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 07 Nov 2019 23:09:13 -0800 IronPort-SDR: 6gar/8Dfpm9aO+zWa1ZCvLn2qmncSYGOPwPJyVLRh7846Z5inQDNn/3ksBZch8s3Wx+eZ6dz0e 1DAhboMpfOU+LkdlkWuu8nul/f5AHDlPkUdPYG6rpoxN2fFkoQ6Q6flRCxl3sBkgGrAT+NMA5N wo4jRyHjlTAwN7pNxC5dm1STKig3OC5LMjK1ffKcE990HX4RXXnla1eWsx/xjypZeMJD7qftUP blfVKVkisSye1eWgjvt7Mbf3HsZqxH9LLeRvGrUVApFf6HEG2MrV3nPYeBxaHTranj/IN/Yl8m 36I= From: Cedric Hombourger To: CC: Cedric Hombourger Subject: [PATCH L-C v3 2/7] linux-mainline: fix stripping of .0 from the kernel version Date: Fri, 8 Nov 2019 08:07:14 +0100 Message-ID: <1573196839-1143-3-git-send-email-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1573196839-1143-1-git-send-email-Cedric_Hombourger@mentor.com> References: <1573118604-909-1-git-send-email-Cedric_Hombourger@mentor.com> <1573196839-1143-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: aUiEpFUR9L6V 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