[PATCH 2/3] add --enable-paravirt in cpukit configure scripts

Joel Sherrill joel.sherrill at OARcorp.com
Wed Nov 27 19:19:59 UTC 2013


On 11/27/2013 1:14 PM, Gedare Bloom wrote:
> I'm good with patches 1 and 2.

Just to keep this moving and make subsequent mergers
easier, let's merge patch 1 and 2. Philipp can address
concerns with 3.

And apparently there is another patch in the set
we need to look at.

> On Wed, Nov 27, 2013 at 1:00 PM, Philipp Eppelt
> <philipp.eppelt at mailbox.tu-dresden.de> wrote:
>> ---
>>  cpukit/aclocal/enable-paravirt.m4 | 17 +++++++++++++++++
>>  cpukit/configure.ac               |  6 ++++++
>>  2 files changed, 23 insertions(+)
>>  create mode 100644 cpukit/aclocal/enable-paravirt.m4
>>
>> diff --git a/cpukit/aclocal/enable-paravirt.m4 b/cpukit/aclocal/enable-paravirt.m4
>> new file mode 100644
>> index 0000000..ff768f4
>> --- /dev/null
>> +++ b/cpukit/aclocal/enable-paravirt.m4
>> @@ -0,0 +1,17 @@
>> +AC_DEFUN([RTEMS_ENABLE_PARAVIRT],
>> +[
>> +
>> +AC_ARG_ENABLE(paravirt,
>> +[AS_HELP_STRING([--enable-paravirt],[enable support for paravirtualization
>> +(i386 only) (default=no) ])],
>> +
>> +[case "${enableval}" in
>> +  yes) case "${RTEMS_CPU}" in
>> +         i386)     RTEMS_HAS_PARAVIRT=yes ;;
>> +         *)         RTEMS_HAS_PARAVIRT=no ;;
>> +       esac
>> +       ;;
>> +  no) RTEMS_HAS_PARAVIRT=no ;;
>> +  *)  AC_MSG_ERROR(bad value ${enableval} for enable-paravirt option) ;;
>> +esac],[RTEMS_HAS_PARAVIRT=no])
>> +])
>> diff --git a/cpukit/configure.ac b/cpukit/configure.ac
>> index da02f24..e111fdd 100644
>> --- a/cpukit/configure.ac
>> +++ b/cpukit/configure.ac
>> @@ -15,6 +15,7 @@ RTEMS_ENABLE_MULTIPROCESSING
>>  RTEMS_ENABLE_POSIX
>>  RTEMS_ENABLE_RTEMS_DEBUG
>>  RTEMS_ENABLE_NETWORKING
>> +RTEMS_ENABLE_PARAVIRT
>>
>>  RTEMS_ENV_RTEMSCPU
>>  RTEMS_CHECK_RTEMS_DEBUG
>> @@ -182,6 +183,11 @@ RTEMS_CPUOPT([RTEMS_SMP],
>>    [1],
>>    [if SMP is enabled])
>>
>> +RTEMS_CPUOPT([RTEMS_PARAVIRT],
>> +  [test x"$RTEMS_HAS_PARAVIRT" = xyes],
>> +  [1],
>> +  [PARAVIRT is enabled])
>> +
>>  RTEMS_CPUOPT([RTEMS_NETWORKING],
>>    [test x"$rtems_cv_HAS_NETWORKING" = xyes],
>>    [1],
>> --
>> 1.8.1.4
>>
>> _______________________________________________
>> rtems-devel mailing list
>> rtems-devel at rtems.org
>> http://www.rtems.org/mailman/listinfo/rtems-devel
> _______________________________________________
> rtems-devel mailing list
> rtems-devel at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-devel
> 



-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



More information about the devel mailing list