Move api_examples to examples/api
authorPeter Tyser <ptyser@xes-inc.com>
Tue, 21 Jul 2009 00:02:21 +0000 (19:02 -0500)
committerWolfgang Denk <wd@denx.de>
Tue, 21 Jul 2009 07:23:36 +0000 (09:23 +0200)
Also add a rule to remove demo.bin which was previously leftover
after a "make clean"

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Makefile
examples/api/.gitignore [moved from api_examples/.gitignore with 100% similarity]
examples/api/Makefile [moved from api_examples/Makefile with 91% similarity]
examples/api/crt0.S [moved from api_examples/crt0.S with 100% similarity]
examples/api/demo.c [moved from api_examples/demo.c with 100% similarity]
examples/api/glue.c [moved from api_examples/glue.c with 100% similarity]
examples/api/glue.h [moved from api_examples/glue.h with 100% similarity]
examples/api/libgenwrap.c [moved from api_examples/libgenwrap.c with 100% similarity]

index 9ffba2e..25a6254 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -141,7 +141,7 @@ endif
 # Don't include stuff already done in $(LIBS)
 SUBDIRS        = tools \
          examples/standalone \
-         api_examples
+         examples/api
 
 .PHONY : $(SUBDIRS)
 
@@ -3601,6 +3601,7 @@ clean:
               $(obj)examples/standalone/smc91111_eeprom                  \
               $(obj)examples/standalone/test_burst                       \
               $(obj)examples/standalone/timer
+       @rm -f $(obj)examples/api/demo{,.bin}
        @rm -f $(obj)tools/bmp_logo        $(obj)tools/easylogo/easylogo  \
               $(obj)tools/env/{fw_printenv,fw_setenv}                    \
               $(obj)tools/envcrc                                         \
@@ -3617,7 +3618,7 @@ clean:
        @rm -f $(obj)include/bmp_logo.h
        @rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
        @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
-       @rm -f $(obj)api_examples/demo $(TIMESTAMP_FILE) $(VERSION_FILE)
+       @rm -f $(TIMESTAMP_FILE) $(VERSION_FILE)
        @find $(OBJTREE) -type f \
                \( -name 'core' -o -name '*.bak' -o -name '*~' \
                -o -name '*.o'  -o -name '*.a' -o -name '*.exe' \) -print \
similarity index 91%
rename from api_examples/Makefile
rename to examples/api/Makefile
index 2a30bef..2d05a01 100644 (file)
@@ -33,13 +33,13 @@ include $(TOPDIR)/config.mk
 OUTPUT-$(CONFIG_API) = $(obj)demo
 OUTPUT = $(OUTPUT-y)
 
-# Source files located in the api_examples directory
+# Source files located in the examples/api directory
 SOBJ_FILES-$(CONFIG_API) += crt0.o
 COBJ_FILES-$(CONFIG_API) += demo.o
 COBJ_FILES-$(CONFIG_API) += glue.o
 COBJ_FILES-$(CONFIG_API) += libgenwrap.o
 
-# Source files which exist outside the api_examples directory
+# Source files which exist outside the examples/api directory
 EXT_COBJ_FILES-$(CONFIG_API) += lib_generic/crc32.o
 EXT_COBJ_FILES-$(CONFIG_API) += lib_generic/ctype.o
 EXT_COBJ_FILES-$(CONFIG_API) += lib_generic/string.o
@@ -51,8 +51,8 @@ endif
 # Create a list of source files so their dependencies can be auto-generated
 SRCS   += $(addprefix $(SRCTREE)/,$(EXT_COBJ_FILES-y:.o=.c))
 SRCS   += $(addprefix $(SRCTREE)/,$(EXT_SOBJ_FILES-y:.o=.S))
-SRCS   += $(addprefix $(SRCTREE)/api_examples/,$(COBJ_FILES-y:.o=.c))
-SRCS   += $(addprefix $(SRCTREE)/api_examples/,$(SOBJ_FILES-y:.o=.S))
+SRCS   += $(addprefix $(SRCTREE)/examples/api/,$(COBJ_FILES-y:.o=.c))
+SRCS   += $(addprefix $(SRCTREE)/examples/api/,$(SOBJ_FILES-y:.o=.S))
 
 # Create a list of object files to be compiled
 OBJS   += $(addprefix $(obj),$(SOBJ_FILES-y))
similarity index 100%
rename from api_examples/crt0.S
rename to examples/api/crt0.S
similarity index 100%
rename from api_examples/demo.c
rename to examples/api/demo.c
similarity index 100%
rename from api_examples/glue.c
rename to examples/api/glue.c
similarity index 100%
rename from api_examples/glue.h
rename to examples/api/glue.h