diff options
3 files changed, 38 insertions, 43 deletions
diff --git a/recipes-extended/xvisor/files/0001-build-use-usr-bin-env-for-python-scripts.patch b/recipes-extended/xvisor/files/0001-build-use-usr-bin-env-for-python-scripts.patch deleted file mode 100644 index 1e37c49e..00000000 --- a/recipes-extended/xvisor/files/0001-build-use-usr-bin-env-for-python-scripts.patch +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | From eb351ca63a86f53cfb18987284a1445d543dfe56 Mon Sep 17 00:00:00 2001 | ||
2 | From: Bruce Ashfield <bruce.ashfield@gmail.com> | ||
3 | Date: Mon, 29 Nov 2021 17:20:00 -0500 | ||
4 | Subject: [PATCH] build: use /usr/bin/env for python scripts | ||
5 | |||
6 | Without this, we break on hosts without /usr/bin/python | ||
7 | |||
8 | Upstream-Status: Inappropriate [embedded specific] | ||
9 | |||
10 | Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> | ||
11 | --- | ||
12 | tools/scripts/d2c.py | 2 +- | ||
13 | tools/scripts/memimg.py | 2 +- | ||
14 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/tools/scripts/d2c.py b/tools/scripts/d2c.py | ||
17 | index b46a7bc4..0a6bce08 100755 | ||
18 | --- a/tools/scripts/d2c.py | ||
19 | +++ b/tools/scripts/d2c.py | ||
20 | @@ -1,4 +1,4 @@ | ||
21 | -#!/usr/bin/python | ||
22 | +#!/usr/bin/env python3 | ||
23 | #/** | ||
24 | # Copyright (c) 2013 Anup Patel. | ||
25 | # All rights reserved. | ||
26 | diff --git a/tools/scripts/memimg.py b/tools/scripts/memimg.py | ||
27 | index 423c9c33..ba2f06cb 100755 | ||
28 | --- a/tools/scripts/memimg.py | ||
29 | +++ b/tools/scripts/memimg.py | ||
30 | @@ -1,4 +1,4 @@ | ||
31 | -#!/usr/bin/python | ||
32 | +#!/usr/bin/env python3 | ||
33 | #/** | ||
34 | # Copyright (c) 2011 Anup Patel. | ||
35 | # All rights reserved. | ||
36 | -- | ||
37 | 2.19.1 | ||
38 | |||
diff --git a/recipes-extended/xvisor/files/0001-vmm_types-drop-C99-defined-bool.patch b/recipes-extended/xvisor/files/0001-vmm_types-drop-C99-defined-bool.patch new file mode 100644 index 00000000..d73488b2 --- /dev/null +++ b/recipes-extended/xvisor/files/0001-vmm_types-drop-C99-defined-bool.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From cc1b6f4a2d4de9b024048626096cabcd1a674d06 Mon Sep 17 00:00:00 2001 | ||
2 | From: Bruce Ashfield <bruce.ashfield@gmail.com> | ||
3 | Date: Tue, 8 Jul 2025 13:35:29 -0400 | ||
4 | Subject: [PATCH] vmm_types: drop C99 defined 'bool' | ||
5 | |||
6 | Upstream-Status: Inappropriate [Adapting to OE default compiler] | ||
7 | |||
8 | Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> | ||
9 | --- | ||
10 | core/include/vmm_types.h | 4 +++- | ||
11 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/core/include/vmm_types.h b/core/include/vmm_types.h | ||
14 | index 70801c4f..7c1084f2 100644 | ||
15 | --- a/core/include/vmm_types.h | ||
16 | +++ b/core/include/vmm_types.h | ||
17 | @@ -42,7 +42,9 @@ typedef long s64; | ||
18 | typedef unsigned long u64; | ||
19 | #endif | ||
20 | |||
21 | -typedef unsigned int bool; | ||
22 | +// not needed for c99 and throws an error | ||
23 | +// typedef unsigned int bool; | ||
24 | + | ||
25 | /* | ||
26 | * Most 32 bit architectures use "unsigned int" size_t, | ||
27 | * and all 64 bit architectures use "unsigned long" size_t. | ||
28 | -- | ||
29 | 2.39.2 | ||
30 | |||
diff --git a/recipes-extended/xvisor/xvisor_git.bb b/recipes-extended/xvisor/xvisor_git.bb index 1d6e79f9..097f1531 100644 --- a/recipes-extended/xvisor/xvisor_git.bb +++ b/recipes-extended/xvisor/xvisor_git.bb | |||
@@ -8,13 +8,12 @@ require xvisor-configs.inc | |||
8 | 8 | ||
9 | inherit autotools-brokensep | 9 | inherit autotools-brokensep |
10 | 10 | ||
11 | PV = "0.3.0+git" | 11 | PV = "0.3.2+git" |
12 | 12 | ||
13 | # This version support the RISC-V v0.5.0 Hypervisor extensions | 13 | # This version support the RISC-V v0.5.0 Hypervisor extensions |
14 | SRCREV = "6b23764a1439f9d08b2ed2f363da522460d8a22b" | 14 | SRCREV = "355c79a07d9c1b783962ebf47b9b18194b7d40bd" |
15 | SRC_URI = "git://github.com/avpatel/xvisor-next.git;branch=master;protocol=https \ | 15 | SRC_URI = "git://github.com/xvisor/xvisor.git;branch=master;protocol=https \ |
16 | file://0001-TESTS-Don-t-specify-mabi-or-march-for-RISC-V.patch \ | 16 | file://0001-TESTS-Don-t-specify-mabi-or-march-for-RISC-V.patch \ |
17 | file://0001-build-use-usr-bin-env-for-python-scripts.patch \ | ||
18 | " | 17 | " |
19 | 18 | ||
20 | EXTRA_OEMAKE += "ARCH=\"${@map_xvisor_arch(d.getVar('TARGET_ARCH'), d)}\" I=${D}" | 19 | EXTRA_OEMAKE += "ARCH=\"${@map_xvisor_arch(d.getVar('TARGET_ARCH'), d)}\" I=${D}" |
@@ -52,4 +51,8 @@ INHIBIT_PACKAGE_STRIP = "1" | |||
52 | 51 | ||
53 | # ERROR: xvisor-git-r0 do_package_qa: QA Issue: File /vmm.elf in package xvisor doesn't have GNU_HASH (didn't pass LDFLAGS?) [ldflags] | 52 | # ERROR: xvisor-git-r0 do_package_qa: QA Issue: File /vmm.elf in package xvisor doesn't have GNU_HASH (didn't pass LDFLAGS?) [ldflags] |
54 | # ERROR: xvisor-git-r0 do_package_qa: QA Issue: xvisor: ELF binary /vmm.elf has relocations in .text [textrel] | 53 | # ERROR: xvisor-git-r0 do_package_qa: QA Issue: xvisor: ELF binary /vmm.elf has relocations in .text [textrel] |
55 | INSANE_SKIP:${PN} += "ldflags textrel" | 54 | # ERROR: xvisor-0.3.2+git-r0 do_package_qa: QA Issue: File /vmm.elf in package xvisor contains reference to TMPDIR [buildpaths] |
55 | # ERROR: xvisor-0.3.2+git-r0 do_package_qa: QA Issue: File /vmm.bin in package xvisor contains reference to TMPDIR [buildpaths] | ||
56 | # ERROR: xvisor-0.3.2+git-r0 do_package_qa: QA Issue: File /.debug/vmm.elf in package xvisor-dbg contains reference to TMPDIR [buildpaths] | ||
57 | INSANE_SKIP:${PN} += "buildpaths ldflags textrel" | ||
58 | INSANE_SKIP:${PN}-dbg += "buildpaths" | ||