5
Last change
on this file since eaf5bec was
8621ed38,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/03/18 at 05:28:03
|
bsps: Move config macros to RTEMS_BSP_CONFIGURE
Provide HAS_NETWORKING and HAS_SMP Automake conditionals for all BSPs.
This patch is a part of the BSP source reorganization.
Update #3285.
|
-
Property mode set to
100644
|
File size:
1.6 KB
|
Line | |
---|
1 | dnl RTEMS_BSP_CONFIGURE |
---|
2 | dnl Common macro to be included by all bsp-configure.acs |
---|
3 | AC_DEFUN([RTEMS_BSP_CONFIGURE], |
---|
4 | [ |
---|
5 | AC_PREREQ(2.60) |
---|
6 | AM_MAINTAINER_MODE |
---|
7 | RTEMS_ENV_RTEMSBSP |
---|
8 | |
---|
9 | RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) |
---|
10 | |
---|
11 | AC_CONFIG_HEADERS([include/bspopts.tmp:bspopts.h.in],[ |
---|
12 | echo "/* BSP dependent options file */" >$tmp/config.h |
---|
13 | echo "/* automatically generated -- DO NOT EDIT!! */" >>$tmp/config.h |
---|
14 | echo >>$tmp/config.h |
---|
15 | echo "#ifndef __BSP_OPTIONS_H" >>$tmp/config.h |
---|
16 | echo "#define __BSP_OPTIONS_H" >>$tmp/config.h |
---|
17 | echo >>$tmp/config.h |
---|
18 | sed \ |
---|
19 | -e '/.*PACKAGE.*/d' \ |
---|
20 | -e '/\/\* Define to.*this package.*\*\//d' \ |
---|
21 | include/bspopts.tmp >> $tmp/config.h |
---|
22 | echo >>$tmp/config.h |
---|
23 | echo "#endif /* __BSP_OPTIONS_H */" >>$tmp/config.h |
---|
24 | AS_IF([cmp -s include/bspopts.h $tmp/config.h 2>/dev/null],[ |
---|
25 | AC_MSG_NOTICE([include/bspopts.h is unchanged]) |
---|
26 | rm -f $tmp/config.h],[ |
---|
27 | AC_MSG_NOTICE([creating include/bspopts.h]) |
---|
28 | rm -f include/bspopts.h |
---|
29 | mv $tmp/config.h include/bspopts.h |
---|
30 | ]) |
---|
31 | ]) |
---|
32 | RTEMS_PROJECT_ROOT |
---|
33 | |
---|
34 | RTEMS_PROG_CC_FOR_TARGET |
---|
35 | RTEMS_CANONICALIZE_TOOLS |
---|
36 | RTEMS_PROG_CCAS |
---|
37 | |
---|
38 | RTEMS_CHECK_MULTIPROCESSING |
---|
39 | RTEMS_CHECK_NETWORKING |
---|
40 | RTEMS_CHECK_SMP |
---|
41 | |
---|
42 | AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes") |
---|
43 | AM_CONDITIONAL(HAS_SMP,test "$rtems_cv_HAS_SMP" = "yes") |
---|
44 | |
---|
45 | RTEMS_BSP_BOOTCARD_OPTIONS |
---|
46 | |
---|
47 | RTEMS_BSPOPTS_HELP([RTEMS_BSP],[The RTEMS BSP name]) |
---|
48 | RTEMS_BSPOPTS_SET([RTEMS_BSP],[*],[$RTEMS_BSP]) |
---|
49 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.