Skip to content
Snippets Groups Projects
Commit e9c8b445 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

bootstage: Don't build for HOSTCC


We don't measure boot timing on the host, or with SPL, so use both
conditions in the bootstage header. This allows us to avoid using
conditional compilation around bootstage_...() calls. (#ifdef)

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 6f907b42
No related branches found
No related tags found
No related merge requests found
...@@ -221,7 +221,7 @@ enum bootstage_id { ...@@ -221,7 +221,7 @@ enum bootstage_id {
*/ */
ulong timer_get_boot_us(void); ulong timer_get_boot_us(void);
#ifndef CONFIG_SPL_BUILD #if !defined(CONFIG_SPL_BUILD) && !defined(USE_HOSTCC)
/* /*
* Board code can implement show_boot_progress() if needed. * Board code can implement show_boot_progress() if needed.
* *
...@@ -233,7 +233,8 @@ void show_boot_progress(int val); ...@@ -233,7 +233,8 @@ void show_boot_progress(int val);
#define show_boot_progress(val) do {} while (0) #define show_boot_progress(val) do {} while (0)
#endif #endif
#if defined(CONFIG_BOOTSTAGE) && !defined(CONFIG_SPL_BUILD) #if defined(CONFIG_BOOTSTAGE) && !defined(CONFIG_SPL_BUILD) && \
!defined(USE_HOSTCC)
/* This is the full bootstage implementation */ /* This is the full bootstage implementation */
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment