Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-08-14 19:00:33 +0400
committerCorinna Vinschen <corinna@vinschen.de>2014-08-14 19:00:33 +0400
commit433de33ec23f549e199aa3fb34ec45587dfdc145 (patch)
tree0e1cb202fff99f5692f4dc178df8bb740daa0c58 /libgloss/arm
parentf703e6aa089c8a4490c86501e466e523b206522d (diff)
* arm/elf-nano.specs: New file.
* arm/elf-rdimon.specs: Support nano.specs. * arm/Makefile.in: Support nano.specs. * libnosys/nosys.specs: Support nano.specs.
Diffstat (limited to 'libgloss/arm')
-rw-r--r--libgloss/arm/Makefile.in12
-rw-r--r--libgloss/arm/elf-rdimon.specs13
2 files changed, 17 insertions, 8 deletions
diff --git a/libgloss/arm/Makefile.in b/libgloss/arm/Makefile.in
index ab5c9cbbf..6e89cfb03 100644
--- a/libgloss/arm/Makefile.in
+++ b/libgloss/arm/Makefile.in
@@ -52,8 +52,11 @@ OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
@BUILD_CRT0_TRUE@CRT0 = crt0.o
@BUILD_CRT0_TRUE@CRT0_INSTALL = install-crt0
-@BUILD_CRT0_FALSE@CRT0 =
-@BUILD_CRT0_FALSE@CRT0_INSTALL =
+@BUILD_CRT0_FALSE@CRT0 =
+@BUILD_CRT0_FALSE@CRT0_INSTALL =
+
+NANO_SCRIPTS=nano.specs
+NANO_INSTALL=install-nano
LINUX_CRT0 = linux-crt0.o
LINUX_BSP = libgloss-linux.a
@@ -172,7 +175,7 @@ distclean maintainer-clean realclean: clean
rm -f Makefile config.status *~
.PHONY: install info install-info clean-info
-install: ${CRT0_INSTALL} ${LINUX_INSTALL} ${REDBOOT_INSTALL} ${RDPMON_INSTALL} ${RDIMON_INSTALL} ${IQ80310_INSTALL} ${PID_INSTALL}
+install: ${CRT0_INSTALL} ${LINUX_INSTALL} ${REDBOOT_INSTALL} ${RDPMON_INSTALL} ${RDIMON_INSTALL} ${IQ80310_INSTALL} ${PID_INSTALL} ${NANO_INSTALL}
@rootpre=`pwd`/; export rootpre; \
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
for dir in .. ${SUBDIRS}; do \
@@ -183,6 +186,9 @@ install: ${CRT0_INSTALL} ${LINUX_INSTALL} ${REDBOOT_INSTALL} ${RDPMON_INSTALL} $
else true; fi; \
done
+install-nano:
+ set -e; for x in ${NANO_SCRIPTS}; do ${INSTALL_DATA} ${srcdir}/${objtype}$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done
+
install-crt0:
${INSTALL_DATA} ${CRT0} $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x
diff --git a/libgloss/arm/elf-rdimon.specs b/libgloss/arm/elf-rdimon.specs
index 2f0692c8a..c35061f3a 100644
--- a/libgloss/arm/elf-rdimon.specs
+++ b/libgloss/arm/elf-rdimon.specs
@@ -1,10 +1,13 @@
-%rename lib libc
+%rename link_gcc_c_sequence rdimon_link_gcc_c_sequence
-*libgloss:
--lrdimon
+*rdimon_libc:
+%{!specs=nano.specs:-lc} %{specs=nano.specs:-lc_nano}
-*lib:
---start-group %(libc) %(libgloss) --end-group
+*rdimon_libgloss:
+%{!specs=nano.specs:-lrdimon} %{specs=nano.specs:-lrdimon_nano}
+
+*link_gcc_c_sequence:
+%(rdimon_link_gcc_c_sequence) --start-group %G %(rdimon_libc) %(rdimon_libgloss) --end-group
*startfile:
crti%O%s crtbegin%O%s %{!pg:rdimon-crt0%O%s} %{pg:rdimon-crt0%O%s}