[PATCH v1] kbuild: Allow building of samples with UML
Nicolas Schier
n.schier at avm.de
Mon Feb 10 23:48:32 PST 2025
On Wed, Dec 18, 2024 at 12:51:23PM +0100, Mickaël Salaün wrote:
> It's useful to build samples/* with UML and the only blocker is the
> artificial incompatibility with CONFIG_HEADERS_INSTALL.
>
> Allow the headers_install target with ARCH=um, which then allow building
> samples (and tests using them) with UML too:
>
> printf 'CONFIG_SAMPLES=y\nCONFIG_HEADERS_INSTALL=y\nCONFIG_SAMPLE_LANDLOCK=y\n' >.config
> make ARCH=um olddefconfig headers_install
> make ARCH=um samples/landlock/
>
> Cc: Anton Ivanov <anton.ivanov at cambridgegreys.com>
> Cc: Johannes Berg <johannes at sipsolutions.net>
> Cc: Masahiro Yamada <masahiroy at kernel.org>
> Cc: Nathan Chancellor <nathan at kernel.org>
> Cc: Nicolas Schier <nicolas at fjasle.eu>
> Cc: Richard Weinberger <richard at nod.at>
> Fixes: 1b620d539ccc ("kbuild: disable header exports for UML in a straightforward way")
> Signed-off-by: Mickaël Salaün <mic at digikod.net>
> ---
> Makefile | 1 -
> lib/Kconfig.debug | 1 -
> 2 files changed, 2 deletions(-)
>
Thanks, looks good to me.
Reviewed-by: Nicolas Schier <n.schier at avm.de>
More information about the linux-um
mailing list