commit ddde056

Michael Forney  ·  2026-03-17 07:06:54 +0000 UTC
parent 9e0d1da
linux-headers: Add missing generic kvm_para.h wrapper on arm64
3 files changed,  +15, -3
+4, -0
1@@ -20,4 +20,8 @@ return {
2 	'asm/ucontext.h',
3 	'asm/unistd.h',
4 	unistd={},
5+	generic={
6+		-- <awk '$1 == "generic-y" {printf "\\t\\t'\'%s\'',\\n", $3}' src/arch/arm64/include/uapi/asm/Kbuild
7+		'kvm_para.h',
8+	},
9 }
+10, -3
 1@@ -72,13 +72,20 @@ pkg.hdrs = {
 2 for _, file in ipairs(archfiles) do
 3 	archfiles[file] = true
 4 end
 5+
 6+local function wrap(file)
 7+	local out = '$outdir/include/asm/'..file
 8+	build('wrapper', out, nil, {file=file})
 9+	table.insert(pkg.hdrs, out)
10+end
11 for _, file in ipairs(mandatory) do
12 	if not archfiles['asm/'..file] then
13-		local out = '$outdir/include/asm/'..file
14-		build('wrapper', out, nil, {file=file})
15-		table.insert(pkg.hdrs, out)
16+		wrap(file)
17 	end
18 end
19+for _, file in ipairs(archfiles.generic) do
20+	wrap(file)
21+end
22 
23 for _, spec in ipairs(archfiles.unistd) do
24 	local out = '$outdir/include/asm/'..spec.dst
+1, -0
1@@ -67,4 +67,5 @@ return {
2 			abi='common|64',
3 		},
4 	},
5+	generic={},
6 }