s390: add custom target and make path extension optional for .bss check
authorVasily Gorbik <gor@linux.ibm.com>
Wed, 16 May 2018 08:50:02 +0000 (10:50 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 25 Jun 2018 08:14:39 +0000 (10:14 +0200)
"chkbss-target" could be now used to override default target .bss check
is bound to. Objects to be checked are only path extended when needed.

Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/scripts/Makefile.chkbss

index d92f2d94a5d94f0e7cfd0a237511bbbb59fff847..fb0a11bd520c1bc9529fcd180fdc85a61f7dec95 100644 (file)
@@ -8,7 +8,12 @@ define cmd_chkbss
        touch $@;
 endef
 
-$(obj)/built-in.a: $(patsubst %, $(obj)/%.chkbss, $(chkbss))
+chkbss-target ?= $(obj)/built-in.a
+ifneq (,$(findstring /,$(chkbss)))
+$(chkbss-target): $(patsubst %, %.chkbss, $(chkbss))
+else
+$(chkbss-target): $(patsubst %, $(obj)/%.chkbss, $(chkbss))
+endif
 
 %.o.chkbss: %.o
        $(call cmd,chkbss)