From: Arnaud Lacombe Date: Wed, 1 Jun 2011 21:50:25 +0000 (-0400) Subject: kbuild: add `baseprereq' X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e0318d85be66ff1ff55c4cbc832cb3ee9e669da8;p=openwrt%2Fstaging%2Fblogic.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 be39cd1c74cf..d897278b1f97 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -20,6 +20,10 @@ depfile = $(subst $(comma),_,$(dot-target).d) # filename of target with directory and extension stripped 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)