]>
Commit | Line | Data |
---|---|---|
87cb6862 WD |
1 | #!/bin/sh |
2 | # --------------------------------------------------------- | |
3 | # Set the core module defines according to Core Module | |
4 | # --------------------------------------------------------- | |
87cb6862 WD |
5 | # --------------------------------------------------------- |
6 | # Set up the Versatile type define | |
7 | # --------------------------------------------------------- | |
96782c63 | 8 | variant=PB926EJ-S |
87cb6862 WD |
9 | if [ "$1" == "" ] |
10 | then | |
96782c63 WD |
11 | echo "$0:: No parameters - using versatilepb_config" |
12 | echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h | |
13 | variant=PB926EJ-S | |
87cb6862 | 14 | else |
96782c63 | 15 | case "$1" in |
87cb6862 WD |
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 | |
96782c63 | 23 | variant=AB926EJ-S |
87cb6862 WD |
24 | ;; |
25 | ||
26 | ||
27 | *) | |
28 | echo "$0:: Unrecognised config - using versatilepb_config" | |
96782c63 WD |
29 | echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h |
30 | variant=PB926EJ-S | |
87cb6862 WD |
31 | ;; |
32 | ||
33 | esac | |
34 | ||
35 | fi | |
36 | # --------------------------------------------------------- | |
37 | # Complete the configuration | |
38 | # --------------------------------------------------------- | |
ff7fefe6 | 39 | ./mkconfig -a versatile arm arm926ejs versatile NULL versatile |
96782c63 | 40 | echo "Variant:: $variant" |