]> www.infradead.org Git - users/dwmw2/linux.git/commit
kbuild: add syscall table generation to scripts/Makefile.asm-headers
authorArnd Bergmann <arnd@arndb.de>
Fri, 26 Apr 2024 13:19:48 +0000 (15:19 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 10 Jul 2024 12:23:38 +0000 (14:23 +0200)
commitfbb5c0606fa4506e9085e7a62c9e0098e573ce7a
treebcda5bc650528a4870d4feaff6bba11e85f1742e
parentb70f12e962bc73a091a7b853f24ae2049613c684
kbuild: add syscall table generation to scripts/Makefile.asm-headers

There are 11 copies of arch/*/kernel/syscalls/Makefile that all implement
the same basic logic in a somewhat awkward way.

I tried out various ways of unifying the existing copies and ended up
with something that hooks into the logic for generating the redirections
to asm-generic headers. This gives a nicer syntax of being able to list
the generated files in $(syscall-y) inside of arch/*/include/asm/Kbuild
instead of both $(generated-y) in that place and also in another
Makefile.

The configuration for which syscall.tbl file to use and which ABIs to
enable is now done in arch/*/kernel/Makefile.syscalls. I have done
patches for all architectures and made sure that the new generic
rules implement a superset of all the architecture specific corner
cases.

ince the header file is not specific to asm-generic/*.h redirects
now, I ended up renaming the file to scripts/Makefile.asm-headers.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Makefile
scripts/Makefile.asm-generic [deleted file]
scripts/Makefile.asm-headers [new file with mode: 0644]