LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] kbuild: allow "make" targets 'versioncheck' and 'includecheck' withoug .config file
@ 2021-08-11 22:54 Randy Dunlap
2021-08-13 7:27 ` Masahiro Yamada
2021-08-13 8:32 ` Nicolas Schier
0 siblings, 2 replies; 4+ messages in thread
From: Randy Dunlap @ 2021-08-11 22:54 UTC (permalink / raw)
To: linux-kernel; +Cc: Randy Dunlap, Masahiro Yamada, Michal Marek, linux-kbuild
Top-level Makefile targets 'versioncheck' and 'includecheck' don't
need a configured kernel (i.e., don't need a .config file), so add
them the the list of "no-dot-config-targets".
This eliminates the 'make' error:
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
Makefile:759: include/config/auto.conf.cmd: No such file or directory
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Michal Marek <michal.lkml@markovi.net>
Cc: linux-kbuild@vger.kernel.org
---
Fixes: I couldn't determine this.
Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- linux-next-20210811.orig/Makefile
+++ linux-next-20210811/Makefile
@@ -274,7 +274,8 @@ no-dot-config-targets := $(clean-targets
cscope gtags TAGS tags help% %docs check% coccicheck \
$(version_h) headers headers_% archheaders archscripts \
%asm-generic kernelversion %src-pkg dt_binding_check \
- outputmakefile rustfmt rustfmtcheck
+ outputmakefile rustfmt rustfmtcheck \
+ versioncheck includecheck
# Installation targets should not require compiler. Unfortunately, vdso_install
# is an exception where build artifacts may be updated. This must be fixed.
no-compiler-targets := $(no-dot-config-targets) install dtbs_install \
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] kbuild: allow "make" targets 'versioncheck' and 'includecheck' withoug .config file
2021-08-11 22:54 [PATCH] kbuild: allow "make" targets 'versioncheck' and 'includecheck' withoug .config file Randy Dunlap
@ 2021-08-13 7:27 ` Masahiro Yamada
2021-08-13 8:32 ` Nicolas Schier
1 sibling, 0 replies; 4+ messages in thread
From: Masahiro Yamada @ 2021-08-13 7:27 UTC (permalink / raw)
To: Randy Dunlap
Cc: Linux Kernel Mailing List, Michal Marek, Linux Kbuild mailing list
On Thu, Aug 12, 2021 at 7:54 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>
> Top-level Makefile targets 'versioncheck' and 'includecheck' don't
> need a configured kernel (i.e., don't need a .config file), so add
> them the the list of "no-dot-config-targets".
> This eliminates the 'make' error:
>
> ***
> *** Configuration file ".config" not found!
> ***
> *** Please run some configurator (e.g. "make oldconfig" or
> *** "make menuconfig" or "make xconfig").
> ***
> Makefile:759: include/config/auto.conf.cmd: No such file or directory
>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Masahiro Yamada <masahiroy@kernel.org>
> Cc: Michal Marek <michal.lkml@markovi.net>
> Cc: linux-kbuild@vger.kernel.org
> ---
> Fixes: I couldn't determine this.
>
> Makefile | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> --- linux-next-20210811.orig/Makefile
> +++ linux-next-20210811/Makefile
> @@ -274,7 +274,8 @@ no-dot-config-targets := $(clean-targets
> cscope gtags TAGS tags help% %docs check% coccicheck \
> $(version_h) headers headers_% archheaders archscripts \
> %asm-generic kernelversion %src-pkg dt_binding_check \
> - outputmakefile rustfmt rustfmtcheck
> + outputmakefile rustfmt rustfmtcheck \
> + versioncheck includecheck
> # Installation targets should not require compiler. Unfortunately, vdso_install
> # is an exception where build artifacts may be updated. This must be fixed.
> no-compiler-targets := $(no-dot-config-targets) install dtbs_install \
There is no good reason to invoke checkincludes.pl via GNU Make
in the first place.
A better solution is to do it by a shell script
or to make checkincludes.pl traverse the
subdirectories by itself.
[1] An easy solution
Add scripts/checkincludes-all:
#!/bin/sh
find . -name '*.[hcS]' -type f -print | sort \
| xargs $(dirname $0)/checkincludes.pl
Then, remove the 'includecheck' target from the Makefile.
You can do 'scripts/checkincludes-all'
instead of 'make includecheck'.
[2] A better solution
Extend scripts/checkincludes.pl so that it checks
all *.[hcS] files under the current directory
when no argument is passed.
You can simply do 'scripts/checkincludes.py'
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] kbuild: allow "make" targets 'versioncheck' and 'includecheck' withoug .config file
2021-08-11 22:54 [PATCH] kbuild: allow "make" targets 'versioncheck' and 'includecheck' withoug .config file Randy Dunlap
2021-08-13 7:27 ` Masahiro Yamada
@ 2021-08-13 8:32 ` Nicolas Schier
2021-08-13 15:00 ` Randy Dunlap
1 sibling, 1 reply; 4+ messages in thread
From: Nicolas Schier @ 2021-08-13 8:32 UTC (permalink / raw)
To: Randy Dunlap; +Cc: linux-kernel, Masahiro Yamada, Michal Marek, linux-kbuild
On Wed, Aug 11, 2021 at 03:54:42PM -0700, Randy Dunlap wrote:
> Top-level Makefile targets 'versioncheck' and 'includecheck' don't
> need a configured kernel (i.e., don't need a .config file), so add
> them the the list of "no-dot-config-targets".
> This eliminates the 'make' error:
>
> ***
> *** Configuration file ".config" not found!
> ***
> *** Please run some configurator (e.g. "make oldconfig" or
> *** "make menuconfig" or "make xconfig").
> ***
> Makefile:759: include/config/auto.conf.cmd: No such file or directory
>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Masahiro Yamada <masahiroy@kernel.org>
> Cc: Michal Marek <michal.lkml@markovi.net>
> Cc: linux-kbuild@vger.kernel.org
> ---
I like that change, works for me as expected. Possibly you might want
to fix the commit subject typo (withoug -> without).
Regards,
Nicolas
> Fixes: I couldn't determine this.
>
> Makefile | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> --- linux-next-20210811.orig/Makefile
> +++ linux-next-20210811/Makefile
> @@ -274,7 +274,8 @@ no-dot-config-targets := $(clean-targets
> cscope gtags TAGS tags help% %docs check% coccicheck \
> $(version_h) headers headers_% archheaders archscripts \
> %asm-generic kernelversion %src-pkg dt_binding_check \
> - outputmakefile rustfmt rustfmtcheck
> + outputmakefile rustfmt rustfmtcheck \
> + versioncheck includecheck
> # Installation targets should not require compiler. Unfortunately, vdso_install
> # is an exception where build artifacts may be updated. This must be fixed.
> no-compiler-targets := $(no-dot-config-targets) install dtbs_install \
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] kbuild: allow "make" targets 'versioncheck' and 'includecheck' withoug .config file
2021-08-13 8:32 ` Nicolas Schier
@ 2021-08-13 15:00 ` Randy Dunlap
0 siblings, 0 replies; 4+ messages in thread
From: Randy Dunlap @ 2021-08-13 15:00 UTC (permalink / raw)
To: Nicolas Schier; +Cc: linux-kernel, Masahiro Yamada, Michal Marek, linux-kbuild
On 8/13/21 1:32 AM, Nicolas Schier wrote:
> On Wed, Aug 11, 2021 at 03:54:42PM -0700, Randy Dunlap wrote:
>> Top-level Makefile targets 'versioncheck' and 'includecheck' don't
>> need a configured kernel (i.e., don't need a .config file), so add
>> them the the list of "no-dot-config-targets".
>> This eliminates the 'make' error:
>>
>> ***
>> *** Configuration file ".config" not found!
>> ***
>> *** Please run some configurator (e.g. "make oldconfig" or
>> *** "make menuconfig" or "make xconfig").
>> ***
>> Makefile:759: include/config/auto.conf.cmd: No such file or directory
>>
>> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
>> Cc: Masahiro Yamada <masahiroy@kernel.org>
>> Cc: Michal Marek <michal.lkml@markovi.net>
>> Cc: linux-kbuild@vger.kernel.org
>> ---
>
> I like that change, works for me as expected. Possibly you might want
> to fix the commit subject typo (withoug -> without).
>
Yes, I noticed that a few minutes after I sent it, but I guess
that this patch isn't going anywhere.
Thanks.
>
>
>> Fixes: I couldn't determine this.
>>
>> Makefile | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> --- linux-next-20210811.orig/Makefile
>> +++ linux-next-20210811/Makefile
>> @@ -274,7 +274,8 @@ no-dot-config-targets := $(clean-targets
>> cscope gtags TAGS tags help% %docs check% coccicheck \
>> $(version_h) headers headers_% archheaders archscripts \
>> %asm-generic kernelversion %src-pkg dt_binding_check \
>> - outputmakefile rustfmt rustfmtcheck
>> + outputmakefile rustfmt rustfmtcheck \
>> + versioncheck includecheck
>> # Installation targets should not require compiler. Unfortunately, vdso_install
>> # is an exception where build artifacts may be updated. This must be fixed.
>> no-compiler-targets := $(no-dot-config-targets) install dtbs_install \
--
~Randy
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-08-13 15:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-11 22:54 [PATCH] kbuild: allow "make" targets 'versioncheck' and 'includecheck' withoug .config file Randy Dunlap
2021-08-13 7:27 ` Masahiro Yamada
2021-08-13 8:32 ` Nicolas Schier
2021-08-13 15:00 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).