Update of /cvsroot/blob/blob
In directory usw-pr-cvs1:/tmp/cvs-serv28493
Modified Files:
configure.in
Log Message:
Add infrastructure to select at compile-time which commands should be
linked with blob.
Index: configure.in
===================================================================
RCS file: /cvsroot/blob/blob/configure.in,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- configure.in 17 Feb 2002 15:41:53 -0000 1.45
+++ configure.in 17 Feb 2002 20:03:40 -0000 1.46
@@ -308,6 +308,31 @@
+dnl Check for blob commands
+AC_ARG_WITH(commands,[ --with-commands=<list> compile blob with commands in <list>
+ commands may be separated with commas;
+ 'all' compiles all commands;
+ Valid commands are:
+ call, chgbit, dummy, dump, memcpy, poke, peek],
+ blob_commands="$withval",
+ blob_commands="")
+
+default_commands="reset, reboot"
+all_commands="call, chgbit, dummy, dump, memcpy, poke, peek"
+
+if test "$blob_commands" = "all" ; then
+ blob_commands="$all_commands"
+fi
+
+ALL_COMMANDS=`echo $default_commands $all_commands | sed 's/,//g'`
+BLOB_COMMANDS=`echo $default_commands $blob_commands | sed 's/,//g'`
+
+AC_SUBST(ALL_COMMANDS)
+AC_SUBST(BLOB_COMMANDS)
+
+
+
+
dnl Check for individual features
AC_ARG_ENABLE(clock-scaling,
[ --enable-clock-scaling Enable support for clock scaling (SA1100 only)],
@@ -319,11 +344,6 @@
[chkmem_flag=$enable_memtest],
[chkmem_flag=no])
-AC_ARG_ENABLE(debug,
-[ --enable-debug Enable support for misc debugging functions ],
-[debug_flag=$enable_debug],
-[debug_flag=no])
-
AC_ARG_ENABLE(lcd,
[ --enable-lcd Enable lcd support ],
[lcd_flag=$enable_lcd],
@@ -366,7 +386,6 @@
if test "x$all_features_flag" = "xyes" ; then
clock_scaling_flag=yes
chkmem_flag=yes
- debug_flag=yes
lcd_flag=yes
md5_flag=yes
xmodem_flag=yes
@@ -404,16 +423,6 @@
-dnl Check wether or not debug code is wanted
-if test "x$debug_flag" = "xyes" ; then
- BLOB_DEBUG_OBJS="debug.o"
-fi
-
-AC_SUBST(BLOB_DEBUG_OBJS)
-
-
-
-
dnl Check wether or not lcd support code is wanted
if test "x$lcd_flag" = "xyes" ; then
if test "x$use_lcd" = "xyes" ; then
@@ -483,12 +492,6 @@
-dnl Check wether or not additional platform source code
-dnl for is needed
-
-
-
-
dnl Check for extra debug info
AC_ARG_ENABLE(blob-debug,
[ --enable-blob-debug Enable run-time debug information],
@@ -586,12 +589,12 @@
echo "Objcopy flags ${OCFLAGS}"
echo "Clock scaling support ${clock_scaling_flag}"
echo "Memory test support ${chkmem_flag}"
-echo "Debugging commands support ${debug_flag}"
echo "LCD support ${lcd_flag}"
echo "MD5 support ${md5_flag}"
echo "Xmodem support ${xmodem_flag}"
echo "UU Codec support ${uucodec_flag}"
echo "JFFS2 support ${jffs2_flag}"
echo "cramfs support ${cramfs_flag}"
+echo "Blob commands: ${BLOB_COMMANDS}"
echo "Run-time debug information ${blob_debug_flag}"
echo ""
|