microblaze: Use CFLAGS_KERNEL instead of CFLAGS
authorMichal Simek <monstr@monstr.eu>
Tue, 21 Apr 2009 12:12:18 +0000 (14:12 +0200)
committerMichal Simek <monstr@monstr.eu>
Thu, 23 Apr 2009 14:27:35 +0000 (16:27 +0200)
Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/Makefile

index ee302f9f588d9a8c65b968a43bf6c2008d0c15da..aaadfa701da30b82475583bde4db5c3bea9cc116 100644 (file)
@@ -32,15 +32,13 @@ CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER))
 
 # The various CONFIG_XILINX cpu features options are integers 0/1/2...
 # rather than bools y/n
-CFLAGS += $(CPUFLAGS-1)
-CFLAGS += $(CPUFLAGS-2)
 
 # r31 holds current when in kernel mode
-CFLAGS += -ffixed-r31
+CFLAGS_KERNEL += -ffixed-r31 $(CPUFLAGS-1) $(CPUFLAGS-2)
 
 LDFLAGS_BLOB := --format binary --oformat elf32-microblaze
 
-LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
+LIBGCC := $(shell $(CC) $(CFLAGS_KERNEL) -print-libgcc-file-name)
 
 head-y         := arch/microblaze/kernel/head.o
 libs-y         += arch/microblaze/lib/ $(LIBGCC)