STBee Mini support.

This commit is contained in:
NIIBE Yutaka
2010-10-22 12:56:40 +09:00
parent 1d56c8d14f
commit 9869d2c110
8 changed files with 304 additions and 3 deletions

7
src/configure vendored
View File

@@ -80,6 +80,7 @@ Configuration:
OLIMEX_STM32_H103
STM32_PRIMER2
CQ_STARM
STBEE_MINI
--enable-debug debug with virtual COM port [no]
--with-dfu build image for DFU [<target specific>]
--with-fsij Use FSIJ serial number [no: random number]
@@ -97,7 +98,7 @@ fi
# --with-dfu option
case $target in
CQ_STARM)
CQ_STARM|STBEE_MINI)
if test "$with_dfu" = "default"; then
with_dfu=yes;
fi ;;
@@ -109,11 +110,13 @@ esac
# --with-fsij option
if test "$with_fsij" = "no"; then
echo "Using random serial number for card AID"
FSIJ_DEFINE="#undef WITH_FSIJ_SERIAL_NUMBER"
SERIAL_NUMBER_FOUR_BYTES=`od -t u1 -N 4 /dev/random | sed -n -e '/^0000000/s/^0000000 *//' -e 's/ */,/gp'`
else
echo "Using FSIJ assigned serial number for card AID"
if test "x$MAIL" = "x"; then
echo "Please set MAIL shell variable to select FSIJ serial number." >&2
echo "ERROR: Please set MAIL shell variable to select FSIJ serial number" >&2
exit 1
fi
FSIJ_DEFINE="#define WITH_FSIJ_SERIAL_NUMBER 1"