* 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/Makefile b/Makefile
index af14042..b223161 100644
--- a/Makefile
+++ b/Makefile
@@ -134,7 +134,8 @@
 		$(OBJDUMP) -d $< > $@
 
 u-boot:		depend subdirs $(OBJS) $(LIBS) $(LDSCRIPT)
-		$(LD) $(LDFLAGS) $(OBJS) \
+		UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
+		$(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
 			--start-group $(LIBS) --end-group \
 			-Map u-boot.map -o u-boot
 
@@ -741,7 +742,7 @@
 #########################################################################
 
 cradle_config	:	unconfig
-	@./mkconfig $(@:_config=) arm pxa cradle 
+	@./mkconfig $(@:_config=) arm pxa cradle
 
 csb226_config	:	unconfig
 	@./mkconfig $(@:_config=) arm pxa csb226