kbuild: add `baseprereq'
authorArnaud Lacombe <lacombar@gmail.com>
Wed, 1 Jun 2011 21:50:25 +0000 (17:50 -0400)
committerArnaud Lacombe <lacombar@gmail.com>
Thu, 9 Jun 2011 18:04:38 +0000 (14:04 -0400)
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>
scripts/Kbuild.include

index be39cd1..d897278 100644 (file)
@@ -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)