source: rtems/aclocal/canonical-target-name.m4 @ 11ff3a9

5
Last change on this file since 11ff3a9 was 11ff3a9, checked in by Hesham Almatary <heshamelmatary@…>, on 10/27/17 at 04:18:40

cpukit: RISC-V - make riscv32 code work for riscv64 - v2

  • Use #ifdefs for 32/64 bit code
  • Use unsigned long which is 32-bit on riscv32 and 64-bit on riscv64 (register size)
  • Move the code to a new shared riscv folder to be shared between riscv32 and riscv64
  • Rename RTEMS_CPU extracted from command line to shared riscv target s/riscv*/riscv

Update #3109

  • Property mode set to 100644
File size: 579 bytes
RevLine 
[dfe7746e]1dnl canonicalize target cpu
[6c77bba]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
[3959276e]7AC_DEFUN([RTEMS_CANONICAL_TARGET_CPU],
[dfe7746e]8[
[37b5d78]9AC_CANONICAL_TARGET
[dfe7746e]10AC_MSG_CHECKING(rtems target cpu)
[8c92fa3]11case "${target}" in
[dfe7746e]12  no_cpu-*rtems*)
[15aa5ffb]13        RTEMS_CPU=no_cpu
[dfe7746e]14        ;;
[11ff3a9]15  riscv*-*rtems*)
16        RTEMS_CPU=riscv
17        ;;
18  *)
[a86c171]19        RTEMS_CPU=`echo $target | sed 's%^\([[^-]]*\)-\(.*\)$%\1%'`
[dfe7746e]20        ;;
21esac
[d2d22780]22AC_SUBST(RTEMS_CPU)
[15aa5ffb]23AC_MSG_RESULT($RTEMS_CPU)
[6c77bba]24])
Note: See TracBrowser for help on using the repository browser.