diff options
author | Tero Rintaluoma <tero.rintaluoma@on2.com> | 2011-01-24 11:21:40 +0200 |
---|---|---|
committer | Tero Rintaluoma <teror@google.com> | 2011-01-28 12:47:39 +0200 |
commit | 11a222f5d963097fb72cec7bf6e06ff8c3d96fa4 (patch) | |
tree | 843f95cb4c63adda923fd7e35b61dd62a2fc7b45 /vpx_ports | |
parent | d3e9409bb07e6411ff867935883bd5d56d2f9041 (diff) | |
download | libvpx-11a222f5d963097fb72cec7bf6e06ff8c3d96fa4.tar libvpx-11a222f5d963097fb72cec7bf6e06ff8c3d96fa4.tar.gz libvpx-11a222f5d963097fb72cec7bf6e06ff8c3d96fa4.tar.bz2 libvpx-11a222f5d963097fb72cec7bf6e06ff8c3d96fa4.zip |
Adds "armvX-none-rvct" targets
Adds following targets to configure script to support RVCT compilation
without operating system support (for Profiler or bare metal images).
- armv5te-none-rvct
- armv6-none-rvct
- armv7-none-rvct
To strip OS specific parts from the code "os_support"-config was added
to script and CONFIG_OS_SUPPORT flag is used in the code to exclude OS
specific parts such as OS specific includes and function calls for
timers and threads etc. This was done to enable RVCT compilation for
profiling purposes or running the image on bare metal target with
Lauterbach.
Removed separate AREA directives for READONLY data in armv6 and neon
assembly files to fix the RVCT compilation. Otherwise
"ldr <reg>, =label" syntax would have been needed to prevent linker
errors. This syntax is not supported by older gnu assemblers.
Change-Id: I14f4c68529e8c27397502fbc3010a54e505ddb43
Diffstat (limited to 'vpx_ports')
-rw-r--r-- | vpx_ports/vpx_timer.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/vpx_ports/vpx_timer.h b/vpx_ports/vpx_timer.h index 37a0c7cb2..c8335a0a8 100644 --- a/vpx_ports/vpx_timer.h +++ b/vpx_ports/vpx_timer.h @@ -12,6 +12,8 @@ #ifndef VPX_TIMER_H #define VPX_TIMER_H +#if CONFIG_OS_SUPPORT + #if defined(_WIN32) /* * Win32 specific includes @@ -93,5 +95,27 @@ vpx_usec_timer_elapsed(struct vpx_usec_timer *t) #endif } +#else /* CONFIG_OS_SUPPORT = 0*/ + +/* Empty timer functions if CONFIG_OS_SUPPORT = 0 */ +#ifndef timersub +#define timersub(a, b, result) +#endif + +struct vpx_usec_timer +{ + void *dummy; +}; + +static void +vpx_usec_timer_start(struct vpx_usec_timer *t) { } + +static void +vpx_usec_timer_mark(struct vpx_usec_timer *t) { } + +static long +vpx_usec_timer_elapsed(struct vpx_usec_timer *t) { return 0; } + +#endif /* CONFIG_OS_SUPPORT */ #endif |