diff options
Diffstat (limited to 'recipes-extended/xvisor/files')
| -rw-r--r-- | recipes-extended/xvisor/files/0001-build-use-usr-bin-env-for-python-scripts.patch | 38 | ||||
| -rw-r--r-- | recipes-extended/xvisor/files/0001-vmm_types-drop-C99-defined-bool.patch | 30 |
2 files changed, 30 insertions, 38 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 | |||
