[Buildroot] Add rt squarewave example in buildroot

Willy willy at willygroup.org
Tue Jan 24 10:18:17 UTC 2012


Thomas Petazzoni <thomas.petazzoni at ...> writes:

> Can you try with a test case program?

How?

> Strange, the uClibc is by default compiled with
> UCLIBC_HAS_ADVANCED_REALTIME, clock_nanosleep() should be there in
> librt.

The uClibc configuration file contains:
output/toolchain/uClibc-0.9.32/.config:UCLIBC_HAS_ADVANCED_REALTIME=y

And this file:
output/toolchain/uClibc-0.9.32/librt/clock_nanosleep.c
exists and contains:
######################
<cut>
#ifdef __ASSUME_POSIX_TIMERS
int
clock_nanosleep (clockid_t clock_id, int flags, const struct timespec *req,
		 struct timespec *rem)
{
<cut>
}
#else
# ifdef __NR_clock_nanosleep
extern int __libc_missing_posix_timers attribute_hidden;
#  define SYSDEP_NANOSLEEP \
  if (!__libc_missing_posix_timers)					      \
    {									      \
    <cut>
    }
# endif
# include <sysdeps/unix/clock_nanosleep.c>
#endif
########################

Thanks,
Willy




More information about the buildroot mailing list