Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: uapi: split out command conditions into variables

The condition logic will become a bit more complicated.

Split them out into dedicated variables so they stay readable.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Link: https://patch.msgid.link/20251223-uapi-nostdinc-v1-4-d91545d794f7@linutronix.de
Signed-off-by: Nathan Chancellor <nathan@kernel.org>

authored by

Thomas Weißschuh and committed by
Nathan Chancellor
4ac85d9b e2772ba5

+5 -2
+5 -2
usr/include/Makefile
··· 150 150 151 151 always-y := $(patsubst $(obj)/%.h,%.hdrtest, $(shell find $(obj) -name '*.h' 2>/dev/null)) 152 152 153 + target-no-libc = $(filter-out $(uses-libc), $*.h) 154 + target-can-compile = $(filter-out $(no-header-test), $*.h) 155 + 153 156 # Include the header twice to detect missing include guard. 154 157 quiet_cmd_hdrtest = HDRTEST $< 155 158 cmd_hdrtest = \ 156 159 $(CC) $(c_flags) -fsyntax-only -Werror -x c /dev/null \ 157 - $(if $(filter-out $(uses-libc), $*.h), -nostdinc) \ 158 - $(if $(filter-out $(no-header-test), $*.h), -include $< -include $<); \ 160 + $(if $(target-no-libc), -nostdinc) \ 161 + $(if $(target-can-compile), -include $< -include $<); \ 159 162 $(PERL) $(src)/headers_check.pl $(obj) $<; \ 160 163 touch $@ 161 164