diff options
author | Dave Cobbley <david.j.cobbley@linux.intel.com> | 2018-08-14 13:30:07 -0700 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-08-22 21:26:37 -0400 |
commit | 4feb727cd6b77a68bdaca63e121b378d814f5eaf (patch) | |
tree | 871b558e24c63450a7a5c2eacda38cf21dbb21e8 /meta-aspeed/recipes-bsp/u-boot/files/default-gcc.patch | |
parent | eb8dc40360f0cfef56fb6947cc817a547d6d9bc6 (diff) | |
download | talos-openbmc-4feb727cd6b77a68bdaca63e121b378d814f5eaf.tar.gz talos-openbmc-4feb727cd6b77a68bdaca63e121b378d814f5eaf.zip |
[Subtree] Move board support packages to top level
The new subtree paradigm has moved the meta-bsp layers to the top level
Change-Id: Ic4f64c39465be699bed3649e125e027d17daf938
Signed-off-by: Dave Cobbley <david.j.cobbley@linux.intel.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-aspeed/recipes-bsp/u-boot/files/default-gcc.patch')
-rw-r--r-- | meta-aspeed/recipes-bsp/u-boot/files/default-gcc.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-aspeed/recipes-bsp/u-boot/files/default-gcc.patch b/meta-aspeed/recipes-bsp/u-boot/files/default-gcc.patch new file mode 100644 index 000000000..04184df8b --- /dev/null +++ b/meta-aspeed/recipes-bsp/u-boot/files/default-gcc.patch @@ -0,0 +1,39 @@ +OE needs to be able to change the default compiler. If we pass in HOSTCC +through the make command, it overwrites not only this setting but also the +setting in tools/Makefile wrapped in ifneq ($(CROSS_BUILD_TOOLS),) which +breaks the build. + +We therefore use override to ensure the value of HOSTCC is overwritten when +needed. + +RP: Updated the patch to the version being submitted to upstream u-boot + +Upstream-Status: Submitted [emailed to Masahiro Yamada for discussion] +RP 2017/3/11 + +Index: git/tools/Makefile +=================================================================== +--- git.orig/tools/Makefile ++++ git/tools/Makefile +@@ -262,7 +262,7 @@ $(LICENSE_H): $(obj)/bin2header $(srctre + subdir- += env + + ifneq ($(CROSS_BUILD_TOOLS),) +-HOSTCC = $(CC) ++override HOSTCC = $(CC) + + quiet_cmd_crosstools_strip = STRIP $^ + cmd_crosstools_strip = $(STRIP) $^; touch $@ +Index: git/tools/env/Makefile +=================================================================== +--- git.orig/tools/env/Makefile ++++ git/tools/env/Makefile +@@ -8,7 +8,7 @@ + # fw_printenv is supposed to run on the target system, which means it should be + # built with cross tools. Although it may look weird, we only replace "HOSTCC" + # with "CC" here for the maximum code reuse of scripts/Makefile.host. +-HOSTCC = $(CC) ++override HOSTCC = $(CC) + + # Compile for a hosted environment on the target + HOST_EXTRACFLAGS = $(patsubst -I%,-idirafter%, $(filter -I%, $(UBOOTINCLUDE))) \ |