
20 Mar
2012
20 Mar
'12
6:49 a.m.
This example doesn't have get_timer() defined, which causes build breakages.
Add #ifdef guards to work around this.
Signed-off-by: Simon Glass sjg@chromium.org --- lib/time.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/time.c b/lib/time.c index 69edc3d..5f393c3 100644 --- a/lib/time.c +++ b/lib/time.c @@ -48,6 +48,7 @@ void mdelay(unsigned long msec) udelay(1000); }
+#ifdef CONFIG_BOOTSTAGE ulong __timer_get_boot_us(void) { static ulong base_time; @@ -64,3 +65,4 @@ ulong __timer_get_boot_us(void)
ulong timer_get_boot_us(void) __attribute__((weak, alias("__timer_get_boot_us"))); +#endif
--
1.7.7.3