Commit: 1a0cc05867a9a0ab7dd7cacf657e44a8bd6c8fe2
Parent: b18efae6ca131adc5dbe31bb73c473389121f7e2
Author: Michael Forney
Date: Tue, 17 Mar 2026 00:06:54 -0700
linux-headers: Add missing generic kvm_para.h wrapper on arm64
Diffstat:
3 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/pkg/devel/linux-headers/arm64.lua b/pkg/devel/linux-headers/arm64.lua
@@ -20,4 +20,8 @@ return {
'asm/ucontext.h',
'asm/unistd.h',
unistd={},
+ generic={
+ -- <awk '$1 == "generic-y" {printf "\\t\\t'\'%s\'',\\n", $3}' src/arch/arm64/include/uapi/asm/Kbuild
+ 'kvm_para.h',
+ },
}
diff --git a/pkg/devel/linux-headers/gen.lua b/pkg/devel/linux-headers/gen.lua
@@ -72,13 +72,20 @@ pkg.hdrs = {
for _, file in ipairs(archfiles) do
archfiles[file] = true
end
+
+local function wrap(file)
+ local out = '$outdir/include/asm/'..file
+ build('wrapper', out, nil, {file=file})
+ table.insert(pkg.hdrs, out)
+end
for _, file in ipairs(mandatory) do
if not archfiles['asm/'..file] then
- local out = '$outdir/include/asm/'..file
- build('wrapper', out, nil, {file=file})
- table.insert(pkg.hdrs, out)
+ wrap(file)
end
end
+for _, file in ipairs(archfiles.generic) do
+ wrap(file)
+end
for _, spec in ipairs(archfiles.unistd) do
local out = '$outdir/include/asm/'..spec.dst
diff --git a/pkg/devel/linux-headers/x86.lua b/pkg/devel/linux-headers/x86.lua
@@ -67,4 +67,5 @@ return {
abi='common|64',
},
},
+ generic={},
}