linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
commit fa3753b8e2a983a84b474f8c5d469daa6795d3db parent 9c5d1a6d59a1d5201d13bea930a83c486c7e4046 Author: Jul <jul@9o.is> Date: Fri, 7 Nov 2025 01:16:26 -0500 slightly clean up linux-headers headers Diffstat:
| M | pkg/linux-headers/gen.sh | | | 16 | +++++++--------- |
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/pkg/linux-headers/gen.sh b/pkg/linux-headers/gen.sh @@ -14,6 +14,7 @@ esac rule header 'sed -E -f $dir/header.sed $in >$out.tmp && { $hostdir/unifdef -U__KERNEL__ -D__EXPORTED_HEADERS__ $out.tmp >$out; [ $$? -le 1 ]; } && rm $out.tmp' bind description 'LINUX HEADER $out' + rule wrapper 'printf "#include <asm-generic/%s>\n" $file >$out' bind description 'LINUX HEADER $out' @@ -21,16 +22,13 @@ host() { exe unifdef scripts/unifdef.c } -add_header() { - sync $1 - include $2 -} - uapi_headers() { while read -r src; do outfile=$outdir/include/${src#*/uapi/} - build header $outfile $srcdir/$src '|' $dir/header.sed $hostdir/unifdef - add_header $srcdir/$src $outfile + srcfile=$srcdir/$src + build header $outfile $srcfile '|' $dir/header.sed $hostdir/unifdef + sync $srcfile + include $outfile done <$DIR/$1 } @@ -61,7 +59,8 @@ asm_headers mandatory build awk $outdir/include/linux/version.h $srcdir/Makefile '|' $dir/version.awk bind expr '-f $dir/version.awk' -add_header $srcdir/Makefile $outdir/include/linux/version.h +sync $srcdir/Makefile +include $outdir/include/linux/version.h if [ $linux_headers_arch = x86 ]; then @@ -69,4 +68,3 @@ if [ $linux_headers_arch = x86 ]; then unistd_header unistd_x32.h arch/x86/entry/syscalls/syscall_64.tbl 'common|x32' __X32_SYSCALL_BIT unistd_header unistd_64.h arch/x86/entry/syscalls/syscall_64.tbl 'common|64' fi -