Changeset 2c367617 in rtems


Ignore:
Timestamp:
Oct 5, 2020, 9:58:11 AM (10 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
a9995f1
Parents:
f53712a
git-author:
Sebastian Huber <sebastian.huber@…> (10/05/20 09:58:11)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/05/20 10:00:29)
Message:

build: Add testopts.h to configure script

Close #4120.

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/acinclude.m4

    rf53712a r2c367617  
    6161])
    6262])
     63
     64# RTEMS_TESTOPT(NAME,CONDITION,VALUE,EXPLANATION)
     65
     66AC_DEFUN([_RTEMS_TESTOPT_INIT],[
     67AC_BEFORE([_RTEMS_TESTOPT])
     68cat >>testopts.tmp <<\_ACEOF
     69/**
     70 * @file rtems/testopts.h
     71 */
     72
     73/* target test dependent options file */
     74/* automatically generated -- DO NOT EDIT!! */
     75#ifndef _RTEMS_TESTOPTS_H
     76#define _RTEMS_TESTOPTS_H
     77_ACEOF
     78])
     79
     80AC_DEFUN([RTEMS_TESTOPT],[
     81AC_REQUIRE([_RTEMS_TESTOPT_INIT])
     82AC_BEFORE([_RTEMS_TESTOPT_FINI])
     83  if $2; then
     84cat >>testopts.tmp <<_ACEOF
     85
     86/* $4 */
     87#define $1 $3
     88_ACEOF
     89## FIXME: Duplicate the define to the autoheader
     90## Sanity check - Should be removed in future
     91    AC_DEFINE_UNQUOTED([$1],[$3],[$4])
     92  else
     93cat >>testopts.tmp <<\_ACEOF
     94
     95/* $4 */
     96/* #undef $1 */
     97_ACEOF
     98  fi
     99])
     100
     101AC_DEFUN([_RTEMS_TESTOPT_FINI],[
     102AC_REQUIRE([RTEMS_BUILD_TOP])
     103cat >>testopts.tmp <<\_ACEOF
     104
     105#endif /* _RTEMS_TESTOPTS_H */
     106_ACEOF
     107
     108AS_MKDIR_P(${RTEMS_BUILD_ROOT}/include/rtems)
     109AS_IF([test -f ${RTEMS_BUILD_ROOT}/include/rtems/testopts.h],
     110[
     111  AS_IF([cmp -s ${RTEMS_BUILD_ROOT}/include/rtems/testopts.h testopts.tmp 2>/dev/null],
     112  [
     113    AC_MSG_NOTICE([${RTEMS_BUILD_ROOT}/include/rtems/testopts.h is unchanged])
     114    rm -f testopts.tmp
     115  ],[
     116    AC_MSG_NOTICE([creating ${RTEMS_BUILD_ROOT}/include/rtems/testopts.h])
     117    rm -f ${RTEMS_BUILD_ROOT}/include/rtems/testopts.h
     118    mv testopts.tmp ${RTEMS_BUILD_ROOT}/include/rtems/testopts.h
     119  ])
     120],[
     121    AC_MSG_NOTICE([creating ${RTEMS_BUILD_ROOT}/include/rtems/testopts.h])
     122    rm -f ${RTEMS_BUILD_ROOT}/include/rtems/testopts.h
     123    mv testopts.tmp ${RTEMS_BUILD_ROOT}/include/rtems/testopts.h
     124])
     125])
  • cpukit/configure.ac

    rf53712a r2c367617  
    259259_RTEMS_CPUOPT_FINI
    260260
     261_RTEMS_TESTOPT_INIT
     262RTEMS_TESTOPT([RTEMS_TEST_VERBOSITY],
     263  [true],
     264  [T_NORMAL],
     265  [RTEMS Test Framework verbosity])
     266_RTEMS_TESTOPT_FINI
     267
    261268AC_ENABLE_MULTILIB([Makefile],[..])
    262269
Note: See TracChangeset for help on using the changeset viewer.