source: rtems/c/src/aclocal/canonical-target-name.m4 @ 8fa827c

5
Last change on this file since 8fa827c was 8fa827c, checked in by Hesham Almatary <heshamelmatary@…>, on 10/26/17 at 22:51:09

bsp: Make riscv_generic work for both riscv32 and riscv64 - v2

Update #3109

  • Property mode set to 100644
File size: 612 bytes
Line 
1dnl canonicalize target cpu
2dnl NOTE: Most rtems targets do not fullfil autoconf's
3dnl target naming conventions "processor-vendor-os"
4dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
5dnl and we have to fix it for rtems ourselves
6
7AC_DEFUN([RTEMS_CANONICAL_TARGET_CPU],
8[AC_REQUIRE([AC_CANONICAL_HOST])
9AC_MSG_CHECKING(rtems target cpu)
10case "${host}" in
11riscv*-*-rtems*)
12        RTEMS_CPU=riscv;;
13*-*-rtems*)
14        RTEMS_CPU="$host_cpu";;
15*)
16        ;;
17esac
18AS_IF([test -n "$RTEMS_CPU"],
19[dnl
20AC_MSG_RESULT($RTEMS_CPU)],
21[dnl
22AC_MSG_RESULT([<none>])
23AC_MSG_ERROR([unsupported host $host])])
24AC_SUBST(RTEMS_CPU)
25])
Note: See TracBrowser for help on using the repository browser.