5
Last change
on this file since c8dcdf54 was
9964895,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:35:35
|
bsps: Move startup files to bsps
Adjust build support files to new directory layout.
This patch is a part of the BSP source reorganization.
Update #3285.
|
-
Property mode set to
100644
|
File size:
951 bytes
|
Line | |
---|
1 | dnl |
---|
2 | dnl Check for target gcc |
---|
3 | dnl |
---|
4 | |
---|
5 | AC_DEFUN([RTEMS_PROG_CC], |
---|
6 | [ |
---|
7 | AC_BEFORE([$0], [AC_PROG_CPP])dnl |
---|
8 | AC_BEFORE([$0], [AC_PROG_CC])dnl |
---|
9 | AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl |
---|
10 | |
---|
11 | RTEMS_CHECK_TOOL(CC,gcc) |
---|
12 | test -z "$CC" && \ |
---|
13 | AC_MSG_ERROR([no acceptable cc found in \$PATH]) |
---|
14 | AC_PROG_CC |
---|
15 | AC_PROG_CPP |
---|
16 | ]) |
---|
17 | |
---|
18 | AC_DEFUN([RTEMS_PROG_CC_FOR_TARGET], |
---|
19 | [ |
---|
20 | dnl check target cc |
---|
21 | RTEMS_PROG_CC |
---|
22 | dnl check if the compiler supports -isystem |
---|
23 | RTEMS_GCC_ISYSTEM |
---|
24 | dnl check if the target compiler may use --pipe |
---|
25 | RTEMS_GCC_PIPE |
---|
26 | test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe" |
---|
27 | |
---|
28 | dnl check if the compiler supports --specs |
---|
29 | RTEMS_GCC_SPECS |
---|
30 | |
---|
31 | AS_IF([test x"$rtems_cv_gcc_specs" = xyes],[ |
---|
32 | GCCSPECS="-B\$(RTEMS_SOURCE_ROOT)/bsps/\$(RTEMS_CPU)/\$(RTEMS_BSP_FAMILY)/start" |
---|
33 | GCCSPECS="${GCCSPECS} -specs bsp_specs -qrtems"]) |
---|
34 | AC_SUBST(GCCSPECS) |
---|
35 | |
---|
36 | AS_IF([test "$GCC" = yes],[ |
---|
37 | RTEMS_RELLDFLAGS="-qnolinkcmds -nostdlib -r" |
---|
38 | ]) |
---|
39 | AC_SUBST(RTEMS_RELLDFLAGS) |
---|
40 | |
---|
41 | RTEMS_INCLUDES |
---|
42 | RTEMS_BSP_INCLUDES |
---|
43 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.