diff options
author | Arnaud Lacombe <lacombar@gmail.com> | 2011-06-01 17:50:25 -0400 |
---|---|---|
committer | Arnaud Lacombe <lacombar@gmail.com> | 2011-06-09 14:04:38 -0400 |
commit | e0318d85be66ff1ff55c4cbc832cb3ee9e669da8 (patch) | |
tree | c0617f5ec00b58626361104031ff124f254cb57d | |
parent | 55922c9d1b84b89cb946c777fddccb3247e7df2c (diff) | |
download | op-kernel-dev-e0318d85be66ff1ff55c4cbc832cb3ee9e669da8.zip op-kernel-dev-e0318d85be66ff1ff55c4cbc832cb3ee9e669da8.tar.gz |
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>
-rw-r--r-- | scripts/Kbuild.include | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index be39cd1..d897278 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) |