diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-01-29 12:07:21 +0100 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-01-29 12:07:21 +0100 |
commit | e4943ec57466ea5dfa085e7a9e0ec44cb93c4e1e (patch) | |
tree | b667a6a1977763d98c3fd53265b194669cc81562 /board/armltd/versatile/split_by_variant.sh | |
parent | 7379f45a7bc71941c3920c2f6b3c3faa4d7fd315 (diff) |
move ARM Ltd. to vendor dir
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
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 0000000000..475e5a33b3 --- /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" |