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