linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
0001-handle-outfile-path-in-mkheader.py.patch
(956B)
1 From c64e6a452caec85e116f2b263bed1e80fa83e0b3 Mon Sep 17 00:00:00 2001
2 From: Jul <jul@qh.is>
3 Date: Tue, 25 Nov 2025 00:22:03 -0500
4 Subject: [PATCH 1/2] handle outfile path in mkheader.py
5
6 ---
7 tools/include/xen-foreign/mkheader.py | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
9
10 diff --git a/tools/include/xen-foreign/mkheader.py b/tools/include/xen-foreign/mkheader.py
11 index 128b0f3014..7b14a3a9d3 100644
12 --- a/tools/include/xen-foreign/mkheader.py
13 +++ b/tools/include/xen-foreign/mkheader.py
14 @@ -2,7 +2,7 @@
15
16 from __future__ import print_function
17
18 -import sys, re
19 +import sys, re, os
20 from structs import unions, structs, defines
21
22 # command line arguments
23 @@ -114,7 +114,7 @@ footer["x86_64"] = """
24
25 input = ""
26 output = ""
27 -fileid = re.sub("[-.]", "_", "__FOREIGN_%s__" % outfile.upper())
28 +fileid = re.sub("[-.]", "_", "__FOREIGN_%s__" % os.path.basename(outfile).upper())
29
30 for name in infiles:
31 f = open(name, "r")
32 --
33 2.51.0
34