2017-09-06 19:19:45 +08:00
|
|
|
--- a/tools/env/Makefile
|
|
|
|
+++ b/tools/env/Makefile
|
2020-02-06 21:45:40 +08:00
|
|
|
@@ -8,6 +8,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),)
|
2021-06-14 18:30:08 +08:00
|
|
|
+KBUILD_HOSTCFLAGS = $(TARGET_CFLAGS)
|
2017-09-06 19:19:45 +08:00
|
|
|
+endif
|
2019-12-10 19:48:48 -08:00
|
|
|
+ifneq ($(TARGET_LDFLAGS),)
|
2021-06-14 18:30:08 +08:00
|
|
|
+KBUILD_HOSTLDFLAGS = $(TARGET_LDFLAGS)
|
2019-12-10 19:48:48 -08:00
|
|
|
+endif
|
2017-09-06 19:19:45 +08:00
|
|
|
+
|
|
|
|
# Compile for a hosted environment on the target
|
2020-02-06 21:45:40 +08:00
|
|
|
HOST_EXTRACFLAGS = -I$(srctree)/tools \
|
|
|
|
$(patsubst -I%,-idirafter%, $(filter -I%, $(UBOOTINCLUDE))) \
|