summaryrefslogtreecommitdiffstats
path: root/recipes-extended/uxen/uxen-guest-tools
diff options
context:
space:
mode:
authorChristopher Clark <christopher.w.clark@gmail.com>2020-02-24 16:37:00 -0800
committerBruce Ashfield <bruce.ashfield@gmail.com>2020-02-27 17:00:09 -0500
commit62afe452c2567947c8e84967d6e096015978c317 (patch)
tree91fae43859fe9c56c5ea93b8ab8e3ab8b5f3fcb9 /recipes-extended/uxen/uxen-guest-tools
parent5591f772fefde05ee462138246c4b555a39125b3 (diff)
downloadmeta-virtualization-62afe452c2567947c8e84967d6e096015978c317.tar.gz
uxen-guest-tools, image: package the Linux VM tools for uXen hypervisor
uXen is a type-2 Open Source hypervisor from Bromium/HP. https://www.bromium.com/opensource/ This adds packaging for the Linux guest support software, enabling OE to produce VM images to run on the uXen hypervisor. uxen-guest-tools: in-guest software device drivers uxen-guest-image-minimal : minimal core image with uXen drivers Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-extended/uxen/uxen-guest-tools')
-rw-r--r--recipes-extended/uxen/uxen-guest-tools/fix-Makefile-for-OE-kernel-build.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-extended/uxen/uxen-guest-tools/fix-Makefile-for-OE-kernel-build.patch b/recipes-extended/uxen/uxen-guest-tools/fix-Makefile-for-OE-kernel-build.patch
new file mode 100644
index 00000000..db4c53f5
--- /dev/null
+++ b/recipes-extended/uxen/uxen-guest-tools/fix-Makefile-for-OE-kernel-build.patch
@@ -0,0 +1,36 @@
1# OpenEmbedded uses KERNEL_SRC instead of KDIR
2# and enable the modules_install target.
3# Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
4diff --git a/Makefile b/Makefile
5index 3fd3075..80cf0fe 100644
6--- a/Makefile
7+++ b/Makefile
8@@ -1,10 +1,13 @@
9 ifneq ($(KERNELRELEASE),)
10 # kbuild part of makefile
11-else
12+include Kbuild
13
14-KVERSION ?= $(shell uname -r)
15-KDIR := /lib/modules/${KVERSION}/build
16+else
17+#normal makefile
18+KERNEL_VERSION ?= $(shell uname -r)
19+KERNEL_SRC ?= /lib/modules/${KERNEL_VERSION}/build
20 UXENDIR ?= $(shell pwd)/include/uxen
21+INSTALL_HDR_PATH ?= /usr
22
23 LX_TARGET_FLAGS= -DLX_TARGET_STANDARDVM
24 LX_TARGET_ATTOVM=n
25@@ -19,7 +22,9 @@ EXTRA_CFLAGS=$(LX_TARGET_FLAGS) -g -Wall
26 NOSTDINC_FLAGS=-I$(shell pwd)/include/ -I$(UXENDIR) -I$(UXENDIR)/xen
27
28 all:
29- make -C $(KDIR) $(LX_TARGET) M=$(shell pwd) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)"
30+ make -C $(KERNEL_SRC) $(LX_TARGET) M=$(shell pwd) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)"
31 clean:
32- make -C $(KDIR) $(LX_TARGET) M=$(shell pwd) clean
33+ make -C $(KERNEL_SRC) $(LX_TARGET) M=$(shell pwd) clean
34+modules_install:
35+ make -C $(KERNEL_SRC) $(LX_TARGET) M=$(shell pwd) modules_install
36 endif