Re: [PATCH 10/23] kbuild: refactor the check for missing config files
From: Nicolas Schier
Date: Wed Sep 25 2024 - 10:45:24 EST
On Tue, Sep 17, 2024 at 11:16:38PM +0900, Masahiro Yamada wrote:
> This commit refactors the check for missing configuration files, making
> it easier to add more files to the list.
>
> The format of the error message has been slightly changed, as follows:
>
> [Before]
>
> ERROR: Kernel configuration is invalid.
> include/generated/autoconf.h or include/config/auto.conf are missing.
> Run 'make oldconfig && make prepare' on kernel src to fix it.
>
> [After]
>
> ***
> *** ERROR: Kernel configuration is invalid. The following files are missing:
> *** - include/generated/autoconf.h
> *** - include/config/auto.conf
> *** Run "make oldconfig && make prepare" on kernel source to fix it.
> ***
>
> Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
> ---
>
> Makefile | 21 +++++++++++++--------
> 1 file changed, 13 insertions(+), 8 deletions(-)
Reviewed-by: Nicolas Schier <n.schier@xxxxxx>