* [PATCH] u-boot: Fix missing Python.h build failure
@ 2019-04-16 4:00 Alistair Francis
2019-04-17 4:08 ` Khem Raj
0 siblings, 1 reply; 4+ messages in thread
From: Alistair Francis @ 2019-04-16 4:00 UTC (permalink / raw)
To: openembedded-devel
Signed-off-by: Alistair Francis <alistair@alistair23.me>
---
...rt-pylibfdt-Use-Python-2-in-Makefile.patch | 37 +++++++++++++++++++
meta/recipes-bsp/u-boot/u-boot-common.inc | 4 +-
2 files changed, 40 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-bsp/u-boot/files/0001-Revert-pylibfdt-Use-Python-2-in-Makefile.patch
diff --git a/meta/recipes-bsp/u-boot/files/0001-Revert-pylibfdt-Use-Python-2-in-Makefile.patch b/meta/recipes-bsp/u-boot/files/0001-Revert-pylibfdt-Use-Python-2-in-Makefile.patch
new file mode 100644
index 0000000000..a7c934d49e
--- /dev/null
+++ b/meta/recipes-bsp/u-boot/files/0001-Revert-pylibfdt-Use-Python-2-in-Makefile.patch
@@ -0,0 +1,37 @@
+From 30f41eae3d7a3d07e1d62b98d11430d5b2d24513 Mon Sep 17 00:00:00 2001
+From: Alistair Francis <alistair@alistair23.me>
+Date: Sat, 13 Apr 2019 13:41:58 -0700
+Subject: [PATCH] Revert "pylibfdt: Use Python 2 in Makefile"
+
+This reverts commit 03e6151d5bb42fd055e9c1e571440359bd5b5282.
+
+Revert the patch to avoid:
+| scripts/dtc/pylibfdt/libfdt_wrap.c:149:11: fatal error: Python.h: No such file or directory
+| # include <Python.h>
+| ^~~~~~~~~~
+| compilation terminated.
+
+errors when buildling u-boot in OE.
+
+Signed-off-by: Alistair Francis <alistair@alistair23.me>
+Upstream-Status: Inappropriate [configuration]
+---
+ scripts/dtc/pylibfdt/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/scripts/dtc/pylibfdt/Makefile b/scripts/dtc/pylibfdt/Makefile
+index 15e66ad44d..c769d7db06 100644
+--- a/scripts/dtc/pylibfdt/Makefile
++++ b/scripts/dtc/pylibfdt/Makefile
+@@ -21,7 +21,7 @@ quiet_cmd_pymod = PYMOD $@
+ CPPFLAGS="$(HOSTCFLAGS) -I$(LIBFDT_srcdir)" OBJDIR=$(obj) \
+ SOURCES="$(PYLIBFDT_srcs)" \
+ SWIG_OPTS="-I$(LIBFDT_srcdir) -I$(LIBFDT_srcdir)/.." \
+- $(PYTHON2) $< --quiet build_ext --inplace
++ $(PYTHON) $< --quiet build_ext --inplace
+
+ $(obj)/_libfdt.so: $(src)/setup.py $(PYLIBFDT_srcs) FORCE
+ $(call if_changed,pymod)
+--
+2.20.1
+
diff --git a/meta/recipes-bsp/u-boot/u-boot-common.inc b/meta/recipes-bsp/u-boot/u-boot-common.inc
index a0212e1b6b..5e81cabdbd 100644
--- a/meta/recipes-bsp/u-boot/u-boot-common.inc
+++ b/meta/recipes-bsp/u-boot/u-boot-common.inc
@@ -10,6 +10,8 @@ PE = "1"
# repo during parse
SRCREV = "3c99166441bf3ea325af2da83cfe65430b49c066"
-SRC_URI = "git://git.denx.de/u-boot.git"
+SRC_URI = "git://git.denx.de/u-boot.git \
+ file://0001-Revert-pylibfdt-Use-Python-2-in-Makefile.patch \
+ "
S = "${WORKDIR}/git"
--
2.20.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] u-boot: Fix missing Python.h build failure
2019-04-16 4:00 [PATCH] u-boot: Fix missing Python.h build failure Alistair Francis
@ 2019-04-17 4:08 ` Khem Raj
0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2019-04-17 4:08 UTC (permalink / raw)
To: Alistair Francis; +Cc: openembedded-devel
wrong ml I guess.
On Tue, Apr 16, 2019 at 3:31 AM Alistair Francis <alistair@alistair23.me> wrote:
>
> Signed-off-by: Alistair Francis <alistair@alistair23.me>
> ---
> ...rt-pylibfdt-Use-Python-2-in-Makefile.patch | 37 +++++++++++++++++++
> meta/recipes-bsp/u-boot/u-boot-common.inc | 4 +-
> 2 files changed, 40 insertions(+), 1 deletion(-)
> create mode 100644 meta/recipes-bsp/u-boot/files/0001-Revert-pylibfdt-Use-Python-2-in-Makefile.patch
>
> diff --git a/meta/recipes-bsp/u-boot/files/0001-Revert-pylibfdt-Use-Python-2-in-Makefile.patch b/meta/recipes-bsp/u-boot/files/0001-Revert-pylibfdt-Use-Python-2-in-Makefile.patch
> new file mode 100644
> index 0000000000..a7c934d49e
> --- /dev/null
> +++ b/meta/recipes-bsp/u-boot/files/0001-Revert-pylibfdt-Use-Python-2-in-Makefile.patch
> @@ -0,0 +1,37 @@
> +From 30f41eae3d7a3d07e1d62b98d11430d5b2d24513 Mon Sep 17 00:00:00 2001
> +From: Alistair Francis <alistair@alistair23.me>
> +Date: Sat, 13 Apr 2019 13:41:58 -0700
> +Subject: [PATCH] Revert "pylibfdt: Use Python 2 in Makefile"
> +
> +This reverts commit 03e6151d5bb42fd055e9c1e571440359bd5b5282.
> +
> +Revert the patch to avoid:
> +| scripts/dtc/pylibfdt/libfdt_wrap.c:149:11: fatal error: Python.h: No such file or directory
> +| # include <Python.h>
> +| ^~~~~~~~~~
> +| compilation terminated.
> +
> +errors when buildling u-boot in OE.
> +
> +Signed-off-by: Alistair Francis <alistair@alistair23.me>
> +Upstream-Status: Inappropriate [configuration]
> +---
> + scripts/dtc/pylibfdt/Makefile | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/scripts/dtc/pylibfdt/Makefile b/scripts/dtc/pylibfdt/Makefile
> +index 15e66ad44d..c769d7db06 100644
> +--- a/scripts/dtc/pylibfdt/Makefile
> ++++ b/scripts/dtc/pylibfdt/Makefile
> +@@ -21,7 +21,7 @@ quiet_cmd_pymod = PYMOD $@
> + CPPFLAGS="$(HOSTCFLAGS) -I$(LIBFDT_srcdir)" OBJDIR=$(obj) \
> + SOURCES="$(PYLIBFDT_srcs)" \
> + SWIG_OPTS="-I$(LIBFDT_srcdir) -I$(LIBFDT_srcdir)/.." \
> +- $(PYTHON2) $< --quiet build_ext --inplace
> ++ $(PYTHON) $< --quiet build_ext --inplace
> +
> + $(obj)/_libfdt.so: $(src)/setup.py $(PYLIBFDT_srcs) FORCE
> + $(call if_changed,pymod)
> +--
> +2.20.1
> +
> diff --git a/meta/recipes-bsp/u-boot/u-boot-common.inc b/meta/recipes-bsp/u-boot/u-boot-common.inc
> index a0212e1b6b..5e81cabdbd 100644
> --- a/meta/recipes-bsp/u-boot/u-boot-common.inc
> +++ b/meta/recipes-bsp/u-boot/u-boot-common.inc
> @@ -10,6 +10,8 @@ PE = "1"
> # repo during parse
> SRCREV = "3c99166441bf3ea325af2da83cfe65430b49c066"
>
> -SRC_URI = "git://git.denx.de/u-boot.git"
> +SRC_URI = "git://git.denx.de/u-boot.git \
> + file://0001-Revert-pylibfdt-Use-Python-2-in-Makefile.patch \
> + "
>
> S = "${WORKDIR}/git"
> --
> 2.20.1
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] u-boot: Fix missing Python.h build failure
2019-04-17 4:56 Alistair Francis
@ 2019-04-17 20:52 ` Joshua Watt
0 siblings, 0 replies; 4+ messages in thread
From: Joshua Watt @ 2019-04-17 20:52 UTC (permalink / raw)
To: Alistair Francis, openembedded-core
The PYTHON variable is already being passed to u-boot in EXTRA_OEMAKE
("PYTHON=nativepython"), perhaps is should be changed to pass PYTHON2
instead of patching u-boot?
On Wed, 2019-04-17 at 04:56 +0000, Alistair Francis wrote:
> Signed-off-by: Alistair Francis <alistair@alistair23.me>
> ---
> ...rt-pylibfdt-Use-Python-2-in-Makefile.patch | 37
> +++++++++++++++++++
> meta/recipes-bsp/u-boot/u-boot-common.inc | 4 +-
> 2 files changed, 40 insertions(+), 1 deletion(-)
> create mode 100644 meta/recipes-bsp/u-boot/files/0001-Revert-
> pylibfdt-Use-Python-2-in-Makefile.patch
>
> diff --git a/meta/recipes-bsp/u-boot/files/0001-Revert-pylibfdt-Use-
> Python-2-in-Makefile.patch b/meta/recipes-bsp/u-boot/files/0001-
> Revert-pylibfdt-Use-Python-2-in-Makefile.patch
> new file mode 100644
> index 0000000000..a7c934d49e
> --- /dev/null
> +++ b/meta/recipes-bsp/u-boot/files/0001-Revert-pylibfdt-Use-Python-
> 2-in-Makefile.patch
> @@ -0,0 +1,37 @@
> +From 30f41eae3d7a3d07e1d62b98d11430d5b2d24513 Mon Sep 17 00:00:00
> 2001
> +From: Alistair Francis <alistair@alistair23.me>
> +Date: Sat, 13 Apr 2019 13:41:58 -0700
> +Subject: [PATCH] Revert "pylibfdt: Use Python 2 in Makefile"
> +
> +This reverts commit 03e6151d5bb42fd055e9c1e571440359bd5b5282.
> +
> +Revert the patch to avoid:
> +| scripts/dtc/pylibfdt/libfdt_wrap.c:149:11: fatal error: Python.h:
> No such file or directory
> +| # include <Python.h>
> +| ^~~~~~~~~~
> +| compilation terminated.
> +
> +errors when buildling u-boot in OE.
> +
> +Signed-off-by: Alistair Francis <alistair@alistair23.me>
> +Upstream-Status: Inappropriate [configuration]
> +---
> + scripts/dtc/pylibfdt/Makefile | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/scripts/dtc/pylibfdt/Makefile
> b/scripts/dtc/pylibfdt/Makefile
> +index 15e66ad44d..c769d7db06 100644
> +--- a/scripts/dtc/pylibfdt/Makefile
> ++++ b/scripts/dtc/pylibfdt/Makefile
> +@@ -21,7 +21,7 @@ quiet_cmd_pymod = PYMOD $@
> + CPPFLAGS="$(HOSTCFLAGS) -I$(LIBFDT_srcdir)"
> OBJDIR=$(obj) \
> + SOURCES="$(PYLIBFDT_srcs)" \
> + SWIG_OPTS="-I$(LIBFDT_srcdir) -I$(LIBFDT_srcdir)/.." \
> +- $(PYTHON2) $< --quiet build_ext --inplace
> ++ $(PYTHON) $< --quiet build_ext --inplace
> +
> + $(obj)/_libfdt.so: $(src)/setup.py $(PYLIBFDT_srcs) FORCE
> + $(call if_changed,pymod)
> +--
> +2.20.1
> +
> diff --git a/meta/recipes-bsp/u-boot/u-boot-common.inc
> b/meta/recipes-bsp/u-boot/u-boot-common.inc
> index a0212e1b6b..5e81cabdbd 100644
> --- a/meta/recipes-bsp/u-boot/u-boot-common.inc
> +++ b/meta/recipes-bsp/u-boot/u-boot-common.inc
> @@ -10,6 +10,8 @@ PE = "1"
> # repo during parse
> SRCREV = "3c99166441bf3ea325af2da83cfe65430b49c066"
>
> -SRC_URI = "git://git.denx.de/u-boot.git"
> +SRC_URI = "git://git.denx.de/u-boot.git \
> + file://0001-Revert-pylibfdt-Use-Python-2-in-
> Makefile.patch \
> + "
>
> S = "${WORKDIR}/git"
> --
> 2.20.1
>
--
Joshua Watt <JPEWhacker@gmail.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] u-boot: Fix missing Python.h build failure
@ 2019-04-17 4:56 Alistair Francis
2019-04-17 20:52 ` Joshua Watt
0 siblings, 1 reply; 4+ messages in thread
From: Alistair Francis @ 2019-04-17 4:56 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Alistair Francis <alistair@alistair23.me>
---
...rt-pylibfdt-Use-Python-2-in-Makefile.patch | 37 +++++++++++++++++++
meta/recipes-bsp/u-boot/u-boot-common.inc | 4 +-
2 files changed, 40 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-bsp/u-boot/files/0001-Revert-pylibfdt-Use-Python-2-in-Makefile.patch
diff --git a/meta/recipes-bsp/u-boot/files/0001-Revert-pylibfdt-Use-Python-2-in-Makefile.patch b/meta/recipes-bsp/u-boot/files/0001-Revert-pylibfdt-Use-Python-2-in-Makefile.patch
new file mode 100644
index 0000000000..a7c934d49e
--- /dev/null
+++ b/meta/recipes-bsp/u-boot/files/0001-Revert-pylibfdt-Use-Python-2-in-Makefile.patch
@@ -0,0 +1,37 @@
+From 30f41eae3d7a3d07e1d62b98d11430d5b2d24513 Mon Sep 17 00:00:00 2001
+From: Alistair Francis <alistair@alistair23.me>
+Date: Sat, 13 Apr 2019 13:41:58 -0700
+Subject: [PATCH] Revert "pylibfdt: Use Python 2 in Makefile"
+
+This reverts commit 03e6151d5bb42fd055e9c1e571440359bd5b5282.
+
+Revert the patch to avoid:
+| scripts/dtc/pylibfdt/libfdt_wrap.c:149:11: fatal error: Python.h: No such file or directory
+| # include <Python.h>
+| ^~~~~~~~~~
+| compilation terminated.
+
+errors when buildling u-boot in OE.
+
+Signed-off-by: Alistair Francis <alistair@alistair23.me>
+Upstream-Status: Inappropriate [configuration]
+---
+ scripts/dtc/pylibfdt/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/scripts/dtc/pylibfdt/Makefile b/scripts/dtc/pylibfdt/Makefile
+index 15e66ad44d..c769d7db06 100644
+--- a/scripts/dtc/pylibfdt/Makefile
++++ b/scripts/dtc/pylibfdt/Makefile
+@@ -21,7 +21,7 @@ quiet_cmd_pymod = PYMOD $@
+ CPPFLAGS="$(HOSTCFLAGS) -I$(LIBFDT_srcdir)" OBJDIR=$(obj) \
+ SOURCES="$(PYLIBFDT_srcs)" \
+ SWIG_OPTS="-I$(LIBFDT_srcdir) -I$(LIBFDT_srcdir)/.." \
+- $(PYTHON2) $< --quiet build_ext --inplace
++ $(PYTHON) $< --quiet build_ext --inplace
+
+ $(obj)/_libfdt.so: $(src)/setup.py $(PYLIBFDT_srcs) FORCE
+ $(call if_changed,pymod)
+--
+2.20.1
+
diff --git a/meta/recipes-bsp/u-boot/u-boot-common.inc b/meta/recipes-bsp/u-boot/u-boot-common.inc
index a0212e1b6b..5e81cabdbd 100644
--- a/meta/recipes-bsp/u-boot/u-boot-common.inc
+++ b/meta/recipes-bsp/u-boot/u-boot-common.inc
@@ -10,6 +10,8 @@ PE = "1"
# repo during parse
SRCREV = "3c99166441bf3ea325af2da83cfe65430b49c066"
-SRC_URI = "git://git.denx.de/u-boot.git"
+SRC_URI = "git://git.denx.de/u-boot.git \
+ file://0001-Revert-pylibfdt-Use-Python-2-in-Makefile.patch \
+ "
S = "${WORKDIR}/git"
--
2.20.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-04-17 20:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-16 4:00 [PATCH] u-boot: Fix missing Python.h build failure Alistair Francis
2019-04-17 4:08 ` Khem Raj
2019-04-17 4:56 Alistair Francis
2019-04-17 20:52 ` Joshua Watt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.