diff options
Diffstat (limited to 'meta/recipes-bsp/u-boot/files/default-gcc.patch')
| -rw-r--r-- | meta/recipes-bsp/u-boot/files/default-gcc.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-bsp/u-boot/files/default-gcc.patch b/meta/recipes-bsp/u-boot/files/default-gcc.patch new file mode 100644 index 0000000000..76d192e355 --- /dev/null +++ b/meta/recipes-bsp/u-boot/files/default-gcc.patch | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | OE needs to be able to change the default compiler. If we pass in HOSTCC | ||
| 2 | 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 | ||
| 4 | breaks the build. | ||
| 5 | |||
| 6 | We therefore add a way of changing the default in the top level Makefile | ||
| 7 | without interfering with the other setting. | ||
| 8 | |||
| 9 | Upstream-Status: Submitted [emailed to Masahiro Yamada for discussion] | ||
| 10 | RP 2017/3/11 | ||
| 11 | |||
| 12 | Index: git/Makefile | ||
| 13 | =================================================================== | ||
| 14 | --- git.orig/Makefile | ||
| 15 | +++ git/Makefile | ||
| 16 | @@ -254,7 +254,8 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" | ||
| 17 | else if [ -x /bin/bash ]; then echo /bin/bash; \ | ||
| 18 | else echo sh; fi ; fi) | ||
| 19 | |||
| 20 | -HOSTCC = cc | ||
| 21 | +DEFAULTHOSTCC = cc | ||
| 22 | +HOSTCC = $(DEFAULTHOSTCC) | ||
| 23 | HOSTCXX = c++ | ||
| 24 | HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \ | ||
| 25 | $(if $(CONFIG_TOOLS_DEBUG),-g) | ||
