blob: 475e5a33b3eb780f73c1de72df29dd43c53049a4 [file] [log] [blame]
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02001#!/bin/sh
2# ---------------------------------------------------------
3# Set the core module defines according to Core Module
4# ---------------------------------------------------------
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02005# ---------------------------------------------------------
6# Set up the Versatile type define
7# ---------------------------------------------------------
Marian Balakowiczd62379d2006-09-01 19:49:50 +02008
9mkdir -p ${obj}include
Wolfgang Denk88bd7432005-10-09 00:22:48 +020010variant=PB926EJ-S
Wolfgang Denk111d6062008-01-02 15:54:45 +010011if [ "$1" = "" ]
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +020012then
Wolfgang Denk88bd7432005-10-09 00:22:48 +020013 echo "$0:: No parameters - using versatilepb_config"
Marian Balakowiczd62379d2006-09-01 19:49:50 +020014 echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
Wolfgang Denk88bd7432005-10-09 00:22:48 +020015 variant=PB926EJ-S
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +020016else
Wolfgang Denk88bd7432005-10-09 00:22:48 +020017 case "$1" in
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +020018 versatilepb_config | \
19 versatile_config)
Marian Balakowiczd62379d2006-09-01 19:49:50 +020020 echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +020021 ;;
22
23 versatileab_config)
Marian Balakowiczd62379d2006-09-01 19:49:50 +020024 echo "#define CONFIG_ARCH_VERSATILE_AB" > ${obj}include/config.h
Wolfgang Denk88bd7432005-10-09 00:22:48 +020025 variant=AB926EJ-S
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +020026 ;;
27
28
29 *)
30 echo "$0:: Unrecognised config - using versatilepb_config"
Marian Balakowiczd62379d2006-09-01 19:49:50 +020031 echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
Wolfgang Denk88bd7432005-10-09 00:22:48 +020032 variant=PB926EJ-S
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +020033 ;;
34
35 esac
36
37fi
38# ---------------------------------------------------------
39# Complete the configuration
40# ---------------------------------------------------------
Jean-Christophe PLAGNIOL-VILLARD98e0d072009-01-29 12:07:21 +010041$MKCONFIG -a versatile arm arm926ejs versatile armltd versatile
Wolfgang Denk88bd7432005-10-09 00:22:48 +020042echo "Variant:: $variant"