diff options
author | Wolfgang Denk <wd@denx.de> | 2009-02-01 21:38:07 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-02-01 21:38:07 +0100 |
commit | 6c6e042ab3bbfb5428e4cdeb38fa27728c63afdd (patch) | |
tree | 0458ea450c3674b3d7aba64157e346f1d2553278 /board/armltd/versatile/split_by_variant.sh | |
parent | ee924e00300bd1136589b2d5f8ad1f008df01bd4 (diff) | |
parent | 4e69087a1d6ef2eca6f46026cf5e7399b6c9e7c0 (diff) | |
download | u-boot-imx-6c6e042ab3bbfb5428e4cdeb38fa27728c63afdd.zip u-boot-imx-6c6e042ab3bbfb5428e4cdeb38fa27728c63afdd.tar.gz u-boot-imx-6c6e042ab3bbfb5428e4cdeb38fa27728c63afdd.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-arm
Diffstat (limited to 'board/armltd/versatile/split_by_variant.sh')
-rwxr-xr-x | board/armltd/versatile/split_by_variant.sh | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/board/armltd/versatile/split_by_variant.sh b/board/armltd/versatile/split_by_variant.sh new file mode 100755 index 0000000..475e5a3 --- /dev/null +++ b/board/armltd/versatile/split_by_variant.sh @@ -0,0 +1,42 @@ +#!/bin/sh +# --------------------------------------------------------- +# Set the core module defines according to Core Module +# --------------------------------------------------------- +# --------------------------------------------------------- +# Set up the Versatile type define +# --------------------------------------------------------- + +mkdir -p ${obj}include +variant=PB926EJ-S +if [ "$1" = "" ] +then + echo "$0:: No parameters - using versatilepb_config" + echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h + variant=PB926EJ-S +else + case "$1" in + versatilepb_config | \ + versatile_config) + echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h + ;; + + versatileab_config) + echo "#define CONFIG_ARCH_VERSATILE_AB" > ${obj}include/config.h + variant=AB926EJ-S + ;; + + + *) + echo "$0:: Unrecognised config - using versatilepb_config" + echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h + variant=PB926EJ-S + ;; + + esac + +fi +# --------------------------------------------------------- +# Complete the configuration +# --------------------------------------------------------- +$MKCONFIG -a versatile arm arm926ejs versatile armltd versatile +echo "Variant:: $variant" |