From 8cc50eae10a10f5aeaa681132889b2a6db8809bd Mon Sep 17 00:00:00 2001 From: Dariusz Pelowski Date: Sun, 5 Nov 2017 13:15:41 +0100 Subject: kvmtool: fix compilation errors Fixed issues: Usage of makedev requires including otherwise the error is raised due to multiple definition in . Add include path to kernel headers required to get kvmtool compilatioin successful. Signed-off-by: Dariusz Pelowski Signed-off-by: Bruce Ashfield --- .../0002-kvmtool-add-EXTRA_CFLAGS-variable.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable.patch (limited to 'recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable.patch') diff --git a/recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable.patch b/recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable.patch new file mode 100644 index 00000000..262531ca --- /dev/null +++ b/recipes-extended/kvmtool/files/0002-kvmtool-add-EXTRA_CFLAGS-variable.patch @@ -0,0 +1,29 @@ +From 977a4d41012d1814f5a5330cacc2e4944de387cc Mon Sep 17 00:00:00 2001 +From: Dariusz Pelowski +Date: Sun, 5 Nov 2017 12:39:21 +0100 +Subject: [PATCH 2/2] kvmtool: add EXTRA_CFLAGS variable + +to avoid CFLAGS overriding introduce new EXTRA_CFLAGS variable +for setting via command argument + +Signed-off-by: Dariusz Pelowski +--- + Makefile | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/Makefile b/Makefile +index 64a0a16..bca1b26 100644 +--- a/Makefile ++++ b/Makefile +@@ -2,6 +2,8 @@ + # Define WERROR=0 to disable -Werror. + # + ++CFLAGS += $(EXTRA_CFLAGS) ++ + ifeq ($(strip $(V)),) + E = @echo + Q = @ +-- +2.15.0 + -- cgit v1.2.3-54-g00ecf