Re: The UAPI references Kconfig's CONFIG_* macros (variables)

From: Arnd Bergmann
Date: Wed May 15 2019 - 17:11:59 EST


On Sat, May 11, 2019 at 6:29 AM Michael Witten <mfwitten@xxxxxxxxx> wrote:

>
> What is the correct way to think about this?
>
> * Should the UAPI make no reference to build-time configurations?

Right, with the exception of uses inside of #ifdef __KERNEL__.

> * Should the UAPI headers include sanity checks on behalf of the user?
> * Should there be a `/proc/config.h.gz' facility?

This would not work, since applications don't always run on the systems
they are compiled on, in particular when cross-compiling to another
architecture.

Arnd