diff options
author | Carlos Rafael Giani <crg7475@mailbox.org> | 2019-02-15 00:08:28 +0100 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2019-05-20 17:52:37 -0300 |
commit | b73854c078b0a174613135b60da3377a1055f477 (patch) | |
tree | 5a36af0520f0b013d09e66da77e74428b4737f72 | |
parent | 46fcbab00f7e01ded4609c09be89161783426f41 (diff) | |
download | meta-freescale-b73854c078b0a174613135b60da3377a1055f477.tar.gz |
u-boot-imx: Fix x86_64-linux-gnu-gcc compilation error
This fixes the compiler error:
| unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
| error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
-rwxr-xr-x | recipes-bsp/u-boot/u-boot-imx/0001-tools-allow-to-override-python.patch | 46 | ||||
-rw-r--r-- | recipes-bsp/u-boot/u-boot-imx_2017.03.bb | 4 |
2 files changed, 49 insertions, 1 deletions
diff --git a/recipes-bsp/u-boot/u-boot-imx/0001-tools-allow-to-override-python.patch b/recipes-bsp/u-boot/u-boot-imx/0001-tools-allow-to-override-python.patch new file mode 100755 index 00000000..f96de538 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-imx/0001-tools-allow-to-override-python.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | From b48bfc74ee410b1e6681c620633ffef32aafaba0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Stefano Babic <sbabic@denx.de> | ||
3 | Date: Wed, 5 Apr 2017 17:46:41 +0200 | ||
4 | Subject: [PATCH] tools: allow to override python | ||
5 | |||
6 | Not force to use python from PATH. Issue was noted when building with | ||
7 | Yocto, because python from the distro is always taken instead of | ||
8 | python-native built during Yocto process. | ||
9 | |||
10 | Signed-off-by: Stefano Babic <sbabic@denx.de> | ||
11 | CC: Simon Glass <sjg@chromium.org> | ||
12 | Reviewed-by: Simon Glass <sjg@chromium.org> | ||
13 | --- | ||
14 | Makefile | 2 +- | ||
15 | tools/Makefile | 2 +- | ||
16 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
17 | |||
18 | diff --git a/Makefile b/Makefile | ||
19 | index 09b597d450..8d4e6050b3 100644 | ||
20 | --- a/Makefile | ||
21 | +++ b/Makefile | ||
22 | @@ -348,7 +348,7 @@ OBJCOPY = $(CROSS_COMPILE)objcopy | ||
23 | OBJDUMP = $(CROSS_COMPILE)objdump | ||
24 | AWK = awk | ||
25 | PERL = perl | ||
26 | -PYTHON = python | ||
27 | +PYTHON ?= python | ||
28 | DTC = dtc | ||
29 | CHECK = sparse | ||
30 | |||
31 | diff --git a/tools/Makefile b/tools/Makefile | ||
32 | index fa1b85bdae..2fc4a583d4 100644 | ||
33 | --- a/tools/Makefile | ||
34 | +++ b/tools/Makefile | ||
35 | @@ -120,7 +120,7 @@ _libfdt.so-sharedobjs += $(LIBFDT_OBJS) | ||
36 | libfdt: | ||
37 | |||
38 | tools/_libfdt.so: $(patsubst %.o,%.c,$(LIBFDT_OBJS)) tools/libfdt_wrap.c | ||
39 | - LDFLAGS="$(HOSTLDFLAGS)" python $(srctree)/lib/libfdt/setup.py \ | ||
40 | + LDFLAGS="$(HOSTLDFLAGS)" ${PYTHON} $(srctree)/lib/libfdt/setup.py \ | ||
41 | "$(_hostc_flags)" $^ | ||
42 | mv _libfdt.so $@ | ||
43 | |||
44 | -- | ||
45 | 2.17.1 | ||
46 | |||
diff --git a/recipes-bsp/u-boot/u-boot-imx_2017.03.bb b/recipes-bsp/u-boot/u-boot-imx_2017.03.bb index 705ff164..af83eaec 100644 --- a/recipes-bsp/u-boot/u-boot-imx_2017.03.bb +++ b/recipes-bsp/u-boot/u-boot-imx_2017.03.bb | |||
@@ -11,7 +11,9 @@ LICENSE = "GPLv2+" | |||
11 | LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 11 | LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
12 | 12 | ||
13 | SRCBRANCH = "imx_v2017.03_4.9.123_imx8mm_ga" | 13 | SRCBRANCH = "imx_v2017.03_4.9.123_imx8mm_ga" |
14 | SRC_URI = "git://source.codeaurora.org/external/imx/uboot-imx.git;protocol=https;branch=${SRCBRANCH}" | 14 | SRC_URI = "git://source.codeaurora.org/external/imx/uboot-imx.git;protocol=https;branch=${SRCBRANCH} \ |
15 | file://0001-tools-allow-to-override-python.patch \ | ||
16 | " | ||
15 | SRCREV = "8be98e9322040c655b9e5c9fb2c494e002e3fad9" | 17 | SRCREV = "8be98e9322040c655b9e5c9fb2c494e002e3fad9" |
16 | 18 | ||
17 | S = "${WORKDIR}/git" | 19 | S = "${WORKDIR}/git" |