diff options
author | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2020-06-07 20:45:48 -0700 |
---|---|---|
committer | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2020-06-07 20:45:51 -0700 |
commit | 1a648afe0bcfbab576dddb828d1fe653ac640e74 (patch) | |
tree | c3407c3167ed9739cdad602690e621cd45d92c9a | |
parent | f3e04e9a5364a35482d231a417de504890805091 (diff) | |
download | meta-xilinx-1a648afe0bcfbab576dddb828d1fe653ac640e74.tar.gz |
qemu-devicetrees: Use python3 instead of python
Makefile contains references to python2 instead of python3. As a result
qemu-devicetrees compilation fails during buildtime. Fix by patching the
makefile to use python3.
Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
-rw-r--r-- | meta-xilinx-bsp/recipes-devtools/qemu/qemu-devicetrees.inc | 3 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-devtools/qemu/qemu-devicetrees/0001-Makefile-Use-python3-instead-of-python.patch | 30 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta-xilinx-bsp/recipes-devtools/qemu/qemu-devicetrees.inc b/meta-xilinx-bsp/recipes-devtools/qemu/qemu-devicetrees.inc index d4044ed7..8e752921 100644 --- a/meta-xilinx-bsp/recipes-devtools/qemu/qemu-devicetrees.inc +++ b/meta-xilinx-bsp/recipes-devtools/qemu/qemu-devicetrees.inc | |||
@@ -9,6 +9,9 @@ LIC_FILES_CHKSUM = "file://Makefile;beginline=1;endline=27;md5=7348b6cbcae69912c | |||
9 | 9 | ||
10 | PV = "xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" | 10 | PV = "xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" |
11 | 11 | ||
12 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
13 | SRC_URI_append = " file://0001-Makefile-Use-python3-instead-of-python.patch" | ||
14 | |||
12 | BRANCH ?= "" | 15 | BRANCH ?= "" |
13 | REPO ?= "git://github.com/Xilinx/qemu-devicetrees.git;protocol=https" | 16 | REPO ?= "git://github.com/Xilinx/qemu-devicetrees.git;protocol=https" |
14 | 17 | ||
diff --git a/meta-xilinx-bsp/recipes-devtools/qemu/qemu-devicetrees/0001-Makefile-Use-python3-instead-of-python.patch b/meta-xilinx-bsp/recipes-devtools/qemu/qemu-devicetrees/0001-Makefile-Use-python3-instead-of-python.patch new file mode 100644 index 00000000..afbe3156 --- /dev/null +++ b/meta-xilinx-bsp/recipes-devtools/qemu/qemu-devicetrees/0001-Makefile-Use-python3-instead-of-python.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From e5af9cc9b167acc5c04d15fea03b34b70ec537c9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | ||
3 | Date: Sun, 7 Jun 2020 20:35:59 -0700 | ||
4 | Subject: [PATCH] Makefile:Use python3 instead of python | ||
5 | |||
6 | Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | ||
7 | --- | ||
8 | Makefile | 6 +++--- | ||
9 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
10 | |||
11 | diff --git a/Makefile b/Makefile | ||
12 | index 36b4937..efaa39a 100644 | ||
13 | --- a/Makefile | ||
14 | +++ b/Makefile | ||
15 | @@ -89,9 +89,9 @@ $(LQSPI_XIP_OUTDIR)/%.dts: %.dts $(DTSI_FILES) $(HEADER_FILES) | ||
16 | # TODO: Add support for auto-generated dependency list | ||
17 | versal-pmc-npi.dtsi: versal-pmc-npi-nxx.dtsi | ||
18 | versal-pmc-npi-nxx.dtsi: Makefile | ||
19 | - @python -c 'for a in range(0, 54): print("\tGEN_NMU(" + str(a) + ")")' > $@ | ||
20 | - @python -c 'for a in range(0, 50): print("\tGEN_NSU(" + str(a) + ")")' >> $@ | ||
21 | - @python -c 'for a in range(0, 146): print("\tGEN_NPS(" + str(a) + ")")' >> $@ | ||
22 | + @python3 -c 'for a in range(0, 54): print("\tGEN_NMU(" + str(a) + ")")' > $@ | ||
23 | + @python3 -c 'for a in range(0, 50): print("\tGEN_NSU(" + str(a) + ")")' >> $@ | ||
24 | + @python3 -c 'for a in range(0, 146): print("\tGEN_NPS(" + str(a) + ")")' >> $@ | ||
25 | |||
26 | clean: | ||
27 | $(RM) versal-pmc-npi-nxx.dtsi | ||
28 | -- | ||
29 | 2.7.4 | ||
30 | |||