mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-28 07:20:16 +00:00
This patch adds the basic framework for the ITRON 3.0 API implementation
for RTEMS.
This commit is contained in:
29
aclocal/check-itron.m4
Normal file
29
aclocal/check-itron.m4
Normal file
@@ -0,0 +1,29 @@
|
||||
dnl $Id$
|
||||
dnl
|
||||
AC_DEFUN(RTEMS_CHECK_ITRON_API,
|
||||
[dnl
|
||||
AC_REQUIRE([RTEMS_CHECK_CPU])dnl
|
||||
AC_REQUIRE([RTEMS_ENABLE_ITRON])dnl
|
||||
|
||||
AC_CACHE_CHECK([whether BSP supports libitron],
|
||||
rtems_cv_HAS_ITRON_API,
|
||||
[dnl
|
||||
case "$RTEMS_CPU" in
|
||||
unix*)
|
||||
rtems_cv_HAS_ITRON_API="no"
|
||||
;;
|
||||
*)
|
||||
if test "${RTEMS_HAS_ITRON_API}" = "yes"; then
|
||||
rtems_cv_HAS_ITRON_API="yes";
|
||||
else
|
||||
rtems_cv_HAS_ITRON_API="disabled";
|
||||
fi
|
||||
;;
|
||||
esac])
|
||||
if test "$rtems_cv_HAS_ITRON_API" = "yes"; then
|
||||
HAS_ITRON_API="yes";
|
||||
else
|
||||
HAS_ITRON_API="no";
|
||||
fi
|
||||
AC_SUBST(HAS_ITRON_API)dnl
|
||||
])
|
||||
36
aclocal/enable-itron.m4
Normal file
36
aclocal/enable-itron.m4
Normal file
@@ -0,0 +1,36 @@
|
||||
dnl $Id$
|
||||
|
||||
AC_DEFUN(RTEMS_ENABLE_ITRON,
|
||||
[
|
||||
AC_BEFORE([$0], [RTEMS_CHECK_ITRON_API])dnl
|
||||
|
||||
AC_ARG_ENABLE(itron,
|
||||
[ --enable-itron enable itron interface],
|
||||
[case "${enableval}" in
|
||||
yes) RTEMS_HAS_ITRON_API=yes ;;
|
||||
no) RTEMS_HAS_ITRON_API=no ;;
|
||||
*) AC_MSG_ERROR(bad value ${enableval} for enable-itron option) ;;
|
||||
esac],[RTEMS_HAS_ITRON_API=yes])
|
||||
AC_SUBST(RTEMS_HAS_ITRON_API)
|
||||
|
||||
changequote(,)dnl
|
||||
case "${target}" in
|
||||
# hpux unix port should go here
|
||||
i[3456]86-pc-linux*) # unix "simulator" port
|
||||
RTEMS_HAS_ITRON_API=no
|
||||
;;
|
||||
i[3456]86-*freebsd2*) # unix "simulator" port
|
||||
RTEMS_HAS_ITRON_API=no
|
||||
;;
|
||||
no_cpu-*rtems*)
|
||||
RTEMS_HAS_ITRON_API=no
|
||||
;;
|
||||
sparc-sun-solaris*) # unix "simulator" port
|
||||
RTEMS_HAS_ITRON_API=no
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
changequote([,])dnl
|
||||
AC_SUBST(RTEMS_HAS_ITRON_API)
|
||||
])
|
||||
Reference in New Issue
Block a user