rk: Makefile: fix Revert "x86: Force asm-goto"

After e08d6de4e5 ("kbuild: remove kbuild cache"), shell-cached is not
work anymore.

Fixes: d9e69500bc ("Revert "x86: Force asm-goto"")
Change-Id: Id6a4bdaacc8c2f1d5ace566941799d1e352bc028
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2019-02-14 18:18:40 +08:00
parent 79159bb881
commit f455627dab

View File

@@ -694,7 +694,7 @@ KBUILD_CFLAGS += $(call cc-ifversion, -lt, 0409, \
KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0)
# check for 'asm goto'
ifeq ($(call shell-cached,$(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y)
ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y)
KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO
KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO
endif