blob: 25461c2c01ff1a74c324ef7dff308024ad068684 [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# ---------------------------------------------------------
Marian Balakowiczf9328632006-09-01 19:49:50 +02008
9mkdir -p ${obj}include
Wolfgang Denk96782c62005-10-09 00:22:48 +020010variant=PB926EJ-S
Wolfgang Denk87cb6862005-10-06 17:08:18 +020011if [ "$1" == "" ]
12then
Wolfgang Denk96782c62005-10-09 00:22:48 +020013 echo "$0:: No parameters - using versatilepb_config"
Marian Balakowiczf9328632006-09-01 19:49:50 +020014 echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
Wolfgang Denk96782c62005-10-09 00:22:48 +020015 variant=PB926EJ-S
Wolfgang Denk87cb6862005-10-06 17:08:18 +020016else
Wolfgang Denk96782c62005-10-09 00:22:48 +020017 case "$1" in
Wolfgang Denk87cb6862005-10-06 17:08:18 +020018 versatilepb_config | \
19 versatile_config)
Marian Balakowiczf9328632006-09-01 19:49:50 +020020 echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
Wolfgang Denk87cb6862005-10-06 17:08:18 +020021 ;;
22
23 versatileab_config)
Marian Balakowiczf9328632006-09-01 19:49:50 +020024 echo "#define CONFIG_ARCH_VERSATILE_AB" > ${obj}include/config.h
Wolfgang Denk96782c62005-10-09 00:22:48 +020025 variant=AB926EJ-S
Wolfgang Denk87cb6862005-10-06 17:08:18 +020026 ;;
27
28
29 *)
30 echo "$0:: Unrecognised config - using versatilepb_config"
Marian Balakowiczf9328632006-09-01 19:49:50 +020031 echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
Wolfgang Denk96782c62005-10-09 00:22:48 +020032 variant=PB926EJ-S
Wolfgang Denk87cb6862005-10-06 17:08:18 +020033 ;;
34
35 esac
36
37fi
38# ---------------------------------------------------------
39# Complete the configuration
40# ---------------------------------------------------------
Marian Balakowiczf9328632006-09-01 19:49:50 +020041$MKCONFIG -a versatile arm arm926ejs versatile NULL versatile
Wolfgang Denk96782c62005-10-09 00:22:48 +020042echo "Variant:: $variant"