Functions inside armv7/syslib can be used by other ARM
architectures, too. The file is added as part of
ARM library.

Signed-off-by: Stefano Babic <[email protected]>
CC: Albert ARIBAUD <[email protected]>
CC: Wolfgang Denk <[email protected]>
---

Changes:

- use -C in git format-patch to detect renames

 arch/arm/cpu/armv7/Makefile          |    2 --
 arch/arm/lib/Makefile                |    2 ++
 arch/arm/{cpu/armv7 => lib}/syslib.c |    0
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename arch/arm/{cpu/armv7 => lib}/syslib.c (100%)

diff --git a/arch/arm/cpu/armv7/Makefile b/arch/arm/cpu/armv7/Makefile
index 92a5a96..5b7f1c7 100644
--- a/arch/arm/cpu/armv7/Makefile
+++ b/arch/arm/cpu/armv7/Makefile
@@ -32,8 +32,6 @@ COBJS += cache_v7.o
 COBJS  += cpu.o
 endif
 
-COBJS  += syslib.o
-
 SRCS   := $(START:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
 START  := $(addprefix $(obj),$(START))
diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile
index 300c8fa..c966aa7 100644
--- a/arch/arm/lib/Makefile
+++ b/arch/arm/lib/Makefile
@@ -48,6 +48,8 @@ SOBJS-$(CONFIG_USE_ARCH_MEMSET) += memset.o
 SOBJS-$(CONFIG_USE_ARCH_MEMCPY) += memcpy.o
 endif
 
+COBJS-y        += syslib.o
+
 SRCS   := $(GLSOBJS:.o=.S) $(GLCOBJS:.o=.c) \
           $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
 OBJS   := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
diff --git a/arch/arm/cpu/armv7/syslib.c b/arch/arm/lib/syslib.c
similarity index 100%
rename from arch/arm/cpu/armv7/syslib.c
rename to arch/arm/lib/syslib.c
-- 
1.7.1

_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to