[U-Boot] [PATCH v2 6/6] Move api_examples to examples/api

Peter Tyser ptyser at xes-inc.com
Fri Jul 10 18:03:20 CEST 2009


Signed-off-by: Peter Tyser <ptyser at xes-inc.com>
---
 Makefile                                    |    4 ++--
 {api_examples => examples/api}/.gitignore   |    0
 {api_examples => examples/api}/Makefile     |    8 ++++----
 {api_examples => examples/api}/crt0.S       |    0
 {api_examples => examples/api}/demo.c       |    0
 {api_examples => examples/api}/glue.c       |    0
 {api_examples => examples/api}/glue.h       |    0
 {api_examples => examples/api}/libgenwrap.c |    0
 8 files changed, 6 insertions(+), 6 deletions(-)
 rename {api_examples => examples/api}/.gitignore (100%)
 rename {api_examples => examples/api}/Makefile (91%)
 rename {api_examples => examples/api}/crt0.S (100%)
 rename {api_examples => examples/api}/demo.c (100%)
 rename {api_examples => examples/api}/glue.c (100%)
 rename {api_examples => examples/api}/glue.h (100%)
 rename {api_examples => examples/api}/libgenwrap.c (100%)

diff --git a/Makefile b/Makefile
index c143d66..f43a6cb 100644
--- a/Makefile
+++ b/Makefile
@@ -143,3 +143,3 @@ SUBDIRS	= tools \
 	  examples/standalone \
-	  api_examples
+	  examples/api
 
@@ -3598,2 +3598,3 @@ clean:
 	       $(obj)examples/standalone/timer
+	@rm -f $(obj)examples/api/demo $(TIMESTAMP_FILE) $(VERSION_FILE)
 	@rm -f $(obj)tools/bmp_logo	   $(obj)tools/easylogo/easylogo  \
@@ -3614,3 +3615,2 @@ clean:
 	@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)
 	@find $(OBJTREE) -type f \
diff --git a/api_examples/.gitignore b/examples/api/.gitignore
similarity index 100%
rename from api_examples/.gitignore
rename to examples/api/.gitignore
diff --git a/api_examples/Makefile b/examples/api/Makefile
similarity index 91%
rename from api_examples/Makefile
rename to examples/api/Makefile
index db9f6ea..ec36782 100644
--- a/api_examples/Makefile
+++ b/examples/api/Makefile
@@ -35,3 +35,3 @@ 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
@@ -41,3 +41,3 @@ 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
@@ -53,4 +53,4 @@ 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))
 
diff --git a/api_examples/crt0.S b/examples/api/crt0.S
similarity index 100%
rename from api_examples/crt0.S
rename to examples/api/crt0.S
diff --git a/api_examples/demo.c b/examples/api/demo.c
similarity index 100%
rename from api_examples/demo.c
rename to examples/api/demo.c
diff --git a/api_examples/glue.c b/examples/api/glue.c
similarity index 100%
rename from api_examples/glue.c
rename to examples/api/glue.c
diff --git a/api_examples/glue.h b/examples/api/glue.h
similarity index 100%
rename from api_examples/glue.h
rename to examples/api/glue.h
diff --git a/api_examples/libgenwrap.c b/examples/api/libgenwrap.c
similarity index 100%
rename from api_examples/libgenwrap.c
rename to examples/api/libgenwrap.c
-- 
1.6.2.1



More information about the U-Boot mailing list