From: Arnaud Lacombe Date: Wed, 1 Jun 2011 21:50:25 +0000 (-0400) Subject: kbuild: add `baseprereq' X-Git-Tag: v3.1-rc1~242^2~4^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e0318d85be66ff1ff55c4cbc832cb3ee9e669da8;p=thirdparty%2Fkernel%2Flinux.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 be39cd1c74cff..d897278b1f975 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)