* Code cleanup:
  - remove trailing white space, trailing empty lines, C++ comments, etc.
  - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c)

* Patches by Kenneth Johansson, 25 Jun 2003:
  - major rework of command structure
    (work done mostly by Michal Cendrowski and Joakim Kristiansen)
diff --git a/board/ml2/Makefile b/board/ml2/Makefile
index dd93ded..40c60b1 100644
--- a/board/ml2/Makefile
+++ b/board/ml2/Makefile
@@ -29,7 +29,7 @@
 SOBJS	= init.o
 
 $(LIB):	$(OBJS) $(SOBJS)
-	$(AR) crv $@ $^
+	$(AR) crv $@ $(OBJS)
 
 clean:
 	rm -f $(SOBJS) $(OBJS)
diff --git a/board/ml2/flash.c b/board/ml2/flash.c
index 77e0931..090725d 100644
--- a/board/ml2/flash.c
+++ b/board/ml2/flash.c
@@ -298,4 +298,3 @@
 	return write_word(info, wp, data);
 
 }
-
diff --git a/board/ml2/init.S b/board/ml2/init.S
index 2386c2a..80f98c5 100644
--- a/board/ml2/init.S
+++ b/board/ml2/init.S
@@ -25,10 +25,10 @@
 #include <asm/mmu.h>
 
 
-     	.globl	ext_bus_cntlr_init
+	.globl	ext_bus_cntlr_init
 ext_bus_cntlr_init:
-        blr
+	blr
 
-        .globl  sdram_init
+	.globl  sdram_init
 sdram_init:
-        blr
+	blr
diff --git a/board/ml2/ml2.c b/board/ml2/ml2.c
index a89a8f9..6cc1bec 100644
--- a/board/ml2/ml2.c
+++ b/board/ml2/ml2.c
@@ -22,7 +22,6 @@
 #include <asm/processor.h>
 
 
-
 int board_pre_init (void)
 {
 	return 0;
diff --git a/board/ml2/serial.c b/board/ml2/serial.c
index dc9a8ea..92baba9 100644
--- a/board/ml2/serial.c
+++ b/board/ml2/serial.c
@@ -35,7 +35,7 @@
 
 #if (defined CFG_INIT_CHAN1) || (defined CFG_INIT_CHAN2)
 const NS16550_t COM_PORTS[] = { (NS16550_t) CFG_NS16550_COM1,
-		                (NS16550_t) CFG_NS16550_COM2 };
+				(NS16550_t) CFG_NS16550_COM2 };
 #endif
 
 int
@@ -59,7 +59,7 @@
 serial_putc(const char c)
 {
     if (c == '\n')
-        NS16550_putc(COM_PORTS[CFG_DUART_CHAN], '\r');
+	NS16550_putc(COM_PORTS[CFG_DUART_CHAN], '\r');
 
     NS16550_putc(COM_PORTS[CFG_DUART_CHAN], c);
 }
diff --git a/board/ml2/u-boot.lds b/board/ml2/u-boot.lds
index 9685f89..07275d3 100644
--- a/board/ml2/u-boot.lds
+++ b/board/ml2/u-boot.lds
@@ -116,6 +116,11 @@
   _edata  =  .;
   PROVIDE (edata = .);
 
+  __u_boot_cmd_start = .;
+  .u_boot_cmd : { *(.u_boot_cmd) }
+  __u_boot_cmd_end = .;
+
+
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
   __stop___ex_table = .;
diff --git a/board/ml2/u-boot.lds.debug b/board/ml2/u-boot.lds.debug
index f4f9743..d483424 100644
--- a/board/ml2/u-boot.lds.debug
+++ b/board/ml2/u-boot.lds.debug
@@ -106,6 +106,11 @@
   _edata  =  .;
   PROVIDE (edata = .);
 
+  __u_boot_cmd_start = .;
+  .u_boot_cmd : { *(.u_boot_cmd) }
+  __u_boot_cmd_end = .;
+
+
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
   __stop___ex_table = .;
@@ -128,4 +133,3 @@
   _end = . ;
   PROVIDE (end = .);
 }
-