に対応。configure-projectスクリプトを編集して、引数のBSP名に基づくcfgファイルをインクルードする"bsp.cfg"を生成できるようにした。これによって、自由にBSPを指定できるようになる。
/makeoffset.s
/Makefile
/Makefile.depend
+/bsp.cfg
+#/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 ../..
-kernel/configure -C blackfin -S bsp_amakusa592 -A uzume_sample
+cat > bsp.cfg << eos
+#include "kernel/uzume/$1.cfg"
+eos
+kernel/configure -C blackfin -S $1 -A uzume_sample
make depend
make clean
#include "kernel/systask/timer.cfg"
#include "kernel/systask/serial.cfg"
#include "kernel/systask/logtask.cfg"
-#include "kernel/uzume/bsp_amakusa592.cfg"
-
+#include "bsp.cfg"