diff options
author | Tom Rini <trini@konsulko.com> | 2021-05-03 16:48:58 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-07-07 10:17:54 -0400 |
commit | cb80ff20f2c8392f19248418f9a19a0474661860 (patch) | |
tree | a4a4ca65c3d6bb8331c0ba9746f300d9709abf7c /board/Seagate | |
parent | c48b781581f6c3b24cb40241e90296b0e7f7a30f (diff) | |
download | u-boot-cb80ff20f2c8392f19248418f9a19a0474661860.zip u-boot-cb80ff20f2c8392f19248418f9a19a0474661860.tar.gz u-boot-cb80ff20f2c8392f19248418f9a19a0474661860.tar.bz2 |
bootstage: Eliminate when not enabled
When we do not have bootstage enabled, rather than include an empty
dummy function, we just don't reference it. This saves us space in some
tight builds. This also shows a few cases where show_boot_progress was
incorrectly guarded before.
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/Seagate')
-rw-r--r-- | board/Seagate/dockstar/dockstar.c | 2 | ||||
-rw-r--r-- | board/Seagate/goflexhome/goflexhome.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/board/Seagate/dockstar/dockstar.c b/board/Seagate/dockstar/dockstar.c index 380e37b..fb69193 100644 --- a/board/Seagate/dockstar/dockstar.c +++ b/board/Seagate/dockstar/dockstar.c @@ -140,6 +140,7 @@ void reset_phy(void) } #endif /* CONFIG_RESET_PHY_R */ +#if CONFIG_IS_ENABLED(BOOTSTAGE) #define GREEN_LED (1 << 14) #define ORANGE_LED (1 << 15) #define BOTH_LEDS (GREEN_LED | ORANGE_LED) @@ -169,3 +170,4 @@ void show_boot_progress(int val) break; } } +#endif diff --git a/board/Seagate/goflexhome/goflexhome.c b/board/Seagate/goflexhome/goflexhome.c index 4c19fa7..af8cab7 100644 --- a/board/Seagate/goflexhome/goflexhome.c +++ b/board/Seagate/goflexhome/goflexhome.c @@ -142,6 +142,7 @@ void reset_phy(void) } #endif /* CONFIG_RESET_PHY_R */ +#if CONFIG_IS_ENABLED(BOOTSTAGE) #define GREEN_LED (1 << 14) #define ORANGE_LED (1 << 15) #define BOTH_LEDS (GREEN_LED | ORANGE_LED) @@ -175,3 +176,4 @@ void show_boot_progress(int val) break; } } +#endif |