]> git.karo-electronics.de Git - karo-tx-uboot.git/blob - board/versatile/split_by_variant.sh
ea705da1c6114f148f500b53156cb48d094d007c
[karo-tx-uboot.git] / board / versatile / split_by_variant.sh
1 #!/bin/sh
2 # ---------------------------------------------------------
3 #  Set the core module defines according to Core Module
4 # ---------------------------------------------------------
5 CC=${CROSS_COMPILE}gcc
6 config="versatilepb_config"
7
8 if [ "$2" == "" ]
9 then
10         echo "$0:: No preprocessor parameter - using ${CROSS_COMPILE}gcc"
11 else
12         CC=$2
13 fi
14
15
16 # ---------------------------------------------------------
17 # Set up the Versatile type define
18 # ---------------------------------------------------------
19 if [ "$1" == "" ]
20 then
21         echo "$0:: No parameters - using ${CROSS_COMPILE}gcc versatilepb_config"
22
23 else
24         case "$config" in
25         versatilepb_config      |       \
26         versatile_config)
27         echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h
28         ;;
29
30         versatileab_config)
31         echo "#define CONFIG_ARCH_VERSATILE_AB" > ./include/config.h
32         ;;
33
34
35         *)
36         echo "$0:: Unrecognised config - using versatilepb_config"
37         ;;
38
39         esac
40
41 fi
42 # ---------------------------------------------------------
43 # Complete the configuration
44 # ---------------------------------------------------------
45 ./mkconfig -a versatile arm arm926ejs versatile