diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-01-07 17:44:06 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-01-10 07:18:27 -0500 |
commit | a780c6e86851c6479851186c5d5b9fb2b201bec7 (patch) | |
tree | c72988c927a34c477f1fe19dda9f092a35bc278c /arch/blackfin/Makefile | |
parent | b66acb63f5593ac11e39ab1cf17e1f987bc5ff9c (diff) |
Blackfin: encode cpu-rev into uImage name
Encoding the cpu family name apparently confuses people when they try to
boot an image on a sub-variant, so encode the specific cpu name and the
silicon rev instead.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/Makefile')
-rw-r--r-- | arch/blackfin/Makefile | 7 |
1 files changed, 5 insertions, 2 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 }') |