On Mon, Mar 03, 2025 at 04:05:54AM -0800, H. Peter Anvin wrote:
"make headers" on an unconfigured tree should presumably only produce the uapi headers, not kernel-internal ones, one could surmise?
Well, that's kinda a question for you guys:
cfc7686900a87 (H. Peter Anvin (Intel) 2025-02-28 00:23:36 -0800 281)archheaders: $(out)/$(featuremasks_hdr)
1f57d5d85ba7f (Ingo Molnar 2015-06-03 18:36:41 +0200 282) $(Q)$(MAKE) $(build)=arch/x86/entry/syscalls all
and the headers target has
headers: $(version_h) scripts_unifdef uapi-asm-generic archheaders archscripts
as its prereq.
Judging by
59b2bd05f5f4 ("kbuild: add 'headers' target to build up uapi headers in usr/include")
it sure looks like "make headers" should be for uapi headers only.
Oh, and it should be documented in "make help" output btw.