From: Arnaud Lacombe Date: Wed, 1 Jun 2011 21:50:25 +0000 (-0400) Subject: kbuild: add `baseprereq' X-Git-Url: http://git.mmlx.us/?a=commitdiff_plain;h=e0318d85be66ff1ff55c4cbc832cb3ee9e669da8;p=linux-edison.git 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 --- diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index be39cd1c74c..d897278b1f9 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)