summaryrefslogtreecommitdiffstats
path: root/scripts/Kbuild.include
diff options
context:
space:
mode:
authorArnaud Lacombe <lacombar@gmail.com>2011-06-01 23:50:25 +0200
committerArnaud Lacombe <lacombar@gmail.com>2011-06-09 20:04:38 +0200
commite0318d85be66ff1ff55c4cbc832cb3ee9e669da8 (patch)
treec0617f5ec00b58626361104031ff124f254cb57d /scripts/Kbuild.include
parentLinux 3.0-rc1 (diff)
downloadlinux-e0318d85be66ff1ff55c4cbc832cb3ee9e669da8.tar.xz
linux-e0318d85be66ff1ff55c4cbc832cb3ee9e669da8.zip
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>
Diffstat (limited to 'scripts/Kbuild.include')
-rw-r--r--scripts/Kbuild.include4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include
index be39cd1c74cf..d897278b1f97 100644
--- a/scripts/Kbuild.include
+++ b/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)