mirror of
https://github.com/Freescale/meta-freescale-3rdparty.git
synced 2025-07-19 12:09:01 +02:00
u-boot-boundary-fw-utils: Reuse the same override HOSTCC patch as u-boot-mkimage
(From OE-Core rev: 2815f819c1a620949213fa952557c03f7d594ed6) Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
parent
7dd7e63b6b
commit
1cc145abd2
|
@ -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))) \
|
|
@ -3,7 +3,10 @@ require u-boot-boundary-common_${PV}.inc
|
|||
SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities"
|
||||
DEPENDS = "mtd-utils"
|
||||
|
||||
SRC_URI += "file://fw_env.config"
|
||||
SRC_URI += " \
|
||||
file://default-gcc.patch \
|
||||
file://fw_env.config \
|
||||
"
|
||||
|
||||
INSANE_SKIP_${PN} = "already-stripped"
|
||||
EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" V=1'
|
||||
|
|
Loading…
Reference in New Issue
Block a user