summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/support
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-12-02 17:45:14 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-12-02 17:45:14 +0000
commit432834560293094335873531fef84a4a98606180 (patch)
tree8b4084cfe8c4a0c1dc49a77b8553ca8644fadec5 /c/src/lib/libbsp/powerpc/support
parente492f910f202b3385a0154ce887ea3ebc051995e (diff)
downloadrtems-432834560293094335873531fef84a4a98606180.tar.bz2
Patch rtems-rc-19991123-rc-2.diff from Ralf Corsepius
<corsepiu@faw.uni-ulm.de>: The patch below provides * automake support for score/cpu/powerpc * The hack to propagate values from *.cfg to automake configuration * A fix for librdbg/powerpc/mcp750/Makefile.am (Was completely corrupted before) * Fixes some files which apparently where missing in rtems-rc-19991123-rc-2.diff * some minor configuration related patches To apply: rm -rf ./c/src/exec/score/cpu/powerpc/wrap patch -p1 < rtems-rc-19991123-rc-3.diff Attention: c/src/exec/score/cpu/[configure.in|aclocal.m4|configure] should be removed after applying the patch.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/support')
-rw-r--r--c/src/lib/libbsp/powerpc/support/new_exception_processing/Makefile.am66
-rw-r--r--c/src/lib/libbsp/powerpc/support/old_exception_processing/Makefile.am66
2 files changed, 132 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/support/new_exception_processing/Makefile.am b/c/src/lib/libbsp/powerpc/support/new_exception_processing/Makefile.am
new file mode 100644
index 0000000000..f7299a4103
--- /dev/null
+++ b/c/src/lib/libbsp/powerpc/support/new_exception_processing/Makefile.am
@@ -0,0 +1,66 @@
+##
+## $Id$
+##
+
+AUTOMAKE_OPTIONS = foreign 1.4
+
+# C source names, if any, go here -- minus the .c
+C_FILES = cpu.c
+C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
+
+ROOT_H_FILES =
+RTEMS_SCORE_H_FILES = cpu.h c_isr.inl
+noinst_HEADERS = $(ROOT_H_FILES) $(RTEMS_SCORE_H_FILES)
+
+# Assembly source names, if any, go here -- minus the .S
+S_FILES = cpu_asm.S
+S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
+include $(top_srcdir)/../../../../../../automake/lib.am
+
+#
+# (OPTIONAL) Add local stuff here using +=
+#
+
+PREINSTALL_FILES = \
+$(PROJECT_INCLUDE) \
+$(PROJECT_INCLUDE)/rtems/score \
+$(ROOT_H_FILES:%=$(PROJECT_INCLUDE)/%) \
+$(RTEMS_SCORE_H_FILES:%=$(PROJECT_INCLUDE)/rtems/score/%)
+
+##TMPINSTALL_FILES += \
+##$(PROJECT_RELEASE)/lib/rtems$(LIB_VARIANT).o
+
+##$(PROJECT_RELEASE)/lib/rtems$(LIB_VARIANT).o: $(ARCH)/rtems.o
+## $(INSTALL_DATA) $< $@
+
+$(PROJECT_INCLUDE):
+ $(mkinstalldirs) $@
+
+$(PROJECT_INCLUDE)/rtems/score:
+ $(mkinstalldirs) $@
+
+$(PROJECT_INCLUDE)/rtems/score/%: %
+ $(INSTALL_DATA) $< $@
+
+$(PROJECT_INCLUDE)/%: %
+ $(INSTALL_DATA) $< $@
+
+REL = ../$(ARCH)/rtems-cpu.rel
+
+$(REL): $(C_O_FILES) $(S_O_FILES)
+ test -d ../$(ARCH) || mkdir ../$(ARCH)
+ $(make-rel)
+
+all-local: $(ARCH) $(PREINSTALL_FILES) $(REL)
+## all-local: $(ARCH)/rtems.o
+all-local: $(TMPINSTALL_FILES)
+
+clean-local:
+ $(RM) -r ../o-optimize ../o-debug ../o-profile
+
+EXTRA_DIST = \
+$(C_FILES) $(S_FILES)
+
+include $(top_srcdir)/../../../../../../automake/local.am
diff --git a/c/src/lib/libbsp/powerpc/support/old_exception_processing/Makefile.am b/c/src/lib/libbsp/powerpc/support/old_exception_processing/Makefile.am
new file mode 100644
index 0000000000..afd66502eb
--- /dev/null
+++ b/c/src/lib/libbsp/powerpc/support/old_exception_processing/Makefile.am
@@ -0,0 +1,66 @@
+##
+## $Id$
+##
+
+AUTOMAKE_OPTIONS = foreign 1.4
+
+# C source names
+C_FILES = cpu.c ppccache.c
+C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
+
+ROOT_H_FILES =
+RTEMS_SCORE_H_FILES = cpu.h c_isr.inl
+noinst_HEADERS = $(ROOT_H_FILES) $(RTEMS_SCORE_H_FILES)
+
+# Assembly source names
+S_FILES = cpu_asm.S
+S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
+include $(top_srcdir)/../../../../../../automake/lib.am
+
+PREINSTALL_FILES = \
+$(PROJECT_INCLUDE) \
+$(PROJECT_INCLUDE)/rtems/score \
+$(ROOT_H_FILES:%=$(PROJECT_INCLUDE)/%) \
+$(RTEMS_SCORE_H_FILES:%=$(PROJECT_INCLUDE)/rtems/score/%)
+
+TMPINSTALL_FILES += \
+$(PROJECT_RELEASE)/lib/rtems$(LIB_VARIANT).o
+
+$(PROJECT_RELEASE)/lib/rtems$(LIB_VARIANT).o: $(ARCH)/rtems.o
+ $(INSTALL_DATA) $< $@
+
+$(PROJECT_INCLUDE):
+ $(mkinstalldirs) $@
+
+$(PROJECT_INCLUDE)/rtems/score:
+ $(mkinstalldirs) $@
+
+$(PROJECT_INCLUDE)/rtems/score/%: %
+ $(INSTALL_DATA) $< $@
+
+$(PROJECT_INCLUDE)/%: %
+ $(INSTALL_DATA) $< $@
+
+REL = ../$(ARCH)/rtems-cpu.rel
+
+$(REL): $(C_O_FILES) $(S_O_FILES)
+ test -d ../$(ARCH) || mkdir ../$(ARCH)
+ $(make-rel)
+
+all-local: $(ARCH) $(PREINSTALL_FILES) $(REL)
+all-local: $(ARCH)/rtems.o
+all-local: $(TMPINSTALL_FILES)
+
+clean-local:
+ $(RM) -r ../o-optimize ../o-debug ../o-profile
+
+UNUSED_FILES = irq_stub.S
+
+EXTRA_DIST = \
+TODO \
+rtems.S \
+$(C_FILES) $(S_FILES) $(UNUSED_FILES)
+
+include $(top_srcdir)/../../../../../../automake/local.am