mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
rk: force enable asm goto on android gcc
It seems than android gcc can't pass gcc-goto.sh check, but asm goto work. So let's active it. Change-Id: I75310af8cf3746a5c110daa564e96eeb1d7f1070 Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
This commit is contained in:
5
Makefile
5
Makefile
@@ -786,6 +786,11 @@ KBUILD_ARFLAGS := $(call ar-option,D)
|
||||
ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC)), y)
|
||||
KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO
|
||||
KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO
|
||||
else ifneq ($(findstring aarch64-linux-android, $(CROSS_COMPILE)),)
|
||||
# It seems than android gcc can't pass gcc-goto.sh check, but asm goto work.
|
||||
# So let's active it.
|
||||
KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO
|
||||
KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO
|
||||
endif
|
||||
|
||||
include scripts/Makefile.kasan
|
||||
|
||||
Reference in New Issue
Block a user