OSDN Git Service

#30432 (「uzume_appを使う」=「BSPはamakusa」という仮定が敷かれている)
authorsuikan <suikan@users.sourceforge.jp>
Mon, 14 Jan 2013 15:31:20 +0000 (00:31 +0900)
committersuikan <suikan@users.sourceforge.jp>
Mon, 14 Jan 2013 15:31:20 +0000 (00:31 +0900)
に対応。configure-projectスクリプトを編集して、引数のBSP名に基づくcfgファイルをインクルードする"bsp.cfg"を生成できるようにした。これによって、自由にBSPを指定できるようになる。

uzumeapp/.gitignore
uzumeapp/configure-project
uzumeapp/uzume_sample.cfg

index ac83c09..5e27a1e 100644 (file)
@@ -13,3 +13,4 @@
 /makeoffset.s
 /Makefile
 /Makefile.depend
+/bsp.cfg
index baa02e9..778a6f9 100755 (executable)
@@ -1,7 +1,27 @@
+#/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
index ae6e057..e80aa96 100644 (file)
@@ -12,5 +12,4 @@ CRE_TSK(MAIN_TASK, { TA_HLNG|TA_ACT, 0, main_task, MAIN_TASK_PRIORITY,
 #include "kernel/systask/timer.cfg"
 #include "kernel/systask/serial.cfg"
 #include "kernel/systask/logtask.cfg"
-#include "kernel/uzume/bsp_amakusa592.cfg"
-
+#include "bsp.cfg"