mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-25 21:24:21 +08:00
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: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
6f907b422e
commit
e9c8b44551
@ -221,7 +221,7 @@ enum bootstage_id {
|
||||
*/
|
||||
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.
|
||||
*
|
||||
@ -233,7 +233,8 @@ void show_boot_progress(int val);
|
||||
#define show_boot_progress(val) do {} while (0)
|
||||
#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 */
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user