[Concept,v2,08/16] post: Include config.h in the header

Message ID 20250825162727.3185381-9-sjg@u-boot.org
State New
Headers
Series console: Refactor in preparation for the pager |

Commit Message

Simon Glass Aug. 25, 2025, 4:27 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

The post system requires use of CFG_xxx values which are only included
via the config.h header. Most files don't include this now.

The serial.h header includes post.h which causes a build error on any
platform which enables CONFIG_POST, such as pg_wcom_seli8

Add an explicit #include of config.h in the post.h header file.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

(no changes since v1)

 include/post.h | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

diff --git a/include/post.h b/include/post.h
index da851e37fa2..74039e56e29 100644
--- a/include/post.h
+++ b/include/post.h
@@ -15,6 +15,8 @@ 
 
 #if defined(CONFIG_POST)
 
+#include <config.h>
+
 #ifndef CFG_POST_EXTERNAL_WORD_FUNCS
 #ifdef CFG_SYS_POST_WORD_ADDR
 #define _POST_WORD_ADDR	CFG_SYS_POST_WORD_ADDR