diff options
author | Vasily Gorbik <gor@linux.ibm.com> | 2018-05-16 11:50:02 +0300 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2018-06-25 11:14:39 +0300 |
commit | 78c95647e76d830e8193ac254a012b0e56d5675d (patch) | |
tree | 27ba264d952d710f29d70f22bfe98af4add2641a /arch/s390/scripts | |
parent | 4560ff1386e35f51f7bafa0107fe4e0eb31db090 (diff) | |
download | linux-78c95647e76d830e8193ac254a012b0e56d5675d.tar.xz |
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>
Diffstat (limited to 'arch/s390/scripts')
-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) |