diff options
author | Vasily Gorbik <gor@linux.ibm.com> | 2018-05-16 10:50:02 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2018-06-25 10:14:39 +0200 |
commit | 78c95647e76d830e8193ac254a012b0e56d5675d (patch) | |
tree | 27ba264d952d710f29d70f22bfe98af4add2641a | |
parent | s390/decompressor: avoid repeating objects list in Makefile (diff) | |
download | linux-78c95647e76d830e8193ac254a012b0e56d5675d.tar.xz linux-78c95647e76d830e8193ac254a012b0e56d5675d.zip |
s390: add custom target and make path extension optional for .bss check
"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>
-rw-r--r-- | arch/s390/scripts/Makefile.chkbss | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/s390/scripts/Makefile.chkbss b/arch/s390/scripts/Makefile.chkbss index d92f2d94a5d9..fb0a11bd520c 100644 --- a/arch/s390/scripts/Makefile.chkbss +++ b/arch/s390/scripts/Makefile.chkbss @@ -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) |