|
@@ -6,14 +6,6 @@
|
|
|
# published by the Free Software Foundation.
|
|
|
#
|
|
|
|
|
|
-ifeq ($(CROSS_COMPILE),)
|
|
|
-ifndef CONFIG_CPU_BIG_ENDIAN
|
|
|
-CROSS_COMPILE := arc-linux-
|
|
|
-else
|
|
|
-CROSS_COMPILE := arceb-linux-
|
|
|
-endif
|
|
|
-endif
|
|
|
-
|
|
|
KBUILD_DEFCONFIG := nsim_700_defconfig
|
|
|
|
|
|
cflags-y += -fno-common -pipe -fno-builtin -mmedium-calls -D__linux__
|
|
@@ -65,7 +57,7 @@ cflags-$(disable_small_data) += -mno-sdata -fcall-used-gp
|
|
|
cflags-$(CONFIG_CPU_BIG_ENDIAN) += -mbig-endian
|
|
|
ldflags-$(CONFIG_CPU_BIG_ENDIAN) += -EB
|
|
|
|
|
|
-LIBGCC := $(shell $(CC) $(cflags-y) --print-libgcc-file-name)
|
|
|
+LIBGCC = $(shell $(CC) $(cflags-y) --print-libgcc-file-name)
|
|
|
|
|
|
# Modules with short calls might break for calls into builtin-kernel
|
|
|
KBUILD_CFLAGS_MODULE += -mlong-calls -mno-millicode
|