meta-virtualization/recipes-extended/kvmtool/files/external-crosscompiler.patch
Bruce Ashfield 436b60e582 kvmtool: refresh to 5.10 version
Grabbing the latest kvmtool sources. These follow kernel numbering,
so we bump that to 5.10 to match.

We also drop one patch that is part of the main repo now, and
refresh the others to avoid fuzz warnings.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-02-07 08:43:53 -05:00

42 lines
1.2 KiB
Diff

From b89ba4256cb6074aee74ea5386bc5ca8e75d4653 Mon Sep 17 00:00:00 2001
From: Stefan Agner <stefan@agner.ch>
Date: Tue, 6 Sep 2016 11:51:40 -0700
Subject: [PATCH] kvmtool: add lightweight hypervisor native Linux KVM tool
Upstream-Status: Inappropriate [embedded specific]
This allows OpenEmbedded to pass in cross compiler configuration using
the default envirnment variables. It is required so that kvmtool can
be linked against the cross-compiled libfdt library.
---
Makefile | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
index 35bb118..3787df2 100644
--- a/Makefile
+++ b/Makefile
@@ -18,12 +18,6 @@ export E Q
include config/utilities.mak
include config/feature-tests.mak
-CC := $(CROSS_COMPILE)gcc
-CFLAGS :=
-LD := $(CROSS_COMPILE)ld
-LDFLAGS :=
-OBJCOPY := $(CROSS_COMPILE)objcopy
-
FIND := find
CSCOPE := cscope
TAGS := ctags
@@ -319,7 +313,7 @@ $(warning No static libc found. Skipping guest init)
endif
ifeq (y,$(ARCH_WANT_LIBFDT))
- ifneq ($(call try-build,$(SOURCE_LIBFDT),$(CFLAGS),-lfdt),y)
+ ifneq ($(call try-build,$(SOURCE_LIBFDT),$(CPPFLAGS) $(CFLAGS),-lfdt),y)
$(error No libfdt found. Please install libfdt-dev package)
else
CFLAGS_DYNOPT += -DCONFIG_HAS_LIBFDT