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
|
|
|
|
# ---------------------------------------------------------
|
2006-09-01 17:49:50 +00:00
|
|
|
|
|
|
|
mkdir -p ${obj}include
|
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"
|
2006-09-01 17:49:50 +00:00
|
|
|
echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
|
2005-10-08 22:22:48 +00:00
|
|
|
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)
|
2006-09-01 17:49:50 +00:00
|
|
|
echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
|
2005-10-06 15:08:18 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
versatileab_config)
|
2006-09-01 17:49:50 +00:00
|
|
|
echo "#define CONFIG_ARCH_VERSATILE_AB" > ${obj}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"
|
2006-09-01 17:49:50 +00:00
|
|
|
echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
|
2005-10-08 22:22:48 +00:00
|
|
|
variant=PB926EJ-S
|
2005-10-06 15:08:18 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
fi
|
|
|
|
# ---------------------------------------------------------
|
|
|
|
# Complete the configuration
|
|
|
|
# ---------------------------------------------------------
|
2006-09-01 17:49:50 +00:00
|
|
|
$MKCONFIG -a versatile arm arm926ejs versatile NULL versatile
|
2005-10-08 22:22:48 +00:00
|
|
|
echo "Variant:: $variant"
|