diff options
author | Jie Zhang <jie.zhang@analog.com> | 2007-06-25 06:04:12 -0400 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2007-06-25 06:04:12 -0400 |
commit | de3025f4e2bc063c274f561f9daf2b696910ad3b (patch) | |
tree | 25119db476c843a13d1d26ae2c80af9df6096713 /arch/blackfin/Makefile | |
parent | a38d6181ff27824c79fc7df825164a212eff6a3f (diff) |
Blackfin arch: Add proper -mcpu option according to the cpu and silicon revision configuration
Add silicon revision "any" and "none". Add proper -mcpu option according
to the cpu and silicon revision configuration.
Need update to use latest Blackfin cross compile toolchain.
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'arch/blackfin/Makefile')
-rw-r--r-- | arch/blackfin/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/blackfin/Makefile b/arch/blackfin/Makefile index 75e89c324756..6971a4418dfe 100644 --- a/arch/blackfin/Makefile +++ b/arch/blackfin/Makefile | |||
@@ -28,6 +28,27 @@ machine-$(CONFIG_BF561) := bf561 | |||
28 | MACHINE := $(machine-y) | 28 | MACHINE := $(machine-y) |
29 | export MACHINE | 29 | export MACHINE |
30 | 30 | ||
31 | cpu-$(CONFIG_BF531) := bf531 | ||
32 | cpu-$(CONFIG_BF532) := bf532 | ||
33 | cpu-$(CONFIG_BF533) := bf533 | ||
34 | cpu-$(CONFIG_BF534) := bf534 | ||
35 | cpu-$(CONFIG_BF536) := bf536 | ||
36 | cpu-$(CONFIG_BF537) := bf537 | ||
37 | cpu-$(CONFIG_BF548) := bf548 | ||
38 | cpu-$(CONFIG_BF549) := bf549 | ||
39 | cpu-$(CONFIG_BF561) := bf561 | ||
40 | |||
41 | rev-$(CONFIG_BF_REV_0_0) := 0.0 | ||
42 | rev-$(CONFIG_BF_REV_0_1) := 0.1 | ||
43 | rev-$(CONFIG_BF_REV_0_2) := 0.2 | ||
44 | rev-$(CONFIG_BF_REV_0_3) := 0.3 | ||
45 | rev-$(CONFIG_BF_REV_0_4) := 0.4 | ||
46 | rev-$(CONFIG_BF_REV_0_5) := 0.5 | ||
47 | rev-$(CONFIG_BF_REV_NONE) := none | ||
48 | rev-$(CONFIG_BF_REV_ANY) := any | ||
49 | |||
50 | CFLAGS += -mcpu=$(cpu-y)-$(rev-y) | ||
51 | AFLAGS += -mcpu=$(cpu-y)-$(rev-y) | ||
31 | 52 | ||
32 | head-y := arch/$(ARCH)/mach-$(MACHINE)/head.o arch/$(ARCH)/kernel/init_task.o | 53 | head-y := arch/$(ARCH)/mach-$(MACHINE)/head.o arch/$(ARCH)/kernel/init_task.o |
33 | 54 | ||