From: Dirk Gouders <dirk@gouders.net>
To: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: linux-kbuild@vger.kernel.org, Ulf Magnusson <ulfalizer@gmail.com>,
Linus Torvalds <torvalds@linux-foundation.org>,
Sam Ravnborg <sam@ravnborg.org>,
Michal Marek <michal.lkml@markovi.net>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 00/12] kbuild/kconfig: do not update config during installation
Date: Tue, 10 Jul 2018 13:34:10 +0200 [thread overview]
Message-ID: <gh36wr1g0d.fsf@lena.gouders.net> (raw)
In-Reply-To: <1530758389-30862-1-git-send-email-yamada.masahiro@socionext.com> (Masahiro Yamada's message of "Thu, 5 Jul 2018 11:39:37 +0900")
Masahiro Yamada <yamada.masahiro@socionext.com> writes:
> The main motivation of this patch series is to suppress the syncconfig
> during running installation targets.
>
> V1 consisted of only two patches:
> https://patchwork.kernel.org/patch/10468105/
> https://patchwork.kernel.org/patch/10468103/
>
> I noticed that installation targets would continue running
> even if the source tree is not configured at all
> because the inclusion of include/config/auto.conf was optional.
>
> So, I added one more patch in V2:
> https://patchwork.kernel.org/patch/10483637/
>
> However, kbuild test robot reported a new warning message was displayed:
>
> Makefile:592: include/config/auto.conf: No such file or directory
>
> This warning is displayed only for Make 4.1 or older.
>
> To fix this annoying warning, I changed Kconfig too,
> which leaded to more clean-up, improvements in Kconfig.
>
> So, V3 is a big patch series.
Hello Masahiro,
I tested your series for a while, now. I did not notice real issues
with it but want to leave some remarks about what I noticed in
the surroundings of your patches.
> Masahiro Yamada (12):
> kconfig: rename file_write_dep and move it to confdata.c
I might be missing some trivial use-case, but when looking at this
patch, I noticed an inconsistency with the file names auto.conf and
auto.conf.cmd.
The first can be modified by an environment variable but when this
happens, auto.conf.cmd remains as is. I noticed that only the
Documentation mentions that KCONFIG_AUTOCONFIG exists and confdata.c
uses it to serve the file name -- no other use anywhere.
Now, I am wondering if I just don't see an important case when the
use of KCONFIG_AUTOCONFIG is really helpful or even mandatory.
> kconfig: split out helpers to check file/directory, create directory
> kconfig: remove unneeded directory generation from local*config
> kconfig: create directories needed for syncconfig by itself
> kconfig: make syncconfig update .config regardless of sym_change_count
For this patch, I already mentioned that `conf --help' perhaps could be
updated. On the other side, none of the entries there tells us such
details, so there is probably no need for syncconfig to do so.
> kconfig: allow all config targets to write auto.conf if missing
> kbuild: use 'include' directive to load auto.conf from top Makefile
> kbuild: add .DELETE_ON_ERROR special target
> kbuild: do not update config when running install targets
> kbuild: do not update config for 'make kernelrelease'
> kbuild: remove auto.conf and tristate.conf from prerequisites
In the surrounding of this patch I noticed -include of auto.conf and
tristate.conf in scripts/Makfile.modbuildin. I tried it in some ways
but was not able to trigger that file being used with a missing
auto.conf. On the other hand, if I now manually remove tristate.conf,
that would not be fixed or even noticed, because of -include and I
wonder if it is safer to also change the -includes in that file.
It seems, if one of those files is missing, one must have done it
manually or some other serious issue is present that we probably want to
notice.
Dirk
> kbuild: replace include/config/%.conf with include/config/auto.conf
>
> Makefile | 46 +++++++++------
> scripts/Kbuild.include | 3 +
> scripts/kconfig/Makefile | 16 ++---
> scripts/kconfig/conf.c | 39 +++++++------
> scripts/kconfig/confdata.c | 139 +++++++++++++++++++++++++++++++++++++-------
> scripts/kconfig/gconf.c | 1 +
> scripts/kconfig/lkc.h | 1 -
> scripts/kconfig/lkc_proto.h | 2 +-
> scripts/kconfig/mconf.c | 1 +
> scripts/kconfig/nconf.c | 1 +
> scripts/kconfig/qconf.cc | 2 +
> scripts/kconfig/util.c | 30 ----------
> 12 files changed, 182 insertions(+), 99 deletions(-)
next prev parent reply other threads:[~2018-07-10 11:43 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-05 2:39 Masahiro Yamada
2018-07-05 2:39 ` [PATCH v3 01/12] kconfig: rename file_write_dep and move it to confdata.c Masahiro Yamada
2018-07-05 2:39 ` [PATCH v3 02/12] kconfig: split out helpers to check file/directory, create directory Masahiro Yamada
2018-07-05 2:39 ` [PATCH v3 03/12] kconfig: remove unneeded directory generation from local*config Masahiro Yamada
2018-07-05 2:39 ` [PATCH v3 04/12] kconfig: create directories needed for syncconfig by itself Masahiro Yamada
2018-07-05 2:39 ` [PATCH v3 05/12] kconfig: make syncconfig update .config regardless of sym_change_count Masahiro Yamada
2018-07-06 12:23 ` Dirk Gouders
2018-07-06 23:38 ` Dirk Gouders
2018-07-09 11:39 ` Dirk Gouders
2018-07-10 15:19 ` Kees Cook
2018-07-12 2:12 ` Masahiro Yamada
2018-07-12 11:32 ` Dirk Gouders
2018-07-12 21:06 ` Dirk Gouders
2018-07-13 14:57 ` Masahiro Yamada
2018-07-14 7:12 ` Dirk Gouders
2018-07-05 2:39 ` [PATCH v3 06/12] kconfig: allow all config targets to write auto.conf if missing Masahiro Yamada
2018-07-05 2:39 ` [PATCH v3 07/12] kbuild: use 'include' directive to load auto.conf from top Makefile Masahiro Yamada
2018-07-05 2:39 ` [PATCH v3 08/12] kbuild: add .DELETE_ON_ERROR special target Masahiro Yamada
2018-07-05 2:39 ` [PATCH v3 09/12] kbuild: do not update config when running install targets Masahiro Yamada
2018-07-05 2:39 ` [PATCH v3 10/12] kbuild: do not update config for 'make kernelrelease' Masahiro Yamada
2018-07-05 2:39 ` [PATCH v3 11/12] kbuild: remove auto.conf and tristate.conf from prerequisites Masahiro Yamada
2018-07-05 2:39 ` [PATCH v3 12/12] kbuild: replace include/config/%.conf with include/config/auto.conf Masahiro Yamada
2018-07-10 11:34 ` Dirk Gouders [this message]
2018-07-12 8:29 ` [PATCH v3 00/12] kbuild/kconfig: do not update config during installation Masahiro Yamada
2018-07-13 7:44 ` Dirk Gouders
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh36wr1g0d.fsf@lena.gouders.net \
--to=dirk@gouders.net \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.lkml@markovi.net \
--cc=sam@ravnborg.org \
--cc=torvalds@linux-foundation.org \
--cc=ulfalizer@gmail.com \
--cc=yamada.masahiro@socionext.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®