]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/xtensa/Makefile
kbuild: enable 'make CFLAGS=...' to add additional options to CC
[mirror_ubuntu-artful-kernel.git] / arch / xtensa / Makefile
index 95f836db38fa3129cd10f2574c2c8cdf1000df79..56685a88334747ef1467cac388345f5b9bf20339 100644 (file)
@@ -27,7 +27,10 @@ platform-$(CONFIG_XTENSA_PLATFORM_ISS)               := iss
 PLATFORM = $(platform-y)
 export PLATFORM
 
-CFLAGS         += -pipe -mlongcalls
+# temporarily until string.h is fixed
+KBUILD_CFLAGS += -ffreestanding
+
+KBUILD_CFLAGS += -pipe -mlongcalls
 
 KBUILD_DEFCONFIG := iss_defconfig
 
@@ -51,7 +54,7 @@ endif
 
 #
 
-LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
+LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
 
 head-y         := arch/xtensa/kernel/head.o
 core-y         += arch/xtensa/kernel/ arch/xtensa/mm/