From: Arnaud Lacombe Date: Wed, 1 Jun 2011 21:50:25 +0000 (-0400) Subject: kbuild: add `baseprereq' X-Git-Tag: Ubuntu-5.13.0-19.19~26727^2~4^2~13 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=e0318d85be66ff1ff55c4cbc832cb3ee9e669da8;p=mirror_ubuntu-jammy-kernel.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)