lede/package/boot/uboot-envtools/patches/001-compile.patch

17 lines
472 B
Diff
Raw Normal View History

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.
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 \