Permalink
Browse files

board.c: attempt serial boot if not possible to boot from mmc, nand, …

…or onenand
  • Loading branch information...
1 parent 319b265 commit 5eae9fb96b90370c7e11b757e6de3ac0df4dfd51 @sakoman sakoman committed Feb 8, 2010
Showing with 613 additions and 6 deletions.
  1. +1 −1 Makefile
  2. +48 −0 common/Makefile
  3. +551 −0 common/cmd_load.c
  4. +13 −5 lib/board.c
View
@@ -70,6 +70,7 @@ LIBS += lib/lib$(ARCH).a
LIBS += fs/fat/libfat.a
LIBS += disk/libdisk.a
LIBS += drivers/libdrivers.a
+LIBS += common/libcommon.a
.PHONY : $(LIBS)
# Add GCC lib
@@ -153,7 +154,6 @@ overo_config : unconfig
@./mkconfig $(@:_config=) arm omap3 overo
omap3530beagle_config : unconfig
-
@./mkconfig $(@:_config=) arm omap3 omap3530beagle
#########################################################################
View
@@ -0,0 +1,48 @@
+#
+# (C) Copyright 2004
+# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+include $(TOPDIR)/config.mk
+
+LIB = libcommon.a
+
+AOBJS =
+
+COBJS = cmd_load.o
+
+OBJS = $(AOBJS) $(COBJS)
+
+CPPFLAGS += -I..
+
+all: $(LIB) $(AOBJS)
+
+$(LIB): .depend $(OBJS)
+ $(AR) crv $@ $(OBJS)
+
+#########################################################################
+
+.depend: Makefile $(AOBJS:.o=.S) $(COBJS:.o=.c)
+ $(CC) -M $(CFLAGS) $(AOBJS:.o=.S) $(COBJS:.o=.c) > $@
+
+sinclude .depend
+
+#########################################################################
Oops, something went wrong.

0 comments on commit 5eae9fb

Please sign in to comment.