From 06e64731c22a7cdf929f48478d44d1cffb67778a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 7 Jan 2011 22:44:06 +0000 Subject: [PATCH] --- yaml --- r: 228464 b: refs/heads/master c: a780c6e86851c6479851186c5d5b9fb2b201bec7 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/blackfin/Makefile | 7 +++++-- trunk/arch/blackfin/boot/Makefile | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index c0fb29698e1d..065205f079f8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b66acb63f5593ac11e39ab1cf17e1f987bc5ff9c +refs/heads/master: a780c6e86851c6479851186c5d5b9fb2b201bec7 diff --git a/trunk/arch/blackfin/Makefile b/trunk/arch/blackfin/Makefile index 802ac5fae88a..46f42b2066e5 100644 --- a/trunk/arch/blackfin/Makefile +++ b/trunk/arch/blackfin/Makefile @@ -97,8 +97,11 @@ rev-$(CONFIG_BF_REV_0_6) := 0.6 rev-$(CONFIG_BF_REV_NONE) := none rev-$(CONFIG_BF_REV_ANY) := any -KBUILD_CFLAGS += -mcpu=$(cpu-y)-$(rev-y) -KBUILD_AFLAGS += -mcpu=$(cpu-y)-$(rev-y) +CPU_REV := $(cpu-y)-$(rev-y) +export CPU_REV + +KBUILD_CFLAGS += -mcpu=$(CPU_REV) +KBUILD_AFLAGS += -mcpu=$(CPU_REV) # - we utilize the silicon rev from the toolchain, so move it over to the checkflags CHECKFLAGS_SILICON = $(shell echo "" | $(CPP) $(KBUILD_CFLAGS) -dD - 2>/dev/null | awk '$$2 == "__SILICON_REVISION__" { print $$3 }') diff --git a/trunk/arch/blackfin/boot/Makefile b/trunk/arch/blackfin/boot/Makefile index 13d2dbd658e3..0a49279e3428 100644 --- a/trunk/arch/blackfin/boot/Makefile +++ b/trunk/arch/blackfin/boot/Makefile @@ -17,7 +17,7 @@ UIMAGE_OPTS-$(CONFIG_ROMKERNEL) += -a $(CONFIG_ROM_BASE) -x quiet_cmd_uimage = UIMAGE $@ cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(ARCH) -O linux -T kernel \ - -C $(2) -n '$(MACHINE)-$(KERNELRELEASE)' \ + -C $(2) -n '$(CPU_REV)-$(KERNELRELEASE)' \ -e $(shell $(NM) vmlinux | awk '$$NF == "__start" {print $$1}') \ $(UIMAGE_OPTS-y) -d $< $@