Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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>
  • Loading branch information...
commit e0318d85be66ff1ff55c4cbc832cb3ee9e669da8 1 parent 55922c9
@lacombar lacombar authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 scripts/Kbuild.include
View
4 scripts/Kbuild.include
@@ -21,6 +21,10 @@ depfile = $(subst $(comma),_,$(dot-target).d)
basetarget = $(basename $(notdir $@))
###
+# filename of first prerequisite with directory and extension stripped
+baseprereq = $(basename $(notdir $<))
+
+###
# Escape single quote for use in echo statements
escsq = $(subst $(squote),'\$(squote)',$1)
Please sign in to comment.
Something went wrong with that request. Please try again.