diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-13 07:29:23 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-14 14:42:18 +0000 |
commit | 4ca2fff32c99c76aa6381ef5de28955a1f0f9fa1 (patch) | |
tree | 52436f1d5febdae4ddcc793724564c37815f0820 /meta/recipes-bsp/u-boot/files | |
parent | 3dadb9722ecf91b2fabbdbc55e73e5c9fea502e3 (diff) | |
download | poky-4ca2fff32c99c76aa6381ef5de28955a1f0f9fa1.tar.gz |
u-boot: Update patch to match upstream
After discussions with upstream this version of the patch was proposed
and is being submitted to upstream u-boot. Update to that version
(which is better than my workaround).
(From OE-Core rev: 048af2455aa65b25fd74bfe0e6d3a0af7562b42f)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/u-boot/files')
-rw-r--r-- | meta/recipes-bsp/u-boot/files/default-gcc.patch | 42 |
1 files changed, 28 insertions, 14 deletions
diff --git a/meta/recipes-bsp/u-boot/files/default-gcc.patch b/meta/recipes-bsp/u-boot/files/default-gcc.patch index 76d192e355..04184df8b3 100644 --- a/meta/recipes-bsp/u-boot/files/default-gcc.patch +++ b/meta/recipes-bsp/u-boot/files/default-gcc.patch | |||
@@ -3,23 +3,37 @@ through the make command, it overwrites not only this setting but also the | |||
3 | setting in tools/Makefile wrapped in ifneq ($(CROSS_BUILD_TOOLS),) which | 3 | setting in tools/Makefile wrapped in ifneq ($(CROSS_BUILD_TOOLS),) which |
4 | breaks the build. | 4 | breaks the build. |
5 | 5 | ||
6 | We therefore add a way of changing the default in the top level Makefile | 6 | We therefore use override to ensure the value of HOSTCC is overwritten when |
7 | without interfering with the other setting. | 7 | needed. |
8 | |||
9 | RP: Updated the patch to the version being submitted to upstream u-boot | ||
8 | 10 | ||
9 | Upstream-Status: Submitted [emailed to Masahiro Yamada for discussion] | 11 | Upstream-Status: Submitted [emailed to Masahiro Yamada for discussion] |
10 | RP 2017/3/11 | 12 | RP 2017/3/11 |
11 | 13 | ||
12 | Index: git/Makefile | 14 | Index: git/tools/Makefile |
15 | =================================================================== | ||
16 | --- git.orig/tools/Makefile | ||
17 | +++ git/tools/Makefile | ||
18 | @@ -262,7 +262,7 @@ $(LICENSE_H): $(obj)/bin2header $(srctre | ||
19 | subdir- += env | ||
20 | |||
21 | ifneq ($(CROSS_BUILD_TOOLS),) | ||
22 | -HOSTCC = $(CC) | ||
23 | +override HOSTCC = $(CC) | ||
24 | |||
25 | quiet_cmd_crosstools_strip = STRIP $^ | ||
26 | cmd_crosstools_strip = $(STRIP) $^; touch $@ | ||
27 | Index: git/tools/env/Makefile | ||
13 | =================================================================== | 28 | =================================================================== |
14 | --- git.orig/Makefile | 29 | --- git.orig/tools/env/Makefile |
15 | +++ git/Makefile | 30 | +++ git/tools/env/Makefile |
16 | @@ -254,7 +254,8 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" | 31 | @@ -8,7 +8,7 @@ |
17 | else if [ -x /bin/bash ]; then echo /bin/bash; \ | 32 | # fw_printenv is supposed to run on the target system, which means it should be |
18 | else echo sh; fi ; fi) | 33 | # built with cross tools. Although it may look weird, we only replace "HOSTCC" |
34 | # with "CC" here for the maximum code reuse of scripts/Makefile.host. | ||
35 | -HOSTCC = $(CC) | ||
36 | +override HOSTCC = $(CC) | ||
19 | 37 | ||
20 | -HOSTCC = cc | 38 | # Compile for a hosted environment on the target |
21 | +DEFAULTHOSTCC = cc | 39 | HOST_EXTRACFLAGS = $(patsubst -I%,-idirafter%, $(filter -I%, $(UBOOTINCLUDE))) \ |
22 | +HOSTCC = $(DEFAULTHOSTCC) | ||
23 | HOSTCXX = c++ | ||
24 | HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \ | ||
25 | $(if $(CONFIG_TOOLS_DEBUG),-g) | ||