can we use mandatory-y for non-uapi headers?
Hi Masahiro,
what is the reason that the documentation says mandatory-y should only be used for uapi headers? If would also be very useful for normal asm-generic headers where most people use the generic version and we only have a few overrides. Two headers that immediately come to mind are dma-mapping.h, or msi.h.
Christoph,
Quoted 5 lines · Christoph Hellwig
Hi Masahiro,
what is the reason that the documentation says mandatory-y should only be used for uapi headers?
Where is it documented?
Documentation/kbuild/makefiles.rst section 7.4 describes mandatory-y is essentially used by include/(uapi/)asm-generic/Kbuild
include/(uapi/)asm-generic/Kbuild means:
include/uapi/asm-generic/Kbuildinclude/asm-generic/Kbuild
Signature · 2 lines
Best Regards Masahiro Yamada
Quoted 5 lines · Masahiro Yamada
Quoted 2 lines
what is the reason that the documentation says mandatory-y should only be used for uapi headers?
Where is it documented?
Quoted 7 lines
Documentation/kbuild/makefiles.rstsection 7.4 describes mandatory-y is essentially used by include/(uapi/)asm-generic/Kbuildinclude/(uapi/)asm-generic/Kbuild means:
include/uapi/asm-generic/Kbuildinclude/asm-generic/Kbuild
Ok, maybe it was just me misreading the documentation. In that case I'll start submitting patches to use it more.