Преглед на файлове

[XTENSA] Add freestanding option to CFLAGS

We also need to set the freestanding option for GCC in the CFLAGS.

Signed-off-by: Chris Zankel <chris@zankel.net>
Chris Zankel преди 18 години
родител
ревизия
b2444d34a0
променени са 1 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 6 1
      arch/xtensa/Makefile

+ 6 - 1
arch/xtensa/Makefile

@@ -27,7 +27,12 @@ platform-$(CONFIG_XTENSA_PLATFORM_ISS)		:= iss
 PLATFORM = $(platform-y)
 export PLATFORM
 
-CFLAGS		+= -pipe -mlongcalls
+# temporarily until string.h is fixed
+cflags-y += -ffreestanding
+
+cflags-y += -pipe -mlongcalls
+
+CFLAGS  += $(cflags-y)
 
 KBUILD_DEFCONFIG := iss_defconfig