-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
1530 lines (1352 loc) · 52.1 KB
/
configure.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT([Xenomai],m4_normalize(m4_include([config/version])),[email protected])
CONFIG_XENO_VERSION_MAJOR=`expr $PACKAGE_VERSION : '\([[0-9]]*\)'`
CONFIG_XENO_VERSION_MINOR=`expr $PACKAGE_VERSION : '[[0-9]]*\.\([[0-9]]*\)'`
CONFIG_XENO_REVISION_LEVEL=`expr $PACKAGE_VERSION : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'`
test "x$CONFIG_XENO_REVISION_LEVEL" = "x" && CONFIG_XENO_REVISION_LEVEL=0
AC_CONFIG_HEADERS(include/xeno_config.h)
AC_CONFIG_AUX_DIR(config/autoconf)
AC_CONFIG_SRCDIR(nucleus/module.c)
AC_PREFIX_DEFAULT(/usr/realtime)
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_PROG_INSTALL
AC_ARG_WITH(cc,
AS_HELP_STRING([--with-cc=compiler],[use specific C compiler]),
[
case "$withval" in
"" | y | ye | yes | n | no)
AC_MSG_ERROR([You must supply an argument to --with-cc.])
;;
esac
CC="$withval"
])
AC_PROG_CC
CFLAGS=""
AC_PROG_CC_FOR_BUILD
AC_DEFINE_UNQUOTED(CONFIG_XENO_BUILD_STRING,"$build",[Build system alias])
XENO_BUILD_STRING="$build"
AC_DEFINE_UNQUOTED(CONFIG_XENO_HOST_STRING,"$host",[Host system alias])
XENO_HOST_STRING="$host"
AC_DEFINE_UNQUOTED(CONFIG_XENO_COMPILER,"`$CC -v 2>&1 | tail -n 1`",[Compiler])
AM_INIT_AUTOMAKE([foreign no-exeext dist-bzip2])
AM_MAINTAINER_MODE
AC_PROG_LIBTOOL
AM_PROG_AS
AM_PROG_LEX
arch_have_sim=
case "$host" in
i*86*-*)
XENO_TARGET_ARCH=i386
wanted_kernel_arch=CONFIG_X86
arch_have_sim=y
;;
powerpc-*|ppc-*)
XENO_TARGET_ARCH=ppc
wanted_kernel_arch=CONFIG_PPC
arch_have_sim=y
;;
powerpc64-*|ppc64-*)
XENO_TARGET_ARCH=ppc64
wanted_kernel_arch=CONFIG_PPC64
arch_have_sim=y
;;
ia64-*)
XENO_TARGET_ARCH=ia64
wanted_kernel_arch=CONFIG_IA64
arch_have_sim=y
;;
*) echo ""
echo "*******************************************"
echo "Still unsupported host: $host -- Sorry."
echo "*******************************************"
echo ""
exit 1;;
esac
dnl
dnl Load the configuration.
dnl
XENO_KCONFIG_FILE=$srcdir/arch/$XENO_TARGET_ARCH/defconfig
kconfig_type=default
AC_ARG_WITH(kconfig-file,
AS_HELP_STRING([--with-kconfig-file=<kconfig-file>], [KConfig parameter file]),
[
case "$withval" in
"" | y | ye | yes | n | no)
AC_MSG_ERROR([You must supply an argument to --with-kconfig-file.])
;;
esac
XENO_KCONFIG_FILE="$withval"
kconfig_type=supplied
])
AC_MSG_CHECKING([for Xenomai Kconfig file])
if test \! -f $XENO_KCONFIG_FILE; then
AC_MSG_ERROR([Kconfig-file $XENO_KCONFIG_FILE not found -- --with-kconfig-file sets Kconfig file])
fi
. $XENO_KCONFIG_FILE
AC_MSG_RESULT([$XENO_KCONFIG_FILE ($kconfig_type)])
dnl
dnl Installation directory for modules
dnl
AC_MSG_CHECKING([for module installation directory])
AC_ARG_WITH(module-dir,
AS_HELP_STRING([--with-module-dir=<module-dir>],[Installation directory for modules]),
[
case "$withval" in
"" | y | ye | yes | n | no)
AC_MSG_ERROR([You must supply an argument to --with-module-dir.])
;;
esac
XENO_MODULE_DIR="$withval"
])
top_builddir=`pwd`
dnl Are we building into the source tree?
dnl Set a default module dir if unspecified
if test "x" = "x$XENO_MODULE_DIR"
then
XENO_MODULE_DIR='${exec_prefix}/modules'
else
XENO_MODULE_DIR="`/bin/bash -c \"echo $XENO_MODULE_DIR\"`"
fi
AC_MSG_RESULT([$XENO_MODULE_DIR])
dnl A place to export module symbols
XENO_SYMBOL_DIR='${exec_prefix}/symbols'
dnl Determine whether we are building in the source tree; we will
dnl need this info later.
abs_srcdir=`cd "$srcdir" && pwd`
if test "$abs_srcdir" = $top_builddir; then
CONFIG_XENO_OLD_FASHIONED_BUILD=y
else
CONFIG_XENO_OLD_FASHIONED_BUILD=
fi
dnl
dnl Process the Linux kernel configuration
dnl
AC_MSG_CHECKING([for Linux build tree])
dnl CONFIG_MODULES has been forcibly set in Xenomai's configuration
dnl file, therefore we must unset it before later checking if the kernel
dnl actually defined it as required too.
unset CONFIG_MODULES
XENO_LINUX_DIR=$CONFIG_XENO_LINUXDIR
AC_ARG_WITH(linux-dir,
AS_HELP_STRING([--with-linux-dir=<linux-dir>],
[Adeos-enabled Linux kernel build tree]),
[
case "$withval" in
"" )
if test x${CONFIG_XENO_LINUXDIR} = x; then
AC_MSG_ERROR([You must supply an argument to --with-linux-dir.])
else
withval=${CONFIG_XENO_LINUXDIR}
fi
;;
y | ye | yes | n | no)
AC_MSG_ERROR([You must supply an argument to --with-linux-dir.])
;;
esac
XENO_LINUX_DIR="$withval"
])
if test x${XENO_LINUX_DIR} = x; then
if test -f /lib/modules/`uname -r`/build/Makefile; then
XENO_LINUX_DIR=/lib/modules/`uname -r`/build
else
echo
AC_MSG_ERROR([Linux kernel tree not specified -- use --with-linux-dir])
fi
else
XENO_LINUX_DIR="`/bin/bash -c \"echo $XENO_LINUX_DIR\"`"
fi
XENO_LINUX_DIR=`cd "$XENO_LINUX_DIR" 2>/dev/null && pwd \
|| echo "$XENO_LINUX_DIR"`
if test \! -r ${XENO_LINUX_DIR}/Makefile; then
echo
AC_MSG_ERROR([No Linux kernel build tree in ${XENO_LINUX_DIR}])
fi
dnl XENO_LINUX_DIR contains the Linux kernel build tree, try to deduce the
dnl kernel source tree from the build directory top Makefile from the variable
dnl KERNELSRC defined there. If this variable is not defined, we suppose that
dnl the kernel was built in its source tree.
XENO_LINUX_SRCDIR=`sed -e 's,KERNELSRC *:= *\(.*\)$,\1,;t;d' \
"${XENO_LINUX_DIR}/Makefile"`
test -z "$XENO_LINUX_SRCDIR" && XENO_LINUX_SRCDIR="${XENO_LINUX_DIR}"
eval linux_`grep '^EXTRAVERSION =' $XENO_LINUX_SRCDIR/Makefile | sed -e 's, ,,g'`
eval linux_`grep '^PATCHLEVEL =' $XENO_LINUX_SRCDIR/Makefile | sed -e 's, ,,g'`
eval linux_`grep '^SUBLEVEL =' $XENO_LINUX_SRCDIR/Makefile | sed -e 's, ,,g'`
eval linux_`grep '^VERSION =' $XENO_LINUX_SRCDIR/Makefile | sed -e 's, ,,g'`
dnl Load Linux kernel configuration now, before config symbols are tested.
if test \! -r ${XENO_LINUX_DIR}/.config; then
AC_MSG_RESULT([invalid])
AC_MSG_ERROR([$XENO_LINUX_DIR is not configured -- --with-linux-dir sets linux-dir])
fi
. $XENO_LINUX_DIR/.config
XENO_LINUX_VERSION="$linux_VERSION.$linux_PATCHLEVEL.$linux_SUBLEVEL$linux_EXTRAVERSION"
AC_MSG_RESULT([$XENO_LINUX_DIR (kernel ${XENO_LINUX_VERSION}${CONFIG_SMP:+-SMP})])
AC_MSG_CHECKING([for Linux source tree])
AC_MSG_RESULT([$XENO_LINUX_SRCDIR])
dnl
dnl Check for an interrupt pipeline extension.
dnl
AC_MSG_CHECKING([for interrupt pipeline extension])
if test -r $XENO_LINUX_SRCDIR/include/linux/ipipe.h; then
v=`grep '^#define.*IPIPE_ARCH_STRING.*"' $XENO_LINUX_SRCDIR/include/asm-$XENO_TARGET_ARCH/ipipe.h|sed -e 's,.*"\(.*\)"$,\1,'`
AC_MSG_RESULT([Adeos newgen (I-pipe $v)])
if test x${CONFIG_IPIPE} = x; then
AC_MSG_ERROR([Please activate the Adeos support in $XENO_LINUX_DIR and rebuild your kernel])
fi
elif test -r $XENO_LINUX_SRCDIR/include/linux/adeos.h; then
v=`grep '^#define.*ADEOS_ARCH_STRING.*"' $XENO_LINUX_SRCDIR/include/asm-$XENO_TARGET_ARCH/adeos.h|sed -e 's,.*"\(.*\)"$,\1,'`
AC_MSG_RESULT([Adeos oldgen ($v)])
if test x${CONFIG_ADEOS_CORE} = x; then
AC_MSG_ERROR([Please activate the Adeos support in $XENO_LINUX_DIR and rebuild your kernel])
fi
else
AC_MSG_ERROR([No interrupt pipeline extension enabled in your kernel.
You need to apply an Adeos patch first.])
fi
dnl
dnl We need Linux 2.6.
dnl
case "$XENO_LINUX_VERSION" in
2.6.*)
;;
*)
AC_MSG_ERROR([Unsupported kernel version $XENO_LINUX_VERSION])
esac
dnl
dnl Perform a few sanity checks.
dnl
arch_select=`eval echo \\$$wanted_kernel_arch`
if test x$arch_select = x; then
echo
echo "************************************************************"
echo " The target Xenomai architecture ($XENO_TARGET_ARCH) does not match"
echo " the kernel architecture selected in $XENO_LINUX_DIR"
echo " (i.e. $wanted_kernel_arch is undefined)"
echo "************************************************************"
exit 1
fi
if test x${CONFIG_MODULES} = x ; then
AC_MSG_ERROR([Please set CONFIG_MODULES for $XENO_LINUX_DIR and rebuild your kernel])
fi
CONFIG_XENO_LINUXDIR=$XENO_LINUX_DIR
dnl Some sanity checks again. We are only rearranging defaults and
dnl discarding preposterous settings here, previous user selection
dnl is kept as long as it is sane.
if test "$CONFIG_X86" = y; then
if test x$CONFIG_X86_EMU486 = x -a x$CONFIG_X86_CMPXCHG = x; then
AC_MSG_ERROR([Xenomai won't work on legacy i386 platforms (cmpxchg() is missing, need >= CONFIG_M486)])
fi
if test x$CONFIG_X86_WP_WORKS_OK = x; then
AC_MSG_ERROR([Xenomai won't work on legacy i386 platforms (cannot rely on WP bit, need >= CONFIG_M486)])
fi
fi
dnl Extract GCC architecture specific flags from KBUILD Makefiles.
AC_MSG_CHECKING(for GCC architecture specific flags)
mkdir -p .xeno_display_archflags
cat > .xeno_display_archflags/display_archflags.c <<EOF
#include <stdio.h>
int main(void)
{
char *str = XENO_CFLAGS;
printf("%s\n", str);
return 0;
}
EOF
cat > .xeno_display_archflags/Makefile <<EOF
hostprogs-y := display_archflags
always := display_archflags
HOST_EXTRACFLAGS += -DXENO_CFLAGS="\"\$(CC) \$(CFLAGS)\""
EOF
make -s -C $XENO_LINUX_DIR CC="$CC" ARCH=$XENO_TARGET_ARCH \
CROSS_COMPILE=$CROSS_COMPILE M=$PWD/.xeno_display_archflags >& /dev/null
for flag in `.xeno_display_archflags/display_archflags`; do case $flag in
-march*|-mcpu*|-mtune*|-m32|-Wa,-me500|-EB|-EL)
XENO_ARCH_FLAGS="$XENO_ARCH_FLAGS $flag";;
*);;
esac; done
rm -Rf .xeno_display_archflags
AC_MSG_RESULT(${XENO_ARCH_FLAGS:-none})
AC_MSG_CHECKING(for pervasive real-time support in user-space)
AC_ARG_ENABLE(pervasive,
AS_HELP_STRING([--enable-pervasive], [Enable pervasive real-time support in user-space]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_PERVASIVE=y ;;
*) unset CONFIG_XENO_OPT_PERVASIVE ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_PERVASIVE:-no})
AC_MSG_CHECKING(for message pipe support)
AC_ARG_ENABLE(nucleus-pipe,
AS_HELP_STRING([--enable-nucleus-pipe], [Enable message pipe support in nucleus]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_PIPE=y ;;
*) unset CONFIG_XENO_OPT_PIPE ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_PIPE:-no})
if test x$CONFIG_XENO_OPT_PIPE = xy; then
AC_MSG_CHECKING(for maximum number of pipe devices)
AC_ARG_ENABLE(nucleus-pipe-nrdev,
AS_HELP_STRING([--enable-nucleus-pipe-nrdev], [Set maximum number of pipe devices]),
[case "$enableval" in
[[0-9]]*) CONFIG_XENO_OPT_PIPE_NRDEV=$enableval ;;
*) AC_MSG_ERROR([Bad argument to option: --enable-nucleus-pipe-nrdev=<number>]) ;;
esac])
if test x$CONFIG_XENO_OPT_PIPE_NRDEV = x ; then
# Use a reasonable default if unset
CONFIG_XENO_OPT_PIPE_NRDEV=32
fi
AC_MSG_RESULT($CONFIG_XENO_OPT_PIPE_NRDEV)
XENO_PIPE_NRDEV=`expr $CONFIG_XENO_OPT_PIPE_NRDEV - 1`
if test x`expr $XENO_PIPE_NRDEV \< 0` = x1; then
AC_MSG_ERROR([Bad argument to option: --enable-nucleus-pipe-nrdev=<number>])
fi
else
# No pipe support
XENO_PIPE_NRDEV=-1
fi
AC_MSG_CHECKING(for the system heap size)
AC_ARG_ENABLE(nucleus-heap-size,
AS_HELP_STRING([--enable-nucleus-heap-size], [Set size of the system heap (Kb)]),
[case "$enableval" in
[[0-9]]*) CONFIG_XENO_OPT_SYS_HEAPSZ=$enableval ;;
*) AC_MSG_ERROR([Bad argument to option: --enable-nucleus-heap-size=<number>]) ;;
esac])
if test x$CONFIG_XENO_OPT_SYS_HEAPSZ = x ; then
# Use a reasonable default if unset
CONFIG_XENO_OPT_SYS_HEAPSZ=128
fi
AC_MSG_RESULT([$CONFIG_XENO_OPT_SYS_HEAPSZ Kbytes])
AC_MSG_CHECKING(for scalable scheduler)
AC_ARG_ENABLE(nucleus-scalable-sched,
AS_HELP_STRING([--enable-nucleus-scalable-sched],
[Enable scalable scheduler in nucleus]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_SCALABLE_SCHED=y ;;
*) unset CONFIG_XENO_OPT_SCALABLE_SCHED ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_SCALABLE_SCHED:-no})
if test x$CONFIG_XENO_OPT_SCALABLE_SCHED = xy; then
AC_MSG_CHECKING(for maximum number of priority levels)
AC_ARG_ENABLE(nucleus-scalable-prios,
AS_HELP_STRING([--enable-nucleus-scalable-prios], [Set maximum number of priority levels]),
[case "$enableval" in
[[0-9]]*) CONFIG_XENO_OPT_SCALABLE_PRIOS=$enableval ;;
*) AC_MSG_ERROR([Bad argument to option: --enable-nucleus-scalable-prios=<number>]) ;;
esac])
fi
if test x$CONFIG_XENO_OPT_SCALABLE_PRIOS = x ; then
# Use a reasonable default if unset
CONFIG_XENO_OPT_SCALABLE_PRIOS=256
fi
if test x$CONFIG_XENO_OPT_SCALABLE_SCHED = xy; then
AC_MSG_RESULT($CONFIG_XENO_OPT_SCALABLE_PRIOS)
fi
AC_MSG_CHECKING(for interrupt shield support)
AC_ARG_ENABLE(nucleus-ishield,
AS_HELP_STRING([--enable-nucleus-ishield], [Enable interrupt shield]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_ISHIELD=y ;;
*) unset CONFIG_XENO_OPT_ISHIELD ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_ISHIELD:-no})
AC_MSG_CHECKING(for statistics collection in nucleus)
AC_ARG_ENABLE(nucleus-stats,
AS_HELP_STRING([--enable-nucleus-stats], [Enable statistics collection in nucleus]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_STATS=y ;;
*) unset CONFIG_XENO_OPT_STATS ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_STATS:-no})
AC_MSG_CHECKING(for debug support in nucleus)
AC_ARG_ENABLE(nucleus-debug,
AS_HELP_STRING([--enable-nucleus-debug], [Enable debug support in nucleus]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_DEBUG=y ;;
*) unset CONFIG_XENO_OPT_DEBUG ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_DEBUG:-no})
AC_MSG_CHECKING(for watchdog support)
AC_ARG_ENABLE(nucleus-debug,
AS_HELP_STRING([--enable-nucleus-watchdog], [Enable watchdog support in nucleus]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_WATCHDOG=y ;;
*) unset CONFIG_XENO_OPT_WATCHDOG ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_WATCHDOG:-no})
AC_MSG_CHECKING(for FPU support)
AC_ARG_ENABLE(fpu,
AS_HELP_STRING([--enable-fpu], [Enable FPU support]),
[case "$enableval" in
y | yes) CONFIG_XENO_HW_FPU=y ;;
*) unset CONFIG_XENO_HW_FPU ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_HW_FPU:-no})
AC_MSG_CHECKING(for udev support)
AC_ARG_ENABLE(udev,
AS_HELP_STRING([--enable-udev], [Enable udev support]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_UDEV=y ;;
*) unset CONFIG_XENO_OPT_UDEV ;;
esac])
if test x$CONFIG_XENO_OPT_UDEV = xy -a x$CONFIG_HOTPLUG = x; then
unset CONFIG_XENO_OPT_UDEV
AC_MSG_RESULT([no hotplug support])
else
AC_MSG_RESULT(${CONFIG_XENO_OPT_UDEV:-no})
fi
AC_MSG_CHECKING(for gzipped config file support)
AC_ARG_ENABLE(nucleus-config-gz,
AS_HELP_STRING([--enable-nucleus-config-gz], [Make gzipped config file available from /proc]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_CONFIG_GZ=y ;;
*) unset CONFIG_XENO_OPT_CONFIG_GZ ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_CONFIG_GZ:-no})
AC_MSG_CHECKING(for periodic timer support)
AC_ARG_ENABLE(periodic-timer,
AS_HELP_STRING([--enable-periodic-timer], [Enable periodic timer support]),
[case "$enableval" in
y | yes) CONFIG_XENO_HW_PERIODIC_TIMER=y ;;
*) unset CONFIG_XENO_HW_PERIODIC_TIMER ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_HW_PERIODIC_TIMER:-no})
AC_MSG_CHECKING(for debug symbols in kernel modules)
AC_ARG_ENABLE(module-debug,
AS_HELP_STRING([--enable-module-debug], [Enable debug information in kernel modules]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_KSYMS=y ;;
*) unset CONFIG_XENO_OPT_KSYMS ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_KSYMS:-no})
AC_MSG_CHECKING(for debug symbols in user-space programs)
AC_ARG_ENABLE(user-debug,
AS_HELP_STRING([--enable-user-debug], [Enable debug information in user-space programs]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_USYMS=y ;;
*) unset CONFIG_XENO_OPT_USYMS ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_USYMS:-no})
AC_MSG_CHECKING(for POSIX skin)
AC_ARG_ENABLE(posix-skin,
AS_HELP_STRING([--enable-posix-skin], [Build POSIX skin]),
[case "$enableval" in
y | yes) CONFIG_XENO_SKIN_POSIX=y ;;
*) unset CONFIG_XENO_SKIN_POSIX ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_SKIN_POSIX:-no})
AC_MSG_CHECKING(for native skin)
AC_ARG_ENABLE(rtai-skin,
AS_HELP_STRING([--enable-native-skin], [Build native skin]),
[case "$enableval" in
y | yes) CONFIG_XENO_SKIN_NATIVE=y ;;
*) unset CONFIG_XENO_SKIN_NATIVE ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_SKIN_NATIVE:-no})
AC_MSG_CHECKING(for native registry support)
AC_ARG_ENABLE(native-registry,
AS_HELP_STRING([--enable-native-registry], [Enable registry support in native skin]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_NATIVE_REGISTRY=y ;;
*) unset CONFIG_XENO_OPT_NATIVE_REGISTRY ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_NATIVE_REGISTRY:-no})
if test x$CONFIG_XENO_OPT_NATIVE_REGISTRY = xy; then
AC_MSG_CHECKING(for native registry slots)
AC_ARG_ENABLE(native-registry-slots,
AS_HELP_STRING([--enable-native-registry-slots], [Set maximum number of registry slots]),
[case "$enableval" in
[[0-9]]*) CONFIG_XENO_OPT_NATIVE_REGISTRY_NRSLOTS=$enableval ;;
*) AC_MSG_ERROR([Bad argument to option: --enable-native-registry-slots=<number>]) ;;
esac])
if test x$CONFIG_XENO_OPT_NATIVE_REGISTRY_NRSLOTS = x ; then
# Use a reasonable default if unset
CONFIG_XENO_OPT_NATIVE_REGISTRY_NRSLOTS=512
fi
AC_MSG_RESULT($CONFIG_XENO_OPT_NATIVE_REGISTRY_NRSLOTS)
fi
AC_MSG_CHECKING(for native message pipe support)
AC_ARG_ENABLE(native-pipe,
AS_HELP_STRING([--enable-native-pipe], [Enable pipe support in native skin]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_NATIVE_PIPE=y ;;
*) unset CONFIG_XENO_OPT_NATIVE_PIPE ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_NATIVE_PIPE:-no})
if test x$CONFIG_XENO_OPT_NATIVE_PIPE = xy; then
AC_MSG_CHECKING(for size of native pipe fill space)
AC_ARG_ENABLE(native-pipe-bufsz,
AS_HELP_STRING([--enable-native-pipe-bufsz], [Set size of pipe fill space]),
[case "$enableval" in
[[0-9]]*) CONFIG_XENO_OPT_NATIVE_PIPE_BUFSZ=$enableval ;;
*) AC_MSG_ERROR([Bad argument to option: --enable-native-pipe-bufsz=<number>]) ;;
esac])
if test x$CONFIG_XENO_OPT_NATIVE_PIPE_BUFSZ = x ; then
# Use a reasonable default if unset
CONFIG_XENO_OPT_NATIVE_PIPE_BUFSZ=4096
fi
AC_MSG_RESULT($CONFIG_XENO_OPT_NATIVE_PIPE_BUFSZ)
fi
AC_MSG_CHECKING(for native semaphore support)
AC_ARG_ENABLE(native-sem,
AS_HELP_STRING([--enable-native-sem], [Enable semaphore support in native skin]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_NATIVE_SEM=y ;;
*) unset CONFIG_XENO_OPT_NATIVE_SEM ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_NATIVE_SEM:-no})
AC_MSG_CHECKING(for native event flag support)
AC_ARG_ENABLE(native-event,
AS_HELP_STRING([--enable-native-event], [Enable event flag support in native skin]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_NATIVE_EVENT=y ;;
*) unset CONFIG_XENO_OPT_NATIVE_EVENT ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_NATIVE_EVENT:-no})
AC_MSG_CHECKING(for native mutex support)
AC_ARG_ENABLE(native-mutex,
AS_HELP_STRING([--enable-native-mutex], [Enable mutex support in native skin]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_NATIVE_MUTEX=y ;;
*) unset CONFIG_XENO_OPT_NATIVE_MUTEX ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_NATIVE_MUTEX:-no})
AC_MSG_CHECKING(for native condition variable support)
AC_ARG_ENABLE(native-cond,
AS_HELP_STRING([--enable-native-cond], [Enable condition variable support in native skin]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_NATIVE_COND=y ;;
*) unset CONFIG_XENO_OPT_NATIVE_COND ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_NATIVE_COND:-no})
AC_MSG_CHECKING(for native message queue support)
AC_ARG_ENABLE(native-queue,
AS_HELP_STRING([--enable-native-queue], [Enable message queue support in native skin]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_NATIVE_QUEUE=y ;;
*) unset CONFIG_XENO_OPT_NATIVE_QUEUE ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_NATIVE_QUEUE:-no})
AC_MSG_CHECKING(for native memory heap support)
AC_ARG_ENABLE(native-heap,
AS_HELP_STRING([--enable-native-heap], [Enable memory heap support in native skin]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_NATIVE_HEAP=y ;;
*) unset CONFIG_XENO_OPT_NATIVE_HEAP ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_NATIVE_HEAP:-no})
AC_MSG_CHECKING(for native alarm support)
AC_ARG_ENABLE(native-alarm,
AS_HELP_STRING([--enable-native-alarm], [Enable alarm support in native skin]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_NATIVE_ALARM=y ;;
*) unset CONFIG_XENO_OPT_NATIVE_ALARM ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_NATIVE_ALARM:-no})
AC_MSG_CHECKING(for native message passing support)
AC_ARG_ENABLE(native-mps,
AS_HELP_STRING([--enable-native-mps], [Enable message passing support in native skin]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_NATIVE_MPS=y ;;
*) unset CONFIG_XENO_OPT_NATIVE_MPS ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_NATIVE_MPS:-no})
AC_MSG_CHECKING(for native interrupt API)
AC_ARG_ENABLE(native-intr,
AS_HELP_STRING([--enable-native-intr], [Enable interrupt API in native skin]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_NATIVE_INTR=y ;;
*) unset CONFIG_XENO_OPT_NATIVE_INTR ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_NATIVE_INTR:-no})
AC_MSG_CHECKING(for pSOS+ skin)
AC_ARG_ENABLE(psos-skin,
AS_HELP_STRING([--enable-psos-skin], [Build pSOS+ emulator]),
[case "$enableval" in
y | yes) CONFIG_XENO_SKIN_PSOS=y ;;
*) unset CONFIG_XENO_SKIN_PSOS ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_SKIN_PSOS:-no})
AC_MSG_CHECKING(for VxWorks skin)
AC_ARG_ENABLE(vxworks-skin,
AS_HELP_STRING([--enable-vxworks-skin], [Build VxWorks emulator]),
[case "$enableval" in
y | yes) CONFIG_XENO_SKIN_VXWORKS=y ;;
*) unset CONFIG_XENO_SKIN_VXWORKS ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_SKIN_VXWORKS:-no})
AC_MSG_CHECKING(for VRTX skin)
AC_ARG_ENABLE(vrtx-skin,
AS_HELP_STRING([--enable-vrtx-skin], [Build VRTX emulator]),
[case "$enableval" in
y | yes) CONFIG_XENO_SKIN_VRTX=y ;;
*) unset CONFIG_XENO_SKIN_VRTX ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_SKIN_VRTX:-no})
AC_MSG_CHECKING(for uITRON skin)
AC_ARG_ENABLE(uitron-skin,
AS_HELP_STRING([--enable-uitron-skin], [Build uITRON API skin]),
[case "$enableval" in
y | yes) CONFIG_XENO_SKIN_UITRON=y ;;
*) unset CONFIG_XENO_SKIN_UITRON ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_SKIN_UITRON:-no})
AC_MSG_CHECKING(for virtual machines in user-space)
AC_ARG_ENABLE(user-vm,
AS_HELP_STRING([--enable-user-vm], [Build user-space VMs]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_UVM=y ;;
*) unset CONFIG_XENO_OPT_UVM ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_UVM:-no})
AC_MSG_CHECKING(for RTDM skin)
AC_ARG_ENABLE(rtdm-skin,
AS_HELP_STRING([--enable-rtdm-skin], [Build Real-Time Driver Model skin]),
[case "$enableval" in
y | yes) CONFIG_XENO_SKIN_RTDM=y ;;
*) unset CONFIG_XENO_SKIN_RTDM ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_SKIN_RTDM:-no})
AC_MSG_CHECKING(for RTAI emulator)
AC_ARG_ENABLE(rtai-skin,
AS_HELP_STRING([--enable-rtai-skin], [Build RTAI skin]),
[case "$enableval" in
y | yes) CONFIG_XENO_SKIN_RTAI=y ;;
*) unset CONFIG_XENO_SKIN_RTAI ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_SKIN_RTAI:-no})
AC_MSG_CHECKING(for RTAI semaphore support)
AC_ARG_ENABLE(rtai-sem,
AS_HELP_STRING([--enable-rtai-sem], [Enable semaphore support in RTAI skin]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_RTAI_SEM=y ;;
*) unset CONFIG_XENO_OPT_RTAI_SEM ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_RTAI_SEM:-no})
AC_MSG_CHECKING(for RTAI FIFO support)
AC_ARG_ENABLE(rtai-fifo,
AS_HELP_STRING([--enable-rtai-fifo], [Enable FIFO support in RTAI skin]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_RTAI_FIFO=y ;;
*) unset CONFIG_XENO_OPT_RTAI_FIFO ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_RTAI_FIFO:-no})
AC_MSG_CHECKING(for RTAI shared memory support)
AC_ARG_ENABLE(rtai-shm,
AS_HELP_STRING([--enable-rtai-shm], [Enable shared memory support in RTAI skin]),
[case "$enableval" in
y | yes) CONFIG_XENO_OPT_RTAI_SHM=y ;;
*) unset CONFIG_XENO_OPT_RTAI_SHM ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_OPT_RTAI_SHM:-no})
AC_MSG_CHECKING(for 16550A UART support)
AC_ARG_ENABLE(uart-16550A,
AS_HELP_STRING([--enable-uart-16550A], [Build 16550A UART driver]),
[case "$enableval" in
y | yes) CONFIG_XENO_DRIVERS_16550A=y ;;
*) unset CONFIG_XENO_DRIVERS_16550A ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_DRIVERS_16550A:-no})
case $XENO_TARGET_ARCH in
i386)
if test "$CONFIG_X86_LOCAL_APIC" = y; then
timer_type="APIC timer"
else
timer_type="8254 PIT"
fi
AC_MSG_CHECKING(for SEP support)
AC_ARG_ENABLE(x86-sep,
AS_HELP_STRING([--enable-x86-sep], [Enable SEP instructions for syscalls]),
[case "$enableval" in
y | yes) CONFIG_XENO_HW_X86_SEP=y ;;
*) unset CONFIG_XENO_HW_X86_SEP ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_HW_X86_SEP:-no})
test \! x$CONFIG_XENO_HW_X86_SEP = x && AC_DEFINE(CONFIG_XENO_HW_X86_SEP,1,[Kconfig])
;;
ppc|ppc64)
timer_type=decrementer
;;
ia64)
timer_type=counter
AC_MSG_CHECKING(for number of pre-allocated stacks)
AC_ARG_ENABLE(ia64-kernel-stacks,
AS_HELP_STRING([--enable-ia64-kernel-stacks], [Set number of pre-allocated kernel stacks]),
[case "$enableval" in
[[0-9]]*) CONFIG_XENO_HW_IA64_STACK_POOL=$enableval ;;
*) AC_MSG_ERROR([Bad argument to option: --enable-ia64-kernel-stacks=<number>]) ;;
esac])
if test x$CONFIG_XENO_HW_IA64_STACK_POOL = x ; then
# Use a reasonable default if unset
CONFIG_XENO_HW_STACK_POOL=8
fi
AC_MSG_RESULT([$CONFIG_XENO_HW_IA64_STACK_POOL])
AC_DEFINE_UNQUOTED(CONFIG_XENO_HW_IA64_STACK_POOL,$CONFIG_XENO_HW_IA64_STACK_POOL,[Kconfig])
;;
esac
AC_MSG_CHECKING(for $timer_type tuning latency)
AC_ARG_ENABLE(timer-latency,
AS_HELP_STRING([--enable-timer-latency], [Set timer tuning latency]),
[case "$enableval" in
[[0-9]]*) CONFIG_XENO_HW_TIMER_LATENCY=$enableval ;;
*) AC_MSG_ERROR([Bad argument to option: --enable-timer-latency=<nanoseconds>]) ;;
esac])
if test x$CONFIG_XENO_HW_TIMER_LATENCY = x ; then
# Force auto-calibration
CONFIG_XENO_HW_TIMER_LATENCY=0
fi
if test $CONFIG_XENO_HW_TIMER_LATENCY = 0; then
AC_MSG_RESULT(autocalibration)
else
AC_MSG_RESULT($CONFIG_XENO_HW_TIMER_LATENCY ns)
fi
AC_MSG_CHECKING(for scheduling latency)
AC_ARG_ENABLE(sched-latency,
AS_HELP_STRING([--enable-sched-latency], [Set scheduling latency]),
[case "$enableval" in
[[0-9]]*) CONFIG_XENO_HW_SCHED_LATENCY=$enableval ;;
*) AC_MSG_ERROR([Bad argument to option: --enable-sched-latency=<nanoseconds>]) ;;
esac])
if test x$CONFIG_XENO_HW_SCHED_LATENCY = x ; then
# Force auto-calibration
CONFIG_XENO_HW_SCHED_LATENCY=0
fi
if test $CONFIG_XENO_HW_SCHED_LATENCY = 0; then
AC_MSG_RESULT(autocalibration)
else
AC_MSG_RESULT($CONFIG_XENO_HW_SCHED_LATENCY ns)
fi
dnl NMI bits
AC_MSG_CHECKING(for NMI watchdog)
AC_ARG_ENABLE(nmi-max-latency,
AS_HELP_STRING([--enable-nmi-max-latency=value], [Use NMI watchdog to debug timer latency spots above <value> microseconds]),
[case "$enableval" in
[[0-9]]*) CONFIG_XENO_HW_NMI_DEBUG_LATENCY_MAX=$enableval ;;
*) AC_MSG_ERROR([Bad argument to option: --enable-nmi-latency=<microseconds>]) ;;
esac])
if test -n "$CONFIG_XENO_HW_NMI_DEBUG_LATENCY_MAX"; then
AC_DEFINE_UNQUOTED(CONFIG_XENO_HW_NMI_DEBUG_LATENCY_MAX,$CONFIG_XENO_HW_NMI_DEBUG_LATENCY_MAX,[Kconfig])
CONFIG_XENO_HW_NMI_DEBUG_LATENCY=y
AC_DEFINE(CONFIG_XENO_HW_NMI_DEBUG_LATENCY, 1, [Kconfig])
if test x$CONFIG_X86_LOCAL_APIC != xy; then
AC_MSG_ERROR([NMI watchdog may only be enabled if Local APIC
configuration is enabled in Linux.])
fi
fi
AM_CONDITIONAL(CONFIG_XENO_HW_NMI_DEBUG_LATENCY, [test -n "$CONFIG_XENO_HW_NMI_DEBUG_LATENCY"])
if test x$CONFIG_XENO_HW_NMI_DEBUG_LATENCY = xy; then
AC_MSG_RESULT(detect latencies above $CONFIG_XENO_HW_NMI_DEBUG_LATENCY_MAX microseconds)
else
AC_MSG_RESULT(no)
fi
dnl SMI workaround bits
CONFIG_XENO_HW_SMI_DETECT=y
AC_MSG_CHECKING(for SMI detection)
AC_ARG_ENABLE(smi-detection,
AS_HELP_STRING([--disable-smi-detection], [Disable SMI detection]),
[case "$enableval" in
n | no) unset CONFIG_XENO_HW_SMI_DETECT ;;
*) CONFIG_XENO_HW_SMI_DETECT=y ;;
esac;])
AC_MSG_RESULT(${CONFIG_XENO_HW_SMI_DETECT:-no})
test x$CONFIG_XENO_HW_SMI_DETECT = xy && \
AC_DEFINE(CONFIG_XENO_HW_SMI_DETECT, 1, [Kconfig])
AM_CONDITIONAL(CONFIG_XENO_HW_SMI_DETECT,[test -n "$CONFIG_XENO_HW_SMI_DETECT"])
AC_MSG_CHECKING(for SMI workaround)
AC_ARG_ENABLE(smi-workaround,
AS_HELP_STRING([--enable-smi-workaround], [Enable SMI workaround]),
[case "$enableval" in
y | yes) CONFIG_XENO_HW_SMI_WORKAROUND=y ;;
*) unset CONFIG_XENO_HW_SMI_WORKAROUND ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_HW_SMI_WORKAROUND:-no})
if test x$CONFIG_XENO_HW_SMI_WORKAROUND = xy \
-a ! x$CONFIG_XENO_HW_SMI_DETECT = xy; then
AC_MSG_ERROR([SMI workaround can not be enabled without SMI detection.])
fi
test x$CONFIG_XENO_HW_SMI_WORKAROUND = xy && \
AC_DEFINE(CONFIG_XENO_HW_SMI_WORKAROUND, 1, [Kconfig])
AC_MSG_CHECKING(for global SMI masking)
AC_ARG_ENABLE(global-smi,
AS_HELP_STRING([--enable-global-smi],
[Enable global SMI sources masking]),
[case "$enableval" in
y | yes) CONFIG_XENO_HW_SMI_ALL=y ;;
*) unset CONFIG_XENO_HW_SMI_ALL ;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_HW_SMI_ALL:-no})
if test x$CONFIG_XENO_HW_SMI_ALL = xy \
-a ! x$CONFIG_XENO_HW_SMI_WORKAROUND = xy; then
AC_MSG_ERROR([Global SMI masking can not be enabled without SMI workaround.])
fi
test x$CONFIG_XENO_HW_SMI_ALL = xy && \
AC_DEFINE(CONFIG_XENO_HW_SMI_ALL, 1, [Kconfig])
AC_MSG_CHECKING(for Intel-specific USB2 SMI)
AC_ARG_ENABLE(intel-usb2-smi,
AS_HELP_STRING([--enable-intel-usb2-smi],
[Enable Intel-specific USB2 SMI]),
[case "$enableval" in
y | yes) CONFIG_XENO_HW_SMI_INTEL_USB2=y ;;
*) unset CONFIG_XENO_HW_SMI_INTEL_USB2;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_HW_SMI_INTEL_USB2:-no})
if test x$CONFIG_XENO_HW_SMI_INTEL_USB2 = xy; then
if test ! x$CONFIG_XENO_HW_SMI_WORKAROUND = xy; then
AC_MSG_ERROR([Intel USB2 SMI can not be enabled without SMI workaround.])
fi
if test x$CONFIG_XENO_HW_SMI_ALL = xy; then
AC_MSG_ERROR([Intel USB2 SMI can not be enabled with SMI globally masked.])
fi
fi
test x$CONFIG_XENO_HW_SMI_INTEL_USB2 = xy && \
AC_DEFINE(CONFIG_XENO_HW_SMI_INTEL_USB2, 1, [Kconfig])
AC_MSG_CHECKING(for Legacy USB2 SMI)
AC_ARG_ENABLE(legacy-usb2-smi,
AS_HELP_STRING([--enable-legacy-usb2-smi],
[Enable legacy USB2 SMI]),
[case "$enableval" in
y | yes) CONFIG_XENO_HW_SMI_LEGACY_USB2=y ;;
*) unset CONFIG_XENO_HW_SMI_LEGACY_USB2;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_HW_SMI_LEGACY_USB2:-no})
if test x$CONFIG_XENO_HW_SMI_LEGACY_USB2 = xy; then
if test ! x$CONFIG_XENO_HW_SMI_WORKAROUND = xy; then
AC_MSG_ERROR([Legacy USB2 SMI can not be enabled without SMI workaround.])
fi
if test x$CONFIG_XENO_HW_SMI_ALL = xy; then
AC_MSG_ERROR([Legacy USB2 SMI can not be enabled with SMI globally masked.])
fi
fi
test x$CONFIG_XENO_HW_SMI_LEGACY_USB2 = xy && \
AC_DEFINE(CONFIG_XENO_HW_SMI_LEGACY_USB2, 1, [Kconfig])
AC_MSG_CHECKING(for periodic SMI)
AC_ARG_ENABLE(periodic-smi,
AS_HELP_STRING([--enable-periodic-smi],
[Enable periodic SMI]),
[case "$enableval" in
y | yes) CONFIG_XENO_HW_SMI_PERIODIC=y ;;
*) unset CONFIG_XENO_HW_SMI_PERIODIC;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_HW_SMI_PERIODIC:-no})
if test x$CONFIG_XENO_HW_SMI_PERIODIC = xy; then
if test ! x$CONFIG_XENO_HW_SMI_WORKAROUND = xy; then
AC_MSG_ERROR([Periodic SMI can not be enabled without SMI workaround.])
fi
if test x$CONFIG_XENO_HW_SMI_ALL = xy; then
AC_MSG_ERROR([Periodic SMI can not be enabled with SMI globally masked.])
fi
fi
test x$CONFIG_XENO_HW_SMI_PERIODIC = xy && \
AC_DEFINE(CONFIG_XENO_HW_SMI_PERIODIC, 1, [Kconfig])
AC_MSG_CHECKING(for TCO SMI)
AC_ARG_ENABLE(tco-smi,
AS_HELP_STRING([--enable-tco-smi],
[Enable TCO SMI]),
[case "$enableval" in
y | yes) CONFIG_XENO_HW_SMI_TCO=y ;;
*) unset CONFIG_XENO_HW_SMI_TCO;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_HW_SMI_TCO:-no})
if test x$CONFIG_XENO_HW_SMI_TCO = xy; then
if test ! x$CONFIG_XENO_HW_SMI_WORKAROUND = xy; then
AC_MSG_ERROR([TCO SMI can not be enabled without SMI workaround.])
fi
if test x$CONFIG_XENO_HW_SMI_ALL = xy; then
AC_MSG_ERROR([TCO SMI can not be enabled with SMI globally masked.])
fi
fi
test x$CONFIG_XENO_HW_SMI_TCO = xy && \
AC_DEFINE(CONFIG_XENO_HW_SMI_TCO, 1, [Kconfig])
AC_MSG_CHECKING(for microcontroller SMI)
AC_ARG_ENABLE(mc-smi,
AS_HELP_STRING([--enable-mc-smi],
[Enable microcontroller SMI]),
[case "$enableval" in
y | yes) CONFIG_XENO_HW_SMI_MC=y ;;
*) unset CONFIG_XENO_HW_SMI_MC;;
esac])
AC_MSG_RESULT(${CONFIG_XENO_HW_SMI_MC:-no})
if test x$CONFIG_XENO_HW_SMI_MC = xy; then
if test ! x$CONFIG_XENO_HW_SMI_WORKAROUND = xy; then
AC_MSG_ERROR([microcontroller SMI can not be enabled without SMI workaround.])
fi
if test x$CONFIG_XENO_HW_SMI_ALL = xy; then
AC_MSG_ERROR([microcontroller SMI can not be enabled with SMI globally masked.])
fi
fi
test x$CONFIG_XENO_HW_SMI_MC = xy && \
AC_DEFINE(CONFIG_XENO_HW_SMI_MC, 1, [Kconfig])
AC_MSG_CHECKING(for APM SMI)
AC_ARG_ENABLE(apmc-smi,
AS_HELP_STRING([--enable-apmc-smi],
[Enable APM SMI]),
[case "$enableval" in
y | yes) CONFIG_XENO_HW_SMI_APMC=y ;;
*) unset CONFIG_XENO_HW_SMI_APMC;;