• Arnd Bergmann's avatar
    kbuild: add syscall table generation to scripts/Makefile.asm-headers · fbb5c060
    Arnd Bergmann authored
    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: default avatarArnd Bergmann <arnd@arndb.de>
    fbb5c060
Makefile.asm-headers 3.21 KB