diff options
Diffstat (limited to 'arch/xtensa/Makefile')
-rw-r--r-- | arch/xtensa/Makefile | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile index acf05be24929..56685a883347 100644 --- a/arch/xtensa/Makefile +++ b/arch/xtensa/Makefile | |||
@@ -28,11 +28,9 @@ PLATFORM = $(platform-y) | |||
28 | export PLATFORM | 28 | export PLATFORM |
29 | 29 | ||
30 | # temporarily until string.h is fixed | 30 | # temporarily until string.h is fixed |
31 | cflags-y += -ffreestanding | 31 | KBUILD_CFLAGS += -ffreestanding |
32 | 32 | ||
33 | cflags-y += -pipe -mlongcalls | 33 | KBUILD_CFLAGS += -pipe -mlongcalls |
34 | |||
35 | CFLAGS += $(cflags-y) | ||
36 | 34 | ||
37 | KBUILD_DEFCONFIG := iss_defconfig | 35 | KBUILD_DEFCONFIG := iss_defconfig |
38 | 36 | ||
@@ -56,7 +54,7 @@ endif | |||
56 | 54 | ||
57 | # | 55 | # |
58 | 56 | ||
59 | LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name) | 57 | LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) |
60 | 58 | ||
61 | head-y := arch/xtensa/kernel/head.o | 59 | head-y := arch/xtensa/kernel/head.o |
62 | core-y += arch/xtensa/kernel/ arch/xtensa/mm/ | 60 | core-y += arch/xtensa/kernel/ arch/xtensa/mm/ |