blob: 35c663e6a555dffa34e82bbb13f012a977f781df [file] [log] [blame]
Wolfgang Denk87cb6862005-10-06 17:08:18 +02001#!/bin/sh
2# ---------------------------------------------------------
3# Set the core module defines according to Core Module
4# ---------------------------------------------------------
Wolfgang Denk87cb6862005-10-06 17:08:18 +02005# ---------------------------------------------------------
6# Set up the Versatile type define
7# ---------------------------------------------------------
Wolfgang Denk96782c62005-10-09 00:22:48 +02008variant=PB926EJ-S
Wolfgang Denk87cb6862005-10-06 17:08:18 +02009if [ "$1" == "" ]
10then
Wolfgang Denk96782c62005-10-09 00:22:48 +020011 echo "$0:: No parameters - using versatilepb_config"
12 echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h
13 variant=PB926EJ-S
Wolfgang Denk87cb6862005-10-06 17:08:18 +020014else
Wolfgang Denk96782c62005-10-09 00:22:48 +020015 case "$1" in
Wolfgang Denk87cb6862005-10-06 17:08:18 +020016 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 Denk96782c62005-10-09 00:22:48 +020023 variant=AB926EJ-S
Wolfgang Denk87cb6862005-10-06 17:08:18 +020024 ;;
25
26
27 *)
28 echo "$0:: Unrecognised config - using versatilepb_config"
Wolfgang Denk96782c62005-10-09 00:22:48 +020029 echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h
30 variant=PB926EJ-S
Wolfgang Denk87cb6862005-10-06 17:08:18 +020031 ;;
32
33 esac
34
35fi
36# ---------------------------------------------------------
37# Complete the configuration
38# ---------------------------------------------------------
39./mkconfig -a versatile arm arm926ejs versatile
Wolfgang Denk96782c62005-10-09 00:22:48 +020040echo "Variant:: $variant"