Use chopstx
[gnuk/neug.git] / src / configure
index 293ddbb..7e567db 100755 (executable)
@@ -22,7 +22,7 @@
 
 # Default settings
 help=no
-target=STBEE_MINI
+target=FST_01
 verbose=no
 vidpid=none
 with_dfu=default
@@ -65,12 +65,10 @@ Defaults for the options are specified in brackets.
 Configuration:
   -h, --help           display this help and exit      [no]
   --vidpid=VID:PID     specify vendor/product ID       [<NONE>]
-  --target=TARGET      specify target                  [STBEE_MINI]
+  --target=TARGET      specify target                  [FST_01]
                        supported targes are:
-                          OLIMEX_STM32_H103
-                          STBEE_MINI
-                          CQ_STARM
-                          STBEE
+                          FST_01
+                          STM8S_DISCOVERY
   --with-dfu           build image for DFU             [<target specific>]
 EOF
   exit 0
@@ -81,13 +79,13 @@ if test "$vidpid" = "none"; then
   exit 1
 fi
 
-BOARD_DIR=../boards/$target
-if test -d $BOARD_DIR; then
-  echo "Configured for target: $target"
-else
-  echo "Unsupported target \`$target'" >&2
-  exit 1
-fi
+BOARD_DIR=../boards/$target
+if test -d $BOARD_DIR; then
+  echo "Configured for target: $target"
+else
+  echo "Unsupported target \`$target'" >&2
+  exit 1
+fi
 
 # Flash page size in byte
 FLASH_PAGE_SIZE=1024
@@ -181,8 +179,6 @@ then
   exit 1
 fi
 
-sed -e "s%@BOARD_DIR@%$BOARD_DIR%" \
-       < Makefile.in > Makefile
 sed -e "s/@ORIGIN@/$ORIGIN/" -e "s/@FLASH_SIZE@/$FLASH_SIZE/" \
     -e "s/@MEMORY_SIZE@/$MEMORY_SIZE/" \
     -e "s/@FLASH_PAGE_SIZE@/$FLASH_PAGE_SIZE/" \