5
Last change
on this file since 41a557bc was
99d6172,
checked in by Zenon <zenon.hans.taneka@…>, on 11/07/18 at 00:50:38
|
Correct minor spelling and grammar errors
This work was performed as a GCI 2018 task.
|
-
Property mode set to
100644
|
File size:
578 bytes
|
Line | |
---|
1 | dnl canonicalize target cpu |
---|
2 | dnl NOTE: Most rtems targets do not fulfil autoconf's |
---|
3 | dnl target naming conventions "processor-vendor-os" |
---|
4 | dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them |
---|
5 | dnl and we have to fix it for rtems ourselves |
---|
6 | |
---|
7 | AC_DEFUN([RTEMS_CANONICAL_TARGET_CPU], |
---|
8 | [ |
---|
9 | AC_CANONICAL_TARGET |
---|
10 | AC_MSG_CHECKING(rtems target cpu) |
---|
11 | case "${target}" in |
---|
12 | no_cpu-*rtems*) |
---|
13 | RTEMS_CPU=no_cpu |
---|
14 | ;; |
---|
15 | riscv*-*rtems*) |
---|
16 | RTEMS_CPU=riscv |
---|
17 | ;; |
---|
18 | *) |
---|
19 | RTEMS_CPU=`echo $target | sed 's%^\([[^-]]*\)-\(.*\)$%\1%'` |
---|
20 | ;; |
---|
21 | esac |
---|
22 | AC_SUBST(RTEMS_CPU) |
---|
23 | AC_MSG_RESULT($RTEMS_CPU) |
---|
24 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.