summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel
diff options
context:
space:
mode:
authorSakib Sajal <sakib.sajal@windriver.com>2024-06-28 09:58:42 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-03 14:57:50 +0100
commit0df57c2c739c09f6c128515e03f0c2c8758ef905 (patch)
tree5e108743a291650e0da0b33db3f134168782c336 /meta/recipes-kernel
parent746bf5431b918cb7bd65530a8c8b2d25d8294e5e (diff)
downloadpoky-0df57c2c739c09f6c128515e03f0c2c8758ef905.tar.gz
blktrace: ask for python3 specifically
python2 has been deprecated, use python3 instead. (From OE-Core rev: cb550f59a0fb6b41cec2d1bd8a18f788e9ea7de6) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r--meta/recipes-kernel/blktrace/blktrace/0001-bno_plot.py-btt_plot.py-Ask-for-python3-specifically.patch35
-rw-r--r--meta/recipes-kernel/blktrace/blktrace_git.bb4
2 files changed, 38 insertions, 1 deletions
diff --git a/meta/recipes-kernel/blktrace/blktrace/0001-bno_plot.py-btt_plot.py-Ask-for-python3-specifically.patch b/meta/recipes-kernel/blktrace/blktrace/0001-bno_plot.py-btt_plot.py-Ask-for-python3-specifically.patch
new file mode 100644
index 0000000000..e2305a1111
--- /dev/null
+++ b/meta/recipes-kernel/blktrace/blktrace/0001-bno_plot.py-btt_plot.py-Ask-for-python3-specifically.patch
@@ -0,0 +1,35 @@
1From 6f4769e6e2c5cdc1262891470995e6dead937c7a Mon Sep 17 00:00:00 2001
2From: Sakib Sajal <sakib.sajal@windriver.com>
3Date: Mon, 26 Jun 2023 17:57:36 -0400
4Subject: [PATCH] bno_plot.py, btt_plot.py: Ask for python3 specifically
5
6python2 is deprecated, use python3.
7
8Upstream-Status: Denied [https://www.spinics.net/lists/linux-btrace/msg01364.html]
9
10Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
11---
12 btt/bno_plot.py | 2 +-
13 btt/btt_plot.py | 2 +-
14 2 files changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/btt/bno_plot.py b/btt/bno_plot.py
17index 3aa4e19..d7d7159 100644
18--- a/btt/bno_plot.py
19+++ b/btt/bno_plot.py
20@@ -1,4 +1,4 @@
21-#! /usr/bin/env python
22+#! /usr/bin/env python3
23 #
24 # btt blkno plotting interface
25 #
26diff --git a/btt/btt_plot.py b/btt/btt_plot.py
27index 40bc71f..8620d31 100755
28--- a/btt/btt_plot.py
29+++ b/btt/btt_plot.py
30@@ -1,4 +1,4 @@
31-#! /usr/bin/env python
32+#! /usr/bin/env python3
33 #
34 # btt_plot.py: Generate matplotlib plots for BTT generate data files
35 #
diff --git a/meta/recipes-kernel/blktrace/blktrace_git.bb b/meta/recipes-kernel/blktrace/blktrace_git.bb
index d4f5bac84f..8fc30d74fd 100644
--- a/meta/recipes-kernel/blktrace/blktrace_git.bb
+++ b/meta/recipes-kernel/blktrace/blktrace_git.bb
@@ -14,7 +14,9 @@ SRCREV = "366d30b9cdb20345c5d064af850d686da79b89eb"
14 14
15PV = "1.3.0+git" 15PV = "1.3.0+git"
16 16
17SRC_URI = "git://git.kernel.dk/blktrace.git;branch=master;protocol=https" 17SRC_URI = "git://git.kernel.dk/blktrace.git;branch=master;protocol=https \
18 file://0001-bno_plot.py-btt_plot.py-Ask-for-python3-specifically.patch \
19 "
18 20
19S = "${WORKDIR}/git" 21S = "${WORKDIR}/git"
20 22