Wolfgang Denk | 87cb686 | 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 | 87cb686 | 2005-10-06 17:08:18 +0200 | [diff] [blame] | 5 | # --------------------------------------------------------- |
| 6 | # Set up the Versatile type define |
| 7 | # --------------------------------------------------------- |
Wolfgang Denk | 96782c6 | 2005-10-09 00:22:48 +0200 | [diff] [blame] | 8 | variant=PB926EJ-S |
Wolfgang Denk | 87cb686 | 2005-10-06 17:08:18 +0200 | [diff] [blame] | 9 | if [ "$1" == "" ] |
| 10 | then |
Wolfgang Denk | 96782c6 | 2005-10-09 00:22:48 +0200 | [diff] [blame] | 11 | echo "$0:: No parameters - using versatilepb_config" |
| 12 | echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h |
| 13 | variant=PB926EJ-S |
Wolfgang Denk | 87cb686 | 2005-10-06 17:08:18 +0200 | [diff] [blame] | 14 | else |
Wolfgang Denk | 96782c6 | 2005-10-09 00:22:48 +0200 | [diff] [blame] | 15 | case "$1" in |
Wolfgang Denk | 87cb686 | 2005-10-06 17:08:18 +0200 | [diff] [blame] | 16 | versatilepb_config | \ |
| 17 | versatile_config) |
| 18 | echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h |
| 19 | ;; |
| 20 | |
| 21 | versatileab_config) |
| 22 | echo "#define CONFIG_ARCH_VERSATILE_AB" > ./include/config.h |
Wolfgang Denk | 96782c6 | 2005-10-09 00:22:48 +0200 | [diff] [blame] | 23 | variant=AB926EJ-S |
Wolfgang Denk | 87cb686 | 2005-10-06 17:08:18 +0200 | [diff] [blame] | 24 | ;; |
| 25 | |
| 26 | |
| 27 | *) |
| 28 | echo "$0:: Unrecognised config - using versatilepb_config" |
Wolfgang Denk | 96782c6 | 2005-10-09 00:22:48 +0200 | [diff] [blame] | 29 | echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h |
| 30 | variant=PB926EJ-S |
Wolfgang Denk | 87cb686 | 2005-10-06 17:08:18 +0200 | [diff] [blame] | 31 | ;; |
| 32 | |
| 33 | esac |
| 34 | |
| 35 | fi |
| 36 | # --------------------------------------------------------- |
| 37 | # Complete the configuration |
| 38 | # --------------------------------------------------------- |
Wolfgang Denk | ff7fefe | 2006-03-13 12:37:35 +0100 | [diff] [blame] | 39 | ./mkconfig -a versatile arm arm926ejs versatile NULL versatile |
Wolfgang Denk | 96782c6 | 2005-10-09 00:22:48 +0200 | [diff] [blame] | 40 | echo "Variant:: $variant" |