]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitabb32ef7482c3cecd1397a2474908bafd91ac687
treeaecbe102753ffe4b61c5ba9927873f1fca822fe4
parent21e95836f7c6887d2f1398bc9f737486195d723b
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