Wolfgang Denk | 7f88a5e | 2005-10-06 17:08:18 +0200 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # --------------------------------------------------------- |
| 3 | # Set the core module defines according to Core Module |
| 4 | # --------------------------------------------------------- |
Wolfgang Denk | 7f88a5e | 2005-10-06 17:08:18 +0200 | [diff] [blame] | 5 | # --------------------------------------------------------- |
| 6 | # Set up the Versatile type define |
| 7 | # --------------------------------------------------------- |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 8 | |
| 9 | mkdir -p ${obj}include |
Wolfgang Denk | 88bd743 | 2005-10-09 00:22:48 +0200 | [diff] [blame] | 10 | variant=PB926EJ-S |
Wolfgang Denk | 111d606 | 2008-01-02 15:54:45 +0100 | [diff] [blame] | 11 | if [ "$1" = "" ] |
Wolfgang Denk | 7f88a5e | 2005-10-06 17:08:18 +0200 | [diff] [blame] | 12 | then |
Wolfgang Denk | 88bd743 | 2005-10-09 00:22:48 +0200 | [diff] [blame] | 13 | echo "$0:: No parameters - using versatilepb_config" |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 14 | echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h |
Wolfgang Denk | 88bd743 | 2005-10-09 00:22:48 +0200 | [diff] [blame] | 15 | variant=PB926EJ-S |
Wolfgang Denk | 7f88a5e | 2005-10-06 17:08:18 +0200 | [diff] [blame] | 16 | else |
Wolfgang Denk | 88bd743 | 2005-10-09 00:22:48 +0200 | [diff] [blame] | 17 | case "$1" in |
Wolfgang Denk | 7f88a5e | 2005-10-06 17:08:18 +0200 | [diff] [blame] | 18 | versatilepb_config | \ |
| 19 | versatile_config) |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 20 | echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h |
Wolfgang Denk | 7f88a5e | 2005-10-06 17:08:18 +0200 | [diff] [blame] | 21 | ;; |
| 22 | |
| 23 | versatileab_config) |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 24 | echo "#define CONFIG_ARCH_VERSATILE_AB" > ${obj}include/config.h |
Wolfgang Denk | 88bd743 | 2005-10-09 00:22:48 +0200 | [diff] [blame] | 25 | variant=AB926EJ-S |
Wolfgang Denk | 7f88a5e | 2005-10-06 17:08:18 +0200 | [diff] [blame] | 26 | ;; |
| 27 | |
| 28 | |
| 29 | *) |
| 30 | echo "$0:: Unrecognised config - using versatilepb_config" |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 31 | echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h |
Wolfgang Denk | 88bd743 | 2005-10-09 00:22:48 +0200 | [diff] [blame] | 32 | variant=PB926EJ-S |
Wolfgang Denk | 7f88a5e | 2005-10-06 17:08:18 +0200 | [diff] [blame] | 33 | ;; |
| 34 | |
| 35 | esac |
| 36 | |
| 37 | fi |
| 38 | # --------------------------------------------------------- |
| 39 | # Complete the configuration |
| 40 | # --------------------------------------------------------- |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 41 | $MKCONFIG -a versatile arm arm926ejs versatile NULL versatile |
Wolfgang Denk | 88bd743 | 2005-10-09 00:22:48 +0200 | [diff] [blame] | 42 | echo "Variant:: $variant" |