Commit e0318d85be66ff1ff55c4cbc832cb3ee9e669da8

Authored by Arnaud Lacombe
1 parent 55922c9d1b

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>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

scripts/Kbuild.include
... ... @@ -21,6 +21,10 @@
21 21 basetarget = $(basename $(notdir $@))
22 22  
23 23 ###
  24 +# filename of first prerequisite with directory and extension stripped
  25 +baseprereq = $(basename $(notdir $<))
  26 +
  27 +###
24 28 # Escape single quote for use in echo statements
25 29 escsq = $(subst $(squote),'\$(squote)',$1)
26 30