external-crosscompiler.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From 91b7123682c67ec8b0c50147c9ebd59efa563f26 Mon Sep 17 00:00:00 2001
  2. From: Stefan Agner <stefan@agner.ch>
  3. Date: Tue, 6 Sep 2016 11:51:40 -0700
  4. Subject: [PATCH] kvmtool: add lightweight hypervisor native Linux KVM tool
  5. Upstream-Status: Inappropriate [embedded specific]
  6. This allows OpenEmbedded to pass in cross compiler configuration using
  7. the default envirnment variables. It is required so that kvmtool can
  8. be linked against the cross-compiled libfdt library.
  9. ---
  10. Makefile | 8 +-------
  11. 1 file changed, 1 insertion(+), 7 deletions(-)
  12. Index: git/Makefile
  13. ===================================================================
  14. --- git.orig/Makefile
  15. +++ git/Makefile
  16. @@ -19,12 +19,6 @@
  17. include config/feature-tests.mak
  18. -include $(OUTPUT)KVMTOOLS-VERSION-FILE
  19. -CC := $(CROSS_COMPILE)gcc
  20. -CFLAGS :=
  21. -LD := $(CROSS_COMPILE)ld
  22. -LDFLAGS :=
  23. -OBJCOPY := $(CROSS_COMPILE)objcopy
  24. -
  25. FIND := find
  26. CSCOPE := cscope
  27. TAGS := ctags
  28. @@ -367,7 +361,7 @@
  29. CFLAGS_DYNOPT += -DCONFIG_HAS_LIBFDT
  30. CFLAGS_STATOPT += -DCONFIG_HAS_LIBFDT
  31. CFLAGS += -I $(LIBFDT_DIR)
  32. - else ifeq ($(call try-build,$(SOURCE_LIBFDT),$(CFLAGS),-lfdt),y)
  33. + else ifeq ($(call try-build,$(SOURCE_LIBFDT),$(CPPFLAGS) $(CFLAGS),-lfdt),y)
  34. LIBFDT_STATIC :=
  35. CFLAGS_DYNOPT += -DCONFIG_HAS_LIBFDT
  36. CFLAGS_STATOPT += -DCONFIG_HAS_LIBFDT