s390/decompressor: correct build flags
authorVasily Gorbik <gor@linux.ibm.com>
Fri, 15 Jun 2018 10:28:05 +0000 (12:28 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 25 Jun 2018 08:14:37 +0000 (10:14 +0200)
commit76bf9d6cef5788c769af987ff6f8ece40c6ab152
tree51c0983ae98cf57dd6516b7079ae473bb49816a9
parent19f73e16199ee21b95e15bb5c380ad69f12e8c5b
s390/decompressor: correct build flags

The decompressor requires its own set of cc and asm flags, to avoid
building with features which do not make sense at such an early boot stage
(e.g. expoline, ftrace).

Currently cc flags are already set for the decompressor, but "cflags-y"
is not exported and hence empty. To fix that and to add asm flags, define
and export KBUILD_AFLAGS_DECOMPRESSOR and KBUILD_CFLAGS_DECOMPRESSOR
and rely on them in the decompressor's Makefile.

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/Makefile
arch/s390/boot/compressed/Makefile