diff options
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/Makefile | 7 | ||||
-rw-r--r-- | arch/blackfin/boot/Makefile | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/arch/blackfin/Makefile b/arch/blackfin/Makefile index 802ac5fae88a..46f42b2066e5 100644 --- a/arch/blackfin/Makefile +++ b/arch/blackfin/Makefile | |||
@@ -97,8 +97,11 @@ rev-$(CONFIG_BF_REV_0_6) := 0.6 | |||
97 | rev-$(CONFIG_BF_REV_NONE) := none | 97 | rev-$(CONFIG_BF_REV_NONE) := none |
98 | rev-$(CONFIG_BF_REV_ANY) := any | 98 | rev-$(CONFIG_BF_REV_ANY) := any |
99 | 99 | ||
100 | KBUILD_CFLAGS += -mcpu=$(cpu-y)-$(rev-y) | 100 | CPU_REV := $(cpu-y)-$(rev-y) |
101 | KBUILD_AFLAGS += -mcpu=$(cpu-y)-$(rev-y) | 101 | export CPU_REV |
102 | |||
103 | KBUILD_CFLAGS += -mcpu=$(CPU_REV) | ||
104 | KBUILD_AFLAGS += -mcpu=$(CPU_REV) | ||
102 | 105 | ||
103 | # - we utilize the silicon rev from the toolchain, so move it over to the checkflags | 106 | # - we utilize the silicon rev from the toolchain, so move it over to the checkflags |
104 | CHECKFLAGS_SILICON = $(shell echo "" | $(CPP) $(KBUILD_CFLAGS) -dD - 2>/dev/null | awk '$$2 == "__SILICON_REVISION__" { print $$3 }') | 107 | CHECKFLAGS_SILICON = $(shell echo "" | $(CPP) $(KBUILD_CFLAGS) -dD - 2>/dev/null | awk '$$2 == "__SILICON_REVISION__" { print $$3 }') |
diff --git a/arch/blackfin/boot/Makefile b/arch/blackfin/boot/Makefile index 13d2dbd658e3..0a49279e3428 100644 --- a/arch/blackfin/boot/Makefile +++ b/arch/blackfin/boot/Makefile | |||
@@ -17,7 +17,7 @@ UIMAGE_OPTS-$(CONFIG_ROMKERNEL) += -a $(CONFIG_ROM_BASE) -x | |||
17 | 17 | ||
18 | quiet_cmd_uimage = UIMAGE $@ | 18 | quiet_cmd_uimage = UIMAGE $@ |
19 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(ARCH) -O linux -T kernel \ | 19 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(ARCH) -O linux -T kernel \ |
20 | -C $(2) -n '$(MACHINE)-$(KERNELRELEASE)' \ | 20 | -C $(2) -n '$(CPU_REV)-$(KERNELRELEASE)' \ |
21 | -e $(shell $(NM) vmlinux | awk '$$NF == "__start" {print $$1}') \ | 21 | -e $(shell $(NM) vmlinux | awk '$$NF == "__start" {print $$1}') \ |
22 | $(UIMAGE_OPTS-y) -d $< $@ | 22 | $(UIMAGE_OPTS-y) -d $< $@ |
23 | 23 | ||