xtensa: use -mlongcalls instead of --longcalls

gcc only understands -mlongcalls form of this option, xcc understands
both. Use -mlongcalls for building with both xcc and gcc.

Change-Id: I93f65ccbc97429ae564f1986120b37ce205ee38c
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
Max Filippov 2017-02-15 14:20:53 -08:00 committed by Andrew Boie
commit a0fa4f3265
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
ccflags-y += -I$(srctree)/kernel/unified/include
asflags-y += -I$(srctree)/kernel/unified/include --longcalls
asflags-y += -I$(srctree)/kernel/unified/include -mlongcalls
ifdef CONFIG_ATOMIC_OPERATIONS_C
# Use C routines from kernel/atomic_c.c

View file

@ -1,2 +1,2 @@
asflags-y := -c -xassembler-with-cpp $(XTENSA_INCLUDE) $(flagBoardType) -mtext-section-literals --longcalls
asflags-y := -c -xassembler-with-cpp $(XTENSA_INCLUDE) $(flagBoardType) -mtext-section-literals -mlongcalls
obj-y = reset-vector.o