001-envtools-compile.patch 471 B

12345678910111213141516
  1. --- a/tools/env/Makefile
  2. +++ b/tools/env/Makefile
  3. @@ -8,6 +8,13 @@
  4. # with "CC" here for the maximum code reuse of scripts/Makefile.host.
  5. override HOSTCC = $(CC)
  6. +ifneq ($(TARGET_CFLAGS),)
  7. +KBUILD_HOSTCFLAGS = $(TARGET_CFLAGS)
  8. +endif
  9. +ifneq ($(TARGET_LDFLAGS),)
  10. +KBUILD_HOSTLDFLAGS = $(TARGET_LDFLAGS)
  11. +endif
  12. +
  13. # Compile for a hosted environment on the target
  14. HOST_EXTRACFLAGS = -I$(srctree)/tools \
  15. $(patsubst -I%,-idirafter%, $(filter -I%, $(UBOOTINCLUDE))) \