From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6751292434813026304 X-Received: by 2002:a1f:b202:: with SMTP id b2mr2755107vkf.59.1572025207513; Fri, 25 Oct 2019 10:40:07 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1f:ac13:: with SMTP id v19ls390126vke.7.gmail; Fri, 25 Oct 2019 10:40:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5DsTzFHIuPiz/gQ0/sVXwbhG/rL8u+pojCTNvSS3WuOCJgTu9v7jErnw2Yydi3xJJs/E4 X-Received: by 2002:a1f:acd0:: with SMTP id v199mr2805212vke.5.1572025207107; Fri, 25 Oct 2019 10:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572025207; cv=none; d=google.com; s=arc-20160816; b=Vj4eFTTLNQWuik5EpiRmHtfUf6+Vt2dY0/INKh+pQLAPKhUB3pNy0kYzfo/i08fmxJ ZxeDBsS/GpQHY3DcoPhcAfhe2f/5PkP9ZO8fKk6KuanSj87isJQ+Ele5ztHJCIQU1y26 YT/fSczraYO8XrGNJxe9Nh5g+iIMaxEDDoxtrPtpy6MlHU6NLUUz6RUfyMFi77jerIpK rEQ2FPqsyUgpYVxzk7kLva1QfuogzapVUvO9BVEmVwj7ZXCrk3hqTkrvO1otbAce9WJt 3hPssXY5llDYtXJcjxtu2XpKifhZlrSiVcE2UANWFCQQ0zLjiiQdT3rXbE5D9r3NI2XE xNkw== 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=mllnUy/BbCUlqaTyZBM0Rf0ctyXPszfgHQYvNy0m07w0nAgjxes01zxlYAp3hLAXia s3ohdZQBw86LneBidN7gDUOPt68gb3rz0BJiB99GEi66ow54aMXGa2mJW/1Fvl3W+hDS YPRp4vI3xPwLFvhSCgrxahb+CS3pt+KGQ0X+dwEE/TTFNl4NotKa/fp76FsIaq8tJ6Gh RPtZfluSt/ZvdyhNXXxW+Z1FZXdr95v9J5MrqesrtOOm9Ezt++rrfdUMduffRmQz9qd7 nwW0opi46moPPBFLC8cNjSBKe8XqLaxaGV3o+cbW7Z3wxdF2oD2bRgsRUMqRJLQ2yz/N WIdA== 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 a12si258620vkm.1.2019.10.25.10.40.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Oct 2019 10:40:07 -0700 (PDT) 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: Gm4whR/6ELC24gyrkohJC2k0xsRvkXjS8RuXBS139Nyf9l8dV3sdw1pQCX1x8/rKcX2GfifPJa GA/knWGcFRO1p3migqIU17DBvP/HU9DHjgkvHRiTIXv66S/qgYikpVaJwU9QaB2poJWH0yaSEm XGMZ29XSui+19M0lemzYgAH2MdtizCk389GHTZgBtWUNUREvmh1EGH9NdpevRu77gJCkzEvSPB T++8aAsrKNDwsmbpXdjGlEiUDGQ6Vet4hL3sMBYUw/XZH8QVky8THdVnGTM+2zRa1cbozUkoj2 JrQ= X-IronPort-AV: E=Sophos;i="5.68,229,1569312000"; d="scan'208";a="42599458" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 25 Oct 2019 09:40:05 -0800 IronPort-SDR: l/xfWVWao7OcA1tUE+O2qu5ElpK4xxcuMfs+nHokyK24JKji0yew91aVPlEojCZz9IQswYb4ab FN3AM39/CFtPUCFN29TNY+IEi4PSMwcQajYo/5wGSq0ccYGqSVGNK2qL4UxdM/GdTnmWhjYjHi RevZpP8pkASUE/qAhTePSMWyjVTDyAD52bdxdvPWKYpiyrPcxY2EFmqOHfuFw1ztYNaw5vH+8F N0UZAdWlSvoUNsL3gwfhg9OWHSjlmcGWAAJrzaQy4SazNM96YA7w+2tNuw+8i3aWl1ZbJjRLLI a28= From: Cedric Hombourger To: CC: Cedric Hombourger Subject: [PATCH v2 4/7] linux-mainline: fix stripping of .0 from the kernel version Date: Fri, 25 Oct 2019 19:39:11 +0200 Message-ID: <1572025154-1312-5-git-send-email-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1572025154-1312-1-git-send-email-Cedric_Hombourger@mentor.com> References: <1571907744-1121-1-git-send-email-Cedric_Hombourger@mentor.com> <1572025154-1312-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-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: t9U5Nff5ApCz 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