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 <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-08-25 07:11:17 -06:00
parent 1ee02ca627
commit ae8fb2dbf1

View File

@@ -15,6 +15,8 @@
#if defined(CONFIG_POST) #if defined(CONFIG_POST)
#include <config.h>
#ifndef CFG_POST_EXTERNAL_WORD_FUNCS #ifndef CFG_POST_EXTERNAL_WORD_FUNCS
#ifdef CFG_SYS_POST_WORD_ADDR #ifdef CFG_SYS_POST_WORD_ADDR
#define _POST_WORD_ADDR CFG_SYS_POST_WORD_ADDR #define _POST_WORD_ADDR CFG_SYS_POST_WORD_ADDR