summaryrefslogtreecommitdiff
path: root/cpu/mpc8xxx/Makefile
diff options
context:
space:
mode:
authorPoonam Aggrwal <poonam.aggrwal@freescale.com>2009-07-31 06:37:45 (GMT)
committerKumar Gala <galak@kernel.crashing.org>2009-08-28 22:12:38 (GMT)
commit18bacc2027f8531d8dec15ba8da3242dfb4e63f3 (patch)
tree3ec828cff5d1a0ff47bcd0daf90c4f5cc564ae2c /cpu/mpc8xxx/Makefile
parent7b18c227b847e4782eb1492219ebd555f521b08b (diff)
downloadu-boot-fsl-qoriq-18bacc2027f8531d8dec15ba8da3242dfb4e63f3.tar.xz
8xxx: Refactored common cpu specific code for 85xx/86xx into one file.
Removed same code pieces from cpu/mpc85xx/cpu.c and cpu/mpc86xx/cpu.c and moved to cpu/mpc8xxx/cpu.c(new file) Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'cpu/mpc8xxx/Makefile')
-rw-r--r--cpu/mpc8xxx/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/cpu/mpc8xxx/Makefile b/cpu/mpc8xxx/Makefile
new file mode 100644
index 0000000..430a75f
--- /dev/null
+++ b/cpu/mpc8xxx/Makefile
@@ -0,0 +1,25 @@
+#
+# Copyright 2009 Freescale Semiconductor, Inc.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# Version 2 as published by the Free Software Foundation.
+#
+
+include $(TOPDIR)/config.mk
+
+LIB = $(obj)lib8xxx.a
+
+COBJS-y += cpu.o
+
+SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
+OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
+
+all: $(obj).depend $(LIB)
+
+$(LIB): $(OBJS)
+ $(AR) $(ARFLAGS) $@ $(OBJS)
+
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend