Commit c19aa754 authored by Haavard Skinnemoen's avatar Haavard Skinnemoen

[AVR32] Use correct config symbol when setting cpuflags

As Robert P. J. Day pointed out, the CONFIG_CPU_AT32AP7000 symbol
wasn't used for anything. It should have been used to select the
correct -mcpu= options for CFLAGS.

-mcpu=ap7000 is the default anyway, so this patch shouldn't really
make any difference, but it's always nice to do things correctly.
Signed-off-by: default avatarHaavard Skinnemoen <hskinnemoen@atmel.com>
parent de372ecd
...@@ -16,7 +16,7 @@ AFLAGS += -mrelax -mno-pic ...@@ -16,7 +16,7 @@ AFLAGS += -mrelax -mno-pic
CFLAGS_MODULE += -mno-relax CFLAGS_MODULE += -mno-relax
LDFLAGS_vmlinux += --relax LDFLAGS_vmlinux += --relax
cpuflags-$(CONFIG_CPU_AP7000) += -mcpu=ap7000 cpuflags-$(CONFIG_CPU_AT32AP7000) += -mcpu=ap7000
CFLAGS += $(cpuflags-y) CFLAGS += $(cpuflags-y)
AFLAGS += $(cpuflags-y) AFLAGS += $(cpuflags-y)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment