kbuild: add real-prereqs shorthand for $(filter-out FORCE, $^)

Backport from kernel
commit afa974b77128 ("kbuild: add real-prereqs shorthand for $(filter-out FORCE,$^)")

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
Ilias Apalodimas
2025-05-29 18:42:37 -06:00
committed by Tom Rini
parent 39160c5fbf
commit a73c41c398
3 changed files with 10 additions and 6 deletions
+4
View File
@@ -27,6 +27,10 @@ basetarget = $(basename $(notdir $@))
# filename of first prerequisite with directory and extension stripped
baseprereq = $(basename $(notdir $<))
###
# real prerequisites without phony targets
real-prereqs = $(filter-out $(PHONY), $^)
###
# Escape single quote for use in echo statements
escsq = $(subst $(squote),'\$(squote)',$1)