diff options
Diffstat (limited to 'common/spl/spl.c')
| -rw-r--r-- | common/spl/spl.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/common/spl/spl.c b/common/spl/spl.c index 835c53deaa8..8b7374487d3 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -837,7 +837,9 @@ ulong spl_relocate_stack_gd(void)  #endif  } -#if defined(CONFIG_BOOTCOUNT_LIMIT) && !defined(CONFIG_SPL_BOOTCOUNT_LIMIT) +#if defined(CONFIG_BOOTCOUNT_LIMIT) && \ +	((!defined(CONFIG_TPL_BUILD) && !defined(CONFIG_SPL_BOOTCOUNT_LIMIT)) || \ +	 (defined(CONFIG_TPL_BUILD) && !defined(CONFIG_TPL_BOOTCOUNT_LIMIT)))  void bootcount_store(ulong a)  {  } | 
