Merge: Add support for AMCC 440SPe CPU based eval board (Yucca).
[platform/kernel/u-boot.git] / board / versatile / split_by_variant.sh
1 #!/bin/sh
2 # ---------------------------------------------------------
3 #  Set the core module defines according to Core Module
4 # ---------------------------------------------------------
5 # ---------------------------------------------------------
6 # Set up the Versatile type define
7 # ---------------------------------------------------------
8 variant=PB926EJ-S
9 if [ "$1" == "" ]
10 then
11         echo "$0:: No parameters - using versatilepb_config"
12         echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h
13         variant=PB926EJ-S
14 else
15         case "$1" in
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
23         variant=AB926EJ-S
24         ;;
25
26
27         *)
28         echo "$0:: Unrecognised config - using versatilepb_config"
29         echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h
30         variant=PB926EJ-S
31         ;;
32
33         esac
34
35 fi
36 # ---------------------------------------------------------
37 # Complete the configuration
38 # ---------------------------------------------------------
39 ./mkconfig -a versatile arm arm926ejs versatile NULL versatile
40 echo "Variant:: $variant"