~ubuntu-branches/ubuntu/maverick/u-boot-omap3/maverick

« back to all changes in this revision

Viewing changes to board/armltd/versatile/split_by_variant.sh

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2010-03-22 15:06:23 UTC
  • Revision ID: james.westby@ubuntu.com-20100322150623-i21g8rgiyl5dohag
Tags: upstream-2010.3git20100315
ImportĀ upstreamĀ versionĀ 2010.3git20100315

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# ---------------------------------------------------------
 
3
#  Set the core module defines according to Core Module
 
4
# ---------------------------------------------------------
 
5
# ---------------------------------------------------------
 
6
# Set up the Versatile type define
 
7
# ---------------------------------------------------------
 
8
 
 
9
mkdir -p ${obj}include
 
10
variant=PB926EJ-S
 
11
if [ "$1" = "" ]
 
12
then
 
13
        echo "$0:: No parameters - using versatilepb_config"
 
14
        echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
 
15
        variant=PB926EJ-S
 
16
else
 
17
        case "$1" in
 
18
        versatilepb_config      |       \
 
19
        versatile_config)
 
20
        echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
 
21
        ;;
 
22
 
 
23
        versatileab_config)
 
24
        echo "#define CONFIG_ARCH_VERSATILE_AB" > ${obj}include/config.h
 
25
        variant=AB926EJ-S
 
26
        ;;
 
27
 
 
28
 
 
29
        *)
 
30
        echo "$0:: Unrecognised config - using versatilepb_config"
 
31
        echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
 
32
        variant=PB926EJ-S
 
33
        ;;
 
34
 
 
35
        esac
 
36
 
 
37
fi
 
38
# ---------------------------------------------------------
 
39
# Complete the configuration
 
40
# ---------------------------------------------------------
 
41
$MKCONFIG -a versatile arm arm926ejs versatile armltd versatile
 
42
echo "Variant:: $variant"