2005-10-06 15:08:18 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# ---------------------------------------------------------
|
|
|
|
# Set the core module defines according to Core Module
|
|
|
|
# ---------------------------------------------------------
|
|
|
|
# ---------------------------------------------------------
|
|
|
|
# Set up the Versatile type define
|
|
|
|
# ---------------------------------------------------------
|
2005-10-08 22:22:48 +00:00
|
|
|
variant=PB926EJ-S
|
2005-10-06 15:08:18 +00:00
|
|
|
if [ "$1" == "" ]
|
|
|
|
then
|
2005-10-08 22:22:48 +00:00
|
|
|
echo "$0:: No parameters - using versatilepb_config"
|
|
|
|
echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h
|
|
|
|
variant=PB926EJ-S
|
2005-10-06 15:08:18 +00:00
|
|
|
else
|
2005-10-08 22:22:48 +00:00
|
|
|
case "$1" in
|
2005-10-06 15:08:18 +00:00
|
|
|
versatilepb_config | \
|
|
|
|
versatile_config)
|
|
|
|
echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h
|
|
|
|
;;
|
|
|
|
|
|
|
|
versatileab_config)
|
|
|
|
echo "#define CONFIG_ARCH_VERSATILE_AB" > ./include/config.h
|
2005-10-08 22:22:48 +00:00
|
|
|
variant=AB926EJ-S
|
2005-10-06 15:08:18 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
*)
|
|
|
|
echo "$0:: Unrecognised config - using versatilepb_config"
|
2005-10-08 22:22:48 +00:00
|
|
|
echo "#define CONFIG_ARCH_VERSATILE_PB" > ./include/config.h
|
|
|
|
variant=PB926EJ-S
|
2005-10-06 15:08:18 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
fi
|
|
|
|
# ---------------------------------------------------------
|
|
|
|
# Complete the configuration
|
|
|
|
# ---------------------------------------------------------
|
2006-03-13 11:37:35 +00:00
|
|
|
./mkconfig -a versatile arm arm926ejs versatile NULL versatile
|
2005-10-08 22:22:48 +00:00
|
|
|
echo "Variant:: $variant"
|