Dan Williams wrote: [..] > This does not look like typical meson conditional functionality. I would > expect is to match what happens for conditional "keyutils" > functionality. A new "if get_option('fwctl').enabled()" option that > gates other dependencies.
Recall that the include/uapi/linux/ndctl.h dependency is vendored in ndctl/ndctl.h. Keep the same policy for all uapi dependencies. I.e. do not make the ndctl need to reacy to whatever random version of a uapi header exists ships in the build environment. Just vendor latest kernel headers like include/uapi/cxl/features.h in the project directly. Make the option to enable fwctl support for a meson option.