diff options
author | Ola Redell <ola.redell@codiax.se> | 2019-05-27 13:01:14 +0200 |
---|---|---|
committer | Ola Redell <ola.redell@codiax.se> | 2019-05-27 13:01:14 +0200 |
commit | 0be15ddd23ad99f0a065f9bacf9fe71deccf5e57 (patch) | |
tree | 7559f7734be553b3b83fff49870f52018208b690 /recipes-jailhouse/jailhouse | |
parent | f2f6d83741066584e5d5e5c131c4ce80102a84c1 (diff) | |
download | meta-jailhouse-0be15ddd23ad99f0a065f9bacf9fe71deccf5e57.tar.gz |
Moved to version 0.10 for imx8
Diffstat (limited to 'recipes-jailhouse/jailhouse')
-rw-r--r-- | recipes-jailhouse/jailhouse/jailhouse-0.10/no-kbuild-of-tools.patch (renamed from recipes-jailhouse/jailhouse/jailhouse-0.8/0004-no-kbuild-of-tools.patch) | 6 | ||||
-rw-r--r-- | recipes-jailhouse/jailhouse/jailhouse-0.10/tools-makefile-man-pages.patch | 13 | ||||
-rw-r--r-- | recipes-jailhouse/jailhouse/jailhouse-0.10/tools-makefile.patch (renamed from recipes-jailhouse/jailhouse/jailhouse-0.8/0005-tools-makefile.patch) | 20 | ||||
-rw-r--r-- | recipes-jailhouse/jailhouse/jailhouse.inc | 11 | ||||
-rw-r--r-- | recipes-jailhouse/jailhouse/jailhouse_0.10.bb | 15 | ||||
-rw-r--r-- | recipes-jailhouse/jailhouse/jailhouse_0.8.bb | 11 |
6 files changed, 44 insertions, 32 deletions
diff --git a/recipes-jailhouse/jailhouse/jailhouse-0.8/0004-no-kbuild-of-tools.patch b/recipes-jailhouse/jailhouse/jailhouse-0.10/no-kbuild-of-tools.patch index 30d3b6d..a7c9f99 100644 --- a/recipes-jailhouse/jailhouse/jailhouse-0.8/0004-no-kbuild-of-tools.patch +++ b/recipes-jailhouse/jailhouse/jailhouse-0.10/no-kbuild-of-tools.patch | |||
@@ -2,9 +2,9 @@ Index: git/Kbuild | |||
2 | =================================================================== | 2 | =================================================================== |
3 | --- git.orig/Kbuild | 3 | --- git.orig/Kbuild |
4 | +++ git/Kbuild | 4 | +++ git/Kbuild |
5 | @@ -53,7 +53,7 @@ $(obj)/driver $(obj)/hypervisor: $(GEN_V | 5 | @@ -41,7 +41,7 @@ GEN_VERSION_H := $(obj)/hypervisor/inclu |
6 | 6 | $(GEN_VERSION_H): $(src)/Makefile FORCE | |
7 | endif | 7 | $(call filechk,version) |
8 | 8 | ||
9 | -subdir-y := driver hypervisor configs inmates tools | 9 | -subdir-y := driver hypervisor configs inmates tools |
10 | +subdir-y := driver hypervisor configs inmates | 10 | +subdir-y := driver hypervisor configs inmates |
diff --git a/recipes-jailhouse/jailhouse/jailhouse-0.10/tools-makefile-man-pages.patch b/recipes-jailhouse/jailhouse/jailhouse-0.10/tools-makefile-man-pages.patch new file mode 100644 index 0000000..75e676f --- /dev/null +++ b/recipes-jailhouse/jailhouse/jailhouse-0.10/tools-makefile-man-pages.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Index: git/tools/Makefile | ||
2 | =================================================================== | ||
3 | --- git.orig/tools/Makefile | ||
4 | +++ git/tools/Makefile | ||
5 | @@ -122,7 +122,7 @@ targets += $(MAN8_PAGES) | ||
6 | always += $(MAN8_PAGES) | ||
7 | |||
8 | $(obj)/%.8: $(src)/%.8.in | ||
9 | - $(call if_changed,gen_man) | ||
10 | + sed 's/$${VERSION}/$(shell cat $(src)/../VERSION)/g' $< > $@ | ||
11 | |||
12 | install-bin: $(BINARIES) $(DESTDIR)$(sbindir) | ||
13 | $(INSTALL_PROGRAM) $^ | ||
diff --git a/recipes-jailhouse/jailhouse/jailhouse-0.8/0005-tools-makefile.patch b/recipes-jailhouse/jailhouse/jailhouse-0.10/tools-makefile.patch index ea041a9..e2b170e 100644 --- a/recipes-jailhouse/jailhouse/jailhouse-0.8/0005-tools-makefile.patch +++ b/recipes-jailhouse/jailhouse/jailhouse-0.10/tools-makefile.patch | |||
@@ -2,16 +2,16 @@ Index: git/tools/Makefile | |||
2 | =================================================================== | 2 | =================================================================== |
3 | --- git.orig/tools/Makefile | 3 | --- git.orig/tools/Makefile |
4 | +++ git/tools/Makefile | 4 | +++ git/tools/Makefile |
5 | @@ -19,7 +19,7 @@ LINUXINCLUDE := -I$(src)/../driver | 5 | @@ -23,7 +23,7 @@ KBUILD_CFLAGS := -g -O3 -DLIBEXECDIR=\"$ |
6 | KBUILD_CFLAGS := -g -O3 -DLIBEXECDIR=\"$(libexecdir)\" \ | 6 | -D__LINUX_COMPILER_TYPES_H \ |
7 | -Wall -Wextra -Wmissing-declarations -Wmissing-prototypes -Werror \ | ||
8 | -DJAILHOUSE_VERSION=\"$(shell cat $(src)/../VERSION)\" $(EXTRA_CFLAGS) | 7 | -DJAILHOUSE_VERSION=\"$(shell cat $(src)/../VERSION)\" $(EXTRA_CFLAGS) |
8 | # prior to 4.19 | ||
9 | -LDFLAGS := | 9 | -LDFLAGS := |
10 | + | 10 | +#LDFLAGS := |
11 | GCOV_PROFILE := n | 11 | # since 4.19 |
12 | KBUILD_LDFLAGS := | ||
12 | 13 | ||
13 | BINARIES := jailhouse | 14 | @@ -101,7 +101,7 @@ endef |
14 | @@ -57,7 +57,7 @@ endef | ||
15 | targets += jailhouse.o | 15 | targets += jailhouse.o |
16 | 16 | ||
17 | $(obj)/jailhouse: $(obj)/jailhouse.o | 17 | $(obj)/jailhouse: $(obj)/jailhouse.o |
@@ -20,7 +20,7 @@ Index: git/tools/Makefile | |||
20 | 20 | ||
21 | CFLAGS_jailhouse-gcov-extract.o := -I$(src)/../hypervisor/include \ | 21 | CFLAGS_jailhouse-gcov-extract.o := -I$(src)/../hypervisor/include \ |
22 | -I$(src)/../hypervisor/arch/$(SRCARCH)/include | 22 | -I$(src)/../hypervisor/arch/$(SRCARCH)/include |
23 | @@ -68,10 +68,11 @@ targets += jailhouse-gcov-extract.o | 23 | @@ -112,10 +112,11 @@ targets += jailhouse-gcov-extract.o |
24 | always += jailhouse-gcov-extract | 24 | always += jailhouse-gcov-extract |
25 | 25 | ||
26 | $(obj)/jailhouse-gcov-extract: $(obj)/jailhouse-gcov-extract.o | 26 | $(obj)/jailhouse-gcov-extract: $(obj)/jailhouse-gcov-extract.o |
@@ -32,5 +32,5 @@ Index: git/tools/Makefile | |||
32 | + $< -g $@; \ | 32 | + $< -g $@; \ |
33 | + chmod +x $@ | 33 | + chmod +x $@ |
34 | 34 | ||
35 | install-bin: $(BINARIES) $(DESTDIR)$(sbindir) | 35 | targets += $(MAN8_PAGES) |
36 | $(INSTALL_PROGRAM) $^ | 36 | always += $(MAN8_PAGES) |
diff --git a/recipes-jailhouse/jailhouse/jailhouse.inc b/recipes-jailhouse/jailhouse/jailhouse.inc index c6d959a..3ce9bbf 100644 --- a/recipes-jailhouse/jailhouse/jailhouse.inc +++ b/recipes-jailhouse/jailhouse/jailhouse.inc | |||
@@ -21,12 +21,10 @@ S ="${WORKDIR}/git" | |||
21 | require jailhouse-defs.inc | 21 | require jailhouse-defs.inc |
22 | inherit module pythonnative bash-completion setuptools kernel-arch | 22 | inherit module pythonnative bash-completion setuptools kernel-arch |
23 | 23 | ||
24 | JH_CONFIG ?= "${S}/ci/jailhouse-config-x86.h" | 24 | JH_CONFIG ?= "" |
25 | JH_CONFIG_x86 ?= "${S}/ci/jailhouse-config-x86.h" | 25 | JH_CONFIG_x86 ?= "${S}/ci/jailhouse-config-x86.h" |
26 | JH_CONFIG_x86-64 ?= "${S}/ci/jailhouse-config-x86.h" | 26 | JH_CONFIG_x86-64 ?= "${S}/ci/jailhouse-config-x86.h" |
27 | JH_CONFIG_arm ?= "${S}/ci/jailhouse-config-banana-pi.h" | 27 | JH_CONFIG_arm ?= "${S}/ci/jailhouse-config-banana-pi.h" |
28 | JH_CONFIG_imx8mqevk = "${S}/ci/jailhouse-config-imx8mq-evk.h" | ||
29 | JH_CONFIG_imx8mmevk = "${S}/ci/jailhouse-config-imx8mm-evk.h" | ||
30 | 28 | ||
31 | do_configure() { | 29 | do_configure() { |
32 | if [ -d ${STAGING_DIR_HOST}/${CELLCONF_DIR} ]; | 30 | if [ -d ${STAGING_DIR_HOST}/${CELLCONF_DIR} ]; |
@@ -67,8 +65,6 @@ do_compile() { | |||
67 | ${TOOLS_OBJ_DIR}/jailhouse.8 ${TOOLS_OBJ_DIR}/jailhouse-cell.8 \ | 65 | ${TOOLS_OBJ_DIR}/jailhouse.8 ${TOOLS_OBJ_DIR}/jailhouse-cell.8 \ |
68 | ${TOOLS_OBJ_DIR}/jailhouse-enable.8 \ | 66 | ${TOOLS_OBJ_DIR}/jailhouse-enable.8 \ |
69 | ${TOOLS_OBJ_DIR}/jailhouse | 67 | ${TOOLS_OBJ_DIR}/jailhouse |
70 | |||
71 | #oe_runmake V=1 CFLAGS="${USER_SPACE_CFLAGS}" src=${TOOLS_SRC_DIR} obj=${TOOLS_OBJ_DIR} ${TOOLS_OBJ_DIR}/jailhouse-config-collect ${TOOLS_OBJ_DIR}/jailhouse | ||
72 | } | 68 | } |
73 | 69 | ||
74 | do_install() { | 70 | do_install() { |
@@ -79,8 +75,7 @@ do_install() { | |||
79 | KDIR=${STAGING_KERNEL_BUILDDIR} \ | 75 | KDIR=${STAGING_KERNEL_BUILDDIR} \ |
80 | DESTDIR=${D} install | 76 | DESTDIR=${D} install |
81 | 77 | ||
82 | #distutils_do_install | 78 | distutils_do_install |
83 | distutils_do_compile | ||
84 | 79 | ||
85 | install -d ${D}${CELL_DIR} | 80 | install -d ${D}${CELL_DIR} |
86 | install ${B}/configs/${ARCH}/*.cell ${D}${CELL_DIR}/ | 81 | install ${B}/configs/${ARCH}/*.cell ${D}${CELL_DIR}/ |
@@ -96,7 +91,7 @@ do_install() { | |||
96 | install ${B}/tools/jailhouse-config-create ${D}${JH_DATADIR}/tools | 91 | install ${B}/tools/jailhouse-config-create ${D}${JH_DATADIR}/tools |
97 | install ${B}/tools/jailhouse-gcov-extract ${D}${JH_DATADIR}/tools | 92 | install ${B}/tools/jailhouse-gcov-extract ${D}${JH_DATADIR}/tools |
98 | install ${B}/tools/jailhouse-hardware-check ${D}${JH_DATADIR}/tools | 93 | install ${B}/tools/jailhouse-hardware-check ${D}${JH_DATADIR}/tools |
99 | install ${B}/inmates/tools/${JH_ARCH}/linux-loader.bin ${D}${INMATES_DIR}/tools/${JH_ARCH} | 94 | install ${B}/inmates/tools/${ARCH}/linux-loader.bin ${D}${INMATES_DIR}/tools/${ARCH} |
100 | 95 | ||
101 | install -d ${D}${PYTHON_SITEPACKAGES_DIR}/pyjailhouse | 96 | install -d ${D}${PYTHON_SITEPACKAGES_DIR}/pyjailhouse |
102 | install -m 0644 ${B}/build${base_libdir}/pyjailhouse/*.py ${D}${PYTHON_SITEPACKAGES_DIR}/pyjailhouse | 97 | install -m 0644 ${B}/build${base_libdir}/pyjailhouse/*.py ${D}${PYTHON_SITEPACKAGES_DIR}/pyjailhouse |
diff --git a/recipes-jailhouse/jailhouse/jailhouse_0.10.bb b/recipes-jailhouse/jailhouse/jailhouse_0.10.bb new file mode 100644 index 0000000..6b2b5d2 --- /dev/null +++ b/recipes-jailhouse/jailhouse/jailhouse_0.10.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | require jailhouse.inc | ||
2 | |||
3 | JAILHOUSE_SRCBRANCH = "master" | ||
4 | JAILHOUSE_SRC ?= "git://github.com/siemens/jailhouse.git;protocol=git" | ||
5 | |||
6 | SRC_URI = "${JAILHOUSE_SRC};branch=${JAILHOUSE_SRCBRANCH} \ | ||
7 | file://no-kbuild-of-tools.patch \ | ||
8 | file://tools-makefile.patch \ | ||
9 | file://tools-makefile-man-pages.patch" | ||
10 | |||
11 | SRCREV = "f596aa7355bc2134650544bdf1e13f1f55d3f2fc" | ||
12 | |||
13 | CELLS = "" | ||
14 | |||
15 | COMPATIBLE_MACHINE = "${@bb.utils.contains('MACHINE_FEATURES', 'jailhouse', '${MACHINE}', '(^$)', d)}" | ||
diff --git a/recipes-jailhouse/jailhouse/jailhouse_0.8.bb b/recipes-jailhouse/jailhouse/jailhouse_0.8.bb deleted file mode 100644 index 4181776..0000000 --- a/recipes-jailhouse/jailhouse/jailhouse_0.8.bb +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | require jailhouse.inc | ||
2 | |||
3 | SRC_URI = "git://github.com/siemens/jailhouse.git;protocol=git \ | ||
4 | file://0004-no-kbuild-of-tools.patch \ | ||
5 | file://0005-tools-makefile.patch \ | ||
6 | " | ||
7 | |||
8 | SRCREV = "07341fa315a7fabb38f07cd3c0b3fe880cffaa65" | ||
9 | |||
10 | CELLS = "" | ||
11 | |||