Move api_examples to examples/api
PATCH v3 1/1 Move api_examples to examples/api
Also add a rule to remove demo.bin which was previously leftover after a "make clean"
Signed-off-by Peter Tyser <[email protected]>
---
Changes since v2:
- Clean up demo.bin
- rebased
Makefile | 5 +++--
{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, 7 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%)Makefile +3 -2
@@ -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 \
examples/api/.gitignore renamed from api_examples/.gitignore +0 -0
examples/api/Makefile renamed from api_examples/Makefile +4 -4
@@ -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))
examples/api/crt0.S renamed from api_examples/crt0.S +0 -0
examples/api/demo.c renamed from api_examples/demo.c +0 -0
examples/api/glue.c renamed from api_examples/glue.c +0 -0
examples/api/glue.h renamed from api_examples/glue.h +0 -0
examples/api/libgenwrap.c renamed from api_examples/libgenwrap.c +0 -0
Signature · 1 line
1.6.2.1
Wolfgang Denk
AppliedPATCH v3 1/1 Move api_examples to examples/api
Dear Peter Tyser,
Quoted 9 lines · In message <[email protected]> you wrote:
Also add a rule to remove demo.bin which was previously leftover after a "make clean"
Signed-off-by Peter Tyser <[email protected]>---
Changes since v2:
- Clean up demo.bin
- rebased
Quoted 16 lines
Makefile | 5 +++--
{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, 7 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%)Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Landru! Guide us! -- A Beta 3-oid, "The Return of the Archons", stardate 3157.4