summaryrefslogtreecommitdiff
path: root/board/versatile/split_by_variant.sh
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2005-10-09 00:22:48 +0200
committerWolfgang Denk <wd@pollux.denx.de>2005-10-09 00:22:48 +0200
commit96782c63d3bd4067623895b8691ed2823c715f1d (patch)
tree7cdf8a7a2a40206c4e9009cd6eb63866e18b2f5f /board/versatile/split_by_variant.sh
parentb8e16a3450fb9853a8b0ff617d70f1121b32c4c0 (diff)
downloadu-boot-imx-96782c63d3bd4067623895b8691ed2823c715f1d.zip
u-boot-imx-96782c63d3bd4067623895b8691ed2823c715f1d.tar.gz
u-boot-imx-96782c63d3bd4067623895b8691ed2823c715f1d.tar.bz2
Cleanup warnings for cpu/arm720t & cpu/arm1136 files.
sed the linker scripts, rather than pre-process them. Patch by Peter Pearse, 07 Oct 2005
Diffstat (limited to 'board/versatile/split_by_variant.sh')
-rwxr-xr-xboard/versatile/split_by_variant.sh23
1 files changed, 9 insertions, 14 deletions
diff --git a/board/versatile/split_by_variant.sh b/board/versatile/split_by_variant.sh
index ea705da..35c663e 100755
--- a/board/versatile/split_by_variant.sh
+++ b/board/versatile/split_by_variant.sh
@@ -2,26 +2,17 @@
# ---------------------------------------------------------
# Set the core module defines according to Core Module
# ---------------------------------------------------------
-CC=${CROSS_COMPILE}gcc
-config="versatilepb_config"
-
-if [ "$2" == "" ]
-then
- echo "$0:: No preprocessor parameter - using ${CROSS_COMPILE}gcc"
-else
- CC=$2
-fi
-
-
# ---------------------------------------------------------
# Set up the Versatile type define
# ---------------------------------------------------------
+variant=PB926EJ-S
if [ "$1" == "" ]
then
- echo "$0:: No parameters - using ${CROSS_COMPILE}gcc versatilepb_config"
-
+ echo "$0:: No parameters - using versatilepb_config"
+ echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h
+ variant=PB926EJ-S
else
- case "$config" in
+ case "$1" in
versatilepb_config | \
versatile_config)
echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h
@@ -29,11 +20,14 @@ else
versatileab_config)
echo "#define CONFIG_ARCH_VERSATILE_AB" > ./include/config.h
+ variant=AB926EJ-S
;;
*)
echo "$0:: Unrecognised config - using versatilepb_config"
+ echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h
+ variant=PB926EJ-S
;;
esac
@@ -43,3 +37,4 @@ fi
# Complete the configuration
# ---------------------------------------------------------
./mkconfig -a versatile arm arm926ejs versatile
+echo "Variant:: $variant"