[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK7LNAQ3NnWvK=jJ5a-bpYuCGtpfYztu7qPpi4Gd+6jR_62eQQ@mail.gmail.com>
Date: Thu, 16 Aug 2018 12:27:44 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: Randy Dunlap <rdunlap@...radead.org>
Cc: linux-kbuild <linux-kbuild@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] kconfig: add build-only configurator targets
2018-08-15 9:36 GMT+09:00 Randy Dunlap <rdunlap@...radead.org>:
> From: Randy Dunlap <rdunlap@...radead.org>
>
> Add build-only targets for build_menuconfig, build_nconfig,
> build_xconfig, and build_gconfig.
> (targets must end in "config" to qualify in top-level Makefile)
>
> This allows these target to be built without execution (e.g., to
> look for errors or warnings) and/or to be built and checked by sparse.
>
> Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
> ---
> scripts/kconfig/Makefile | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> --- linux-next-20180814.orig/scripts/kconfig/Makefile
> +++ linux-next-20180814/scripts/kconfig/Makefile
> @@ -33,6 +33,14 @@ config: $(obj)/conf
> nconfig: $(obj)/nconf
> $< $(silent) $(Kconfig)
>
> +build_menuconfig: $(obj)/mconf
> +
> +build_nconfig: $(obj)/nconf
> +
> +build_gconfig: $(obj)/gconf
> +
> +build_xconfig: $(obj)/qconf
> +
> localyesconfig localmodconfig: $(obj)/conf
> $(Q)perl $(srctree)/$(src)/streamline_config.pl --$@ $(srctree) $(Kconfig) > .tmp.config
> $(Q)if [ -f .config ]; then \
>
OK, seems useful,
but these should be phony targets.
May I squash the following change?
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index c0ca9ea..f7bdcc9 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -3,7 +3,8 @@
# Kernel configuration targets
# These targets are used from top-level makefile
-PHONY += xconfig gconfig menuconfig config localmodconfig localyesconfig
+PHONY += xconfig gconfig menuconfig config localmodconfig localyesconfig \
+ build_menuconfig build_nconfig build_gconfig build_xconfig
ifdef KBUILD_KCONFIG
Kconfig := $(KBUILD_KCONFIG)
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists