Blackfin: move CONFIG_BFIN_CPU to board config.mk

The CONFIG_BFIN_CPU option is largely used in the build system, so move
it out of the board config.h and into the board config.mk.  It'd be nice
to keep everything in the config.h, but the patch to extract that value
early was rejected.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
master
Mike Frysinger 15 years ago
parent 543ef36586
commit 821ad16fa9
  1. 4
      arch/blackfin/config.mk
  2. 5
      arch/blackfin/include/asm/config.h
  3. 2
      arch/blackfin/lib/board.c
  4. 2
      board/bf518f-ezbrd/config.mk
  5. 2
      board/bf526-ezbrd/config.mk
  6. 2
      board/bf527-ad7160-eval/config.mk
  7. 2
      board/bf527-ezkit/config.mk
  8. 2
      board/bf533-ezkit/config.mk
  9. 2
      board/bf533-stamp/config.mk
  10. 2
      board/bf537-minotaur/config.mk
  11. 2
      board/bf537-pnav/config.mk
  12. 2
      board/bf537-srv1/config.mk
  13. 2
      board/bf537-stamp/config.mk
  14. 2
      board/bf538f-ezkit/config.mk
  15. 2
      board/bf548-ezkit/config.mk
  16. 2
      board/bf561-acvilon/config.mk
  17. 2
      board/bf561-ezkit/config.mk
  18. 2
      board/blackstamp/config.mk
  19. 2
      board/cm-bf527/config.mk
  20. 2
      board/cm-bf533/config.mk
  21. 2
      board/cm-bf537e/config.mk
  22. 2
      board/cm-bf537u/config.mk
  23. 2
      board/cm-bf548/config.mk
  24. 2
      board/cm-bf561/config.mk
  25. 2
      board/ibf-dsp561/config.mk
  26. 2
      board/ip04/config.mk
  27. 2
      board/tcm-bf518/config.mk
  28. 2
      board/tcm-bf537/config.mk
  29. 1
      include/configs/bf518f-ezbrd.h
  30. 1
      include/configs/bf526-ezbrd.h
  31. 1
      include/configs/bf527-ad7160-eval.h
  32. 1
      include/configs/bf527-ezkit.h
  33. 1
      include/configs/bf533-ezkit.h
  34. 1
      include/configs/bf533-stamp.h
  35. 1
      include/configs/bf537-minotaur.h
  36. 1
      include/configs/bf537-pnav.h
  37. 1
      include/configs/bf537-srv1.h
  38. 1
      include/configs/bf537-stamp.h
  39. 1
      include/configs/bf538f-ezkit.h
  40. 1
      include/configs/bf548-ezkit.h
  41. 1
      include/configs/bf561-acvilon.h
  42. 1
      include/configs/bf561-ezkit.h
  43. 1
      include/configs/blackstamp.h
  44. 1
      include/configs/cm-bf527.h
  45. 1
      include/configs/cm-bf533.h
  46. 1
      include/configs/cm-bf537e.h
  47. 1
      include/configs/cm-bf537u.h
  48. 1
      include/configs/cm-bf548.h
  49. 1
      include/configs/cm-bf561.h
  50. 1
      include/configs/ibf-dsp561.h
  51. 1
      include/configs/ip04.h
  52. 1
      include/configs/tcm-bf518.h
  53. 1
      include/configs/tcm-bf537.h

@ -25,7 +25,6 @@ CROSS_COMPILE ?= bfin-uclinux-
STANDALONE_LOAD_ADDR = 0x1000 -m elf32bfin
CONFIG_BFIN_CPU := $(strip $(subst ",,$(CONFIG_BFIN_CPU)))
CONFIG_BFIN_BOOT_MODE := $(strip $(subst ",,$(CONFIG_BFIN_BOOT_MODE)))
CONFIG_ENV_OFFSET := $(strip $(subst ",,$(CONFIG_ENV_OFFSET)))
CONFIG_ENV_SIZE := $(strip $(subst ",,$(CONFIG_ENV_SIZE)))
@ -36,9 +35,8 @@ PLATFORM_CPPFLAGS += -DCONFIG_BLACKFIN
LDFLAGS += --gc-sections -m elf32bfin
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
ifneq (,$(CONFIG_BFIN_CPU))
PLATFORM_CPPFLAGS += -DBFIN_CPU='"$(CONFIG_BFIN_CPU)"'
PLATFORM_RELFLAGS += -mcpu=$(CONFIG_BFIN_CPU)
endif
ifneq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_BYPASS)
ALL += $(obj)u-boot.ldr

@ -9,11 +9,6 @@
#ifndef __ASM_BLACKFIN_CONFIG_POST_H__
#define __ASM_BLACKFIN_CONFIG_POST_H__
/* Sanity check CONFIG_BFIN_CPU */
#ifndef CONFIG_BFIN_CPU
# error CONFIG_BFIN_CPU: your board config needs to define this
#endif
#ifndef CONFIG_BFIN_SCRATCH_REG
# define CONFIG_BFIN_SCRATCH_REG retn
#endif

@ -254,7 +254,7 @@ void board_init_f(ulong bootflag)
memset((void *)bd, 0, sizeof(bd_t));
bd->bi_r_version = version_string;
bd->bi_cpu = MK_STR(CONFIG_BFIN_CPU);
bd->bi_cpu = BFIN_CPU;
bd->bi_board_name = BFIN_BOARD_NAME;
bd->bi_vco = get_vco();
bd->bi_cclk = get_cclk();

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf518-0.0
CFLAGS_lib += -O2
CFLAGS_lib/lzma += -O2

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf526-0.0
CFLAGS_lib += -O2
CFLAGS_lib/lzma += -O2

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf527-0.2
CFLAGS_lib += -O2
CFLAGS_lib/lzma += -O2

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf527-0.0
CFLAGS_lib += -O2
CFLAGS_lib/lzma += -O2

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf533-0.3
CFLAGS_lib += -O2
CFLAGS_lib/lzma += -O2

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf533-0.3
CFLAGS_lib += -O2
CFLAGS_lib/lzma += -O2

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf537-0.2
# Set some default LDR flags based on boot mode.
LDR_FLAGS-BFIN_BOOT_UART := --port g --gpio 6
LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))

@ -26,5 +26,7 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf537-0.2
# Set some default LDR flags based on boot mode.
LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf537-0.2
# Set some default LDR flags based on boot mode.
LDR_FLAGS-BFIN_BOOT_UART := --port g --gpio 6
LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf537-0.2
CFLAGS_lib += -O2
CFLAGS_lib/lzma += -O2

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf538-0.4
CFLAGS_lib += -O2
CFLAGS_lib/lzma += -O2

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf548-0.0
CFLAGS_lib += -O2
CFLAGS_lib/lzma += -O2

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf561-0.5
CFLAGS_lib += -O2
CFLAGS_lib/lzma += -O2

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf561-0.3
CFLAGS_lib += -O2
CFLAGS_lib/lzma += -O2

@ -26,5 +26,7 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf532-0.5
# Set some default LDR flags based on boot mode.
LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf527-0.0
CFLAGS_lib += -O2
CFLAGS_lib/lzma += -O2

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf533-0.3
CFLAGS_lib += -O2
CFLAGS_lib/lzma += -O2

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf537-0.2
CFLAGS_lib += -O2
CFLAGS_lib/lzma += -O2

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf537-0.2
CFLAGS_lib += -O2
CFLAGS_lib/lzma += -O2

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf548-0.0
CFLAGS_lib += -O2
CFLAGS_lib/lzma += -O2

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf561-0.3
CFLAGS_lib += -O2
CFLAGS_lib/lzma += -O2

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf561-0.5
# Set some default LDR flags based on boot mode.
LDR_FLAGS-BFIN_BOOT_PARA := --bits 16
LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf532-0.5
CFLAGS_lib += -O2
CFLAGS_lib/lzma += -O2

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf518-0.0
CFLAGS_lib += -O2
CFLAGS_lib/lzma += -O2

@ -26,6 +26,8 @@
# This is not actually used for Blackfin boards so do not change it
#TEXT_BASE = do-not-use-me
CONFIG_BFIN_CPU = bf537-0.2
CFLAGS_lib += -O2
CFLAGS_lib/lzma += -O2

@ -11,7 +11,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf518-0.0
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_PARA

@ -11,7 +11,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf526-0.0
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_PARA

@ -11,7 +11,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf527-0.2
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_SPI_MASTER

@ -11,7 +11,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf527-0.0
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_PARA

@ -11,7 +11,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf533-0.3
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_BYPASS

@ -11,7 +11,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf533-0.3
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_BYPASS

@ -24,7 +24,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf537-0.2
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_SPI_MASTER

@ -11,7 +11,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf537-0.2
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_SPI_MASTER

@ -24,7 +24,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf537-0.2
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_SPI_MASTER

@ -11,7 +11,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf537-0.2
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_BYPASS

@ -11,7 +11,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf538-0.4
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_BYPASS

@ -11,7 +11,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf548-0.0
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_PARA

@ -12,7 +12,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf561-0.5
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_BYPASS

@ -11,7 +11,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf561-0.3
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_BYPASS

@ -24,7 +24,6 @@
/* CPU Options
* Be sure to set the Silicon Revision Correctly
*/
#define CONFIG_BFIN_CPU bf532-0.5
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_SPI_MASTER
/*

@ -11,7 +11,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf527-0.0
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_PARA

@ -11,7 +11,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf533-0.3
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_BYPASS

@ -11,7 +11,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf537-0.2
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_BYPASS

@ -11,7 +11,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf537-0.2
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_BYPASS

@ -11,7 +11,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf548-0.0
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_PARA

@ -11,7 +11,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf561-0.3
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_PARA

@ -11,7 +11,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf561-0.5
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_BYPASS

@ -20,7 +20,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf532-0.5
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_NAND

@ -11,7 +11,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf518-0.0
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_PARA

@ -11,7 +11,6 @@
/*
* Processor Settings
*/
#define CONFIG_BFIN_CPU bf537-0.2
#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_BYPASS

Loading…
Cancel
Save