summaryrefslogtreecommitdiffstats
path: root/testsuites/aclocal/rtems-bsp-linkcmds.m4
blob: 0ad8867f9d1da34f152a98a427d2c5a7b7e2c152 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
dnl
dnl RTEMS Include paths.
dnl
dnl This is messy because the linkcmds have no clear and defined structure.
dnl There are BSP named linkcmds files, plain linkcmds file, configure template
dnl .in files configure changes and shared versions of these. The approach to have
dnl a single file for a number of BSPs in a family is sound, the lack of rules
dnl means we have a range of variants and this results in following code.
dnl
dnl The preinstall hid a number of questionable things and preinstall has gone.
dnl
AC_DEFUN([RTEMS_BSP_LINKCMDS],
[
AC_REQUIRE([RTEMS_SOURCE_TOP])
AC_REQUIRE([RTEMS_BUILD_TOP])

AC_MSG_CHECKING([BSP linkcmds])

RTEMS_BSP_ARCH_PATH="${RTEMS_SOURCE_ROOT}/bsps/${RTEMS_CPU}"
RTEMS_BSP_ARCH_LINKCMDS_PATH="${RTEMS_BSP_ARCH_PATH}/shared/start"
RTEMS_BSP_LIBBSP_PATH="${RTEMS_BUILD_ROOT}/lib/libbsp/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}"

AC_SUBST(RTEMS_BSP_ARCH_LINKCMDS_PATH)
AC_SUBST(RTEMS_BSP_LIBBSP_PATH)
])