2017-09-06 19:19:45 +08:00
|
|
|
--- a/tools/env/Makefile
|
|
|
|
+++ b/tools/env/Makefile
|
2019-12-10 19:48:48 -08:00
|
|
|
@@ -10,6 +10,13 @@
|
2017-09-06 19:19:45 +08:00
|
|
|
# with "CC" here for the maximum code reuse of scripts/Makefile.host.
|
2018-04-23 18:50:49 +08:00
|
|
|
override HOSTCC = $(CC)
|
2017-09-06 19:19:45 +08:00
|
|
|
|
|
|
|
+ifneq ($(TARGET_CFLAGS),)
|
|
|
|
+HOSTCFLAGS = $(TARGET_CFLAGS)
|
|
|
|
+endif
|
2019-12-10 19:48:48 -08:00
|
|
|
+ifneq ($(TARGET_LDFLAGS),)
|
|
|
|
+HOSTLDFLAGS = $(TARGET_LDFLAGS)
|
|
|
|
+endif
|
2017-09-06 19:19:45 +08:00
|
|
|
+
|
|
|
|
# Compile for a hosted environment on the target
|
|
|
|
HOST_EXTRACFLAGS = $(patsubst -I%,-idirafter%, $(filter -I%, $(UBOOTINCLUDE))) \
|
|
|
|
-idirafter $(srctree)/tools/env \
|