#/bin/sh
# configure the Uzume sample project
# Usage :
#      configure-project bsp_name
#
#   for example, if you want to use bsp_amakusa592, run following :
#   configure-project bsp_amakusa592

if [ $# -ne 1 ]; then
  echo " "
  echo "Usage : "
  echo "    $0 name_of_bsp"
  echo "Name of BSP :"
  echo `ls kernel/config/blackfin/bsp* -d | sed -e "s%kernel/config/blackfin/%%" `
  echo " "
  exit 1
fi
cd kernel/cfg
make depend
make
cd ../..
cat > bsp.cfg << eos
#include "kernel/uzume/$1.cfg"
eos
kernel/configure -C blackfin -S $1 -A uzume_sample
make depend
make clean
