summaryrefslogtreecommitdiffstats
path: root/c/src/aclocal
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-11-03 08:49:05 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-11-03 08:49:05 +0000
commit70d7a36e4c76665dec79d7a3670ce6896763783d (patch)
tree7448e4b8bf83540ed150b810074e5e16ffc4b472 /c/src/aclocal
parent2009-11-03 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-70d7a36e4c76665dec79d7a3670ce6896763783d.tar.bz2
2009-11-03 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/bsp-linkcmds.m4: New.
Diffstat (limited to 'c/src/aclocal')
-rw-r--r--c/src/aclocal/bsp-linkcmds.m419
1 files changed, 19 insertions, 0 deletions
diff --git a/c/src/aclocal/bsp-linkcmds.m4 b/c/src/aclocal/bsp-linkcmds.m4
new file mode 100644
index 0000000000..7304e1f5ca
--- /dev/null
+++ b/c/src/aclocal/bsp-linkcmds.m4
@@ -0,0 +1,19 @@
+dnl $Id$
+
+dnl Install a BSP's linkcmds from the source-tree into the build-tree
+AC_DEFUN([RTEMS_BSP_LINKCMDS],[
+LINKCMDS=
+for f in "${srcdir}/startup/linkcmds.${RTEMS_BSP}" \
+ "${srcdir}/startup/linkcmds.${RTEMS_BSP_FAMILY}" \
+ "${srcdir}/startup/linkcmds";
+do
+ AS_IF([test -f "$f"],[
+ LINKCMDS="$f"
+ break])
+done
+
+AS_IF([test -z "${LINKCMDS}"],[
+ AC_MSG_ERROR([can not determine linkcmds])])
+
+AC_CONFIG_LINKS([startup/linkcmds:${LINKCMDS}])
+])