aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-envtools/patches/001-compile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/boot/uboot-envtools/patches/001-compile.patch')
-rw-r--r--package/boot/uboot-envtools/patches/001-compile.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/boot/uboot-envtools/patches/001-compile.patch b/package/boot/uboot-envtools/patches/001-compile.patch
index 5413aa4a41..9b1b6b5d35 100644
--- a/package/boot/uboot-envtools/patches/001-compile.patch
+++ b/package/boot/uboot-envtools/patches/001-compile.patch
@@ -5,10 +5,10 @@
override HOSTCC = $(CC)
+ifneq ($(TARGET_CFLAGS),)
-+HOSTCFLAGS = $(TARGET_CFLAGS)
++KBUILD_HOSTCFLAGS = $(TARGET_CFLAGS)
+endif
+ifneq ($(TARGET_LDFLAGS),)
-+HOSTLDFLAGS = $(TARGET_LDFLAGS)
++KBUILD_HOSTLDFLAGS = $(TARGET_LDFLAGS)
+endif
+
# Compile for a hosted environment on the target