[rtems commit] ss555: Add rtems_crti/n
Joel Sherrill
joel at rtems.org
Tue Apr 22 20:04:23 UTC 2014
Module: rtems
Branch: master
Commit: 77737ad1047ce8bb9475c4957e71ae1b330e9d8c
Changeset: http://git.rtems.org/rtems/commit/?id=77737ad1047ce8bb9475c4957e71ae1b330e9d8c
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Tue Apr 22 13:06:08 2014 -0500
ss555: Add rtems_crti/n
---
c/src/lib/libbsp/powerpc/ss555/Makefile.am | 5 +++++
c/src/lib/libbsp/powerpc/ss555/bsp_specs | 4 ++--
c/src/lib/libbsp/powerpc/ss555/preinstall.am | 11 ++++++++++-
3 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/c/src/lib/libbsp/powerpc/ss555/Makefile.am b/c/src/lib/libbsp/powerpc/ss555/Makefile.am
index 0cb21da..df42033 100644
--- a/c/src/lib/libbsp/powerpc/ss555/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/ss555/Makefile.am
@@ -20,6 +20,11 @@ EXTRA_DIST = times
dist_project_lib_DATA += startup/linkcmds
+EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S
+rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S
+ $(CPPASCOMPILE) -o $@ -c $<
+project_lib_DATA = rtems_crti.$(OBJEXT)
+
noinst_LIBRARIES = libbsp.a
libbsp_a_SOURCES =
diff --git a/c/src/lib/libbsp/powerpc/ss555/bsp_specs b/c/src/lib/libbsp/powerpc/ss555/bsp_specs
index 8650a40..535ffac 100644
--- a/c/src/lib/libbsp/powerpc/ss555/bsp_specs
+++ b/c/src/lib/libbsp/powerpc/ss555/bsp_specs
@@ -4,10 +4,10 @@
*startfile:
%{!qrtems: %(old_startfile)} \
-%{!nostdlib: %{qrtems: ecrti%O%s -u __vectors -N -u start -e start}}
+%{!nostdlib: %{qrtems: ecrti%O%s rtems_crti%O%s crtbegin.o%s -u __vectors -N -u start -e start}}
*endfile:
-%{!qrtems: %(old_endfile)} %{qrtems: ecrtn%O%s}
+%{!qrtems: %(old_endfile)} %{qrtems: crtend.o%s ecrtn.o%s}
*link:
%{!qrtems: %(old_link)} %{qrtems: -dc -dp}
diff --git a/c/src/lib/libbsp/powerpc/ss555/preinstall.am b/c/src/lib/libbsp/powerpc/ss555/preinstall.am
index 63c4328..a21da1f 100644
--- a/c/src/lib/libbsp/powerpc/ss555/preinstall.am
+++ b/c/src/lib/libbsp/powerpc/ss555/preinstall.am
@@ -8,10 +8,15 @@ endif
PREINSTALL_DIRS =
DISTCLEANFILES += $(PREINSTALL_DIRS)
+all-local: $(TMPINSTALL_FILES)
+
+TMPINSTALL_FILES =
+CLEANFILES = $(TMPINSTALL_FILES)
+
all-am: $(PREINSTALL_FILES)
PREINSTALL_FILES =
-CLEANFILES = $(PREINSTALL_FILES)
+CLEANFILES += $(PREINSTALL_FILES)
$(PROJECT_LIB)/$(dirstamp):
@$(MKDIR_P) $(PROJECT_LIB)
@@ -60,3 +65,7 @@ $(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
+$(PROJECT_LIB)/rtems_crti.$(OBJEXT): rtems_crti.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
+ $(INSTALL_DATA) $< $(PROJECT_LIB)/rtems_crti.$(OBJEXT)
+TMPINSTALL_FILES += $(PROJECT_LIB)/rtems_crti.$(OBJEXT)
+
More information about the vc
mailing list