s390: boot, purgatory: pass $(CLANG_FLAGS) where needed
authorArnd Bergmann <arnd@arndb.de>
Mon, 15 Apr 2019 08:35:52 +0000 (10:35 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 3 May 2019 15:17:58 +0000 (17:17 +0200)
commit96fb54a180894dc3c6821aa3297a3eb8b27f03c5
treeaecbe102753ffe4b61c5ba9927873f1fca822fe4
parentc263a4e990b7296b074e33aa077239a0a28a818e
s390: boot, purgatory: pass $(CLANG_FLAGS) where needed

The purgatory and boot Makefiles do not inherit the original cflags,
so clang falls back to the default target architecture when building it,
typically this would be x86 when cross-compiling.

Add $(CLANG_FLAGS) everywhere so we pass the correct --target=s390x-linux
option when cross-compiling.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/Makefile
arch/s390/purgatory/Makefile