summaryrefslogtreecommitdiffstats
path: root/c/src/aclocal/bsp-linkcmds.m4
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/aclocal/bsp-linkcmds.m4')
-rw-r--r--c/src/aclocal/bsp-linkcmds.m47
1 files changed, 4 insertions, 3 deletions
diff --git a/c/src/aclocal/bsp-linkcmds.m4 b/c/src/aclocal/bsp-linkcmds.m4
index 3e40638f88..ce7b72d186 100644
--- a/c/src/aclocal/bsp-linkcmds.m4
+++ b/c/src/aclocal/bsp-linkcmds.m4
@@ -1,9 +1,10 @@
dnl Install a BSP's linkcmds from the source-tree into the build-tree
AC_DEFUN([RTEMS_BSP_LINKCMDS],[
+AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])
LINKCMDS=
-for f in "${srcdir}/startup/linkcmds.${RTEMS_BSP}" \
- "${srcdir}/startup/linkcmds.${RTEMS_BSP_FAMILY}" \
- "${srcdir}/startup/linkcmds";
+for f in "${srcdir}/../../../../../../bsps/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}/start/linkcmds.${RTEMS_BSP}" \
+ "${srcdir}/../../../../../../bsps/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}/start/linkcmds.${RTEMS_BSP_FAMILY}" \
+ "${srcdir}/../../../../../../bsps/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}/start/linkcmds";
do
AS_IF([test -f "$f"],[
LINKCMDS="$f"