Skip to content

Commit e0318d8

Browse files
committed
kbuild: add `baseprereq'
On the same model as `basetarget', it represents the filename of first prerequisite with directory and extension stripped. Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
1 parent 55922c9 commit e0318d8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎scripts/Kbuild.include‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ depfile = $(subst $(comma),_,$(dot-target).d)
2020
# filename of target with directory and extension stripped
2121
basetarget = $(basename $(notdir $@))
2222

23+
###
24+
# filename of first prerequisite with directory and extension stripped
25+
baseprereq = $(basename $(notdir $<))
26+
2327
###
2428
# Escape single quote for use in echo statements
2529
escsq = $(subst $(squote),'\$(squote)',$1)

0 commit comments

Comments
 (0)