From 939b04e9cf57a838be7e590340a4e84610e76433 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 3 Feb 2021 06:00:49 -0700 Subject: bootstage: Fix dependency for BOOTSTAGE_RECORD_COUNT At present these three Kconfigs exist even when bootstage is not enabled. This is not necessary since bootstage.c is only built if BOOTSTAGE is enabled. Make them conditional. Also fix up the overflow message to mention TPL. Signed-off-by: Simon Glass --- common/bootstage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/bootstage.c') diff --git a/common/bootstage.c b/common/bootstage.c index d5b78b9..2c0110c 100644 --- a/common/bootstage.c +++ b/common/bootstage.c @@ -349,7 +349,7 @@ void bootstage_report(void) } if (data->rec_count > RECORD_COUNT) printf("Overflowed internal boot id table by %d entries\n" - "Please increase CONFIG_(SPL_)BOOTSTAGE_RECORD_COUNT\n", + "Please increase CONFIG_(SPL_TPL_)BOOTSTAGE_RECORD_COUNT\n", data->rec_count - RECORD_COUNT); puts("\nAccumulated time:\n"); -- cgit v1.1