From ae8fb2dbf169ac1ef4f714b41b6545a987903129 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Mon, 25 Aug 2025 07:11:17 -0600 Subject: [PATCH] post: Include config.h in the header 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 --- include/post.h | 2 ++ 1 file changed, 2 insertions(+) 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 + #ifndef CFG_POST_EXTERNAL_WORD_FUNCS #ifdef CFG_SYS_POST_WORD_ADDR #define _POST_WORD_ADDR CFG_SYS_POST_WORD_ADDR