From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6755821036247187456 X-Received: by 2002:a17:90a:9201:: with SMTP id m1mr7031393pjo.42.1572962175761; Tue, 05 Nov 2019 05:56:15 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:90a:cb07:: with SMTP id z7ls885412pjt.2.gmail; Tue, 05 Nov 2019 05:56:15 -0800 (PST) X-Google-Smtp-Source: APXvYqyQSwu4P7Dyo+DWcm3T1JG9xeAtySVCvtztaawdr2jPDIDrk6IKF8R3kvbLUneTnnFjQY8W X-Received: by 2002:a17:90a:2ec3:: with SMTP id h3mr6929535pjs.131.1572962175303; Tue, 05 Nov 2019 05:56:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572962175; cv=none; d=google.com; s=arc-20160816; b=zJYV9m2VOqgX5cO9JEAD/UwkXqia8JIfDITYJTQnSb7NKk+T1Ouw1Ll9XYpOrSm+uy vl8Dl2E9tiCl9xYOHEpXnbgchYaVk/N1MnRj1Yy/0hWmxfamk1yINYeVZhTmW+fTlf0W RFPG51T6uKUQSDYwlNRT2AvJD+Dq69ieVa5TmdEPzQFKCwrPoUK5HYWrOEOedBiErbWO 5bZie2Thbh4DX1pB+t7NMrxNOznNweFXlsYSlm/q/F/0nEnZpvyTfKI8SJLL+MqjTm18 9/HY4YDIdtWbS8p83q/qmmxasBkOFRTB6LnBCS+F1+nIdPvBvZCMP/A/8JZQ7TXPQ5ZH Aptw== 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=zi/Wys7CTG2AnSqXT+nkNHUzguErY4AA6I0dslh/vCkfh3KWAlonwt7m8se8xtCD2Z f8ygNan1EfYX4f09Itkhdlji39MB58MvdyI2QhTSqlDRC4XMQh3A9kP1uzYIKbDKT+Z7 xMb12uTh/IgPCzFf9WiaOeTflT50K/DmhLHl4CiXRuDinRlUrhFzvI7iXQs19fSOLKIT zMMvDQOPRN76uGD+llrHGmFW+xtbEo/t1QepenkVNqiZABo5eaURzaPagxqyWFv5X9iV 0HVgdbI84MN7hkCDSFZlqShnBVYQizua11X+7NChumr+k5Tv/uHarBmDx0DPv3UdJmAa eAUQ== 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 p9si1024535pjo.0.2019.11.05.05.56.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Nov 2019 05:56:15 -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: 8tEOwTHcD9hXL5l2cGLxbiL84+fGt76G0vkcIwlazw9r36XsWNjN/ldrJdIivx0RQzk0YimWzu ZoOLun8TIqUKk5eYZJF0ld+qU73UvhlKPhFON3hcZ8GZ1N0McjaHHBMzMu+O+y77A+OCY9exbo gZ5nWL7jLr0lkRJJdsAg/PY/a3oZdyTG1Cxu65y43gkOSo/qoJ7TwZae1FKh5bD+kSUAH0/NIk yLOpettJiFnxa8z282OT6zcf7W5tDGYJkjbmrP6dIibAtGJLLr3/6z/NRH/osylE7JvVUDpvZu 4JE= X-IronPort-AV: E=Sophos;i="5.68,271,1569312000"; d="scan'208";a="42817991" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 05 Nov 2019 05:56:13 -0800 IronPort-SDR: XMzu3Mh6DGmI6F6N1GDTeerWEebncPRTxHA/IMW2iBqhLZOw9Vc9nyZAmYjv8Yc6NZXBT8iO1V ATI0C+K1Ijnpqd+9wLVE0yQzYy2t5rj0s43l/ioGpe6P2tGUUmj03bf7GcFfujEE1THk1KsHzn DXPlAf4GaaYK7WBoSnMc1ADU7QU9ORn5Fk7wOYnthymuHqDMnYYilXInQB1YElxdCR8SacjVpR omQ+aXkYttpd4sZWjDYFqjR+qk5ZpQLdA9NCbhGWQqS3Pa/E7auaWDAqcFZmNn5C+N9xJ59Iky MCQ= From: Cedric Hombourger To: CC: Cedric Hombourger Subject: [PATCH 2/7] linux-mainline: fix stripping of .0 from the kernel version Date: Tue, 5 Nov 2019 14:55:40 +0100 Message-ID: <1572962145-318-3-git-send-email-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1572962145-318-1-git-send-email-Cedric_Hombourger@mentor.com> References: <1572962145-318-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-06.mgc.mentorg.com (139.181.222.6) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: s7p/nkuiFl0D 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