include/fmap.h: Require FMAP_SECTION_FLASH_START == 0
For simplicity we are going to impose this restriction to coreboot. Note however that this is only a restriction for coreboot itself. The FMAP tool itself is still a generic tool that does not require the FMAP to start at offset 0. Add an defacto empty fmap_config.h to our test cases, since fmap.h now includes fmap_config.h. Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com> Change-Id: Iba04ebdcd5557664a865d2854028dd811f052249 Reviewed-on: https://review.coreboot.org/c/coreboot/+/86770 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jakub "Kuba" Czapiga <czapiga@google.com>
This commit is contained in:
parent
4c22c3d83e
commit
6f2a01f743
3 changed files with 21 additions and 0 deletions
12
tests/include/tests/lib/fmap_config.h
Normal file
12
tests/include/tests/lib/fmap_config.h
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#ifndef FMAPTOOL_GENERATED_HEADER_H_
|
||||
#define FMAPTOOL_GENERATED_HEADER_H_
|
||||
|
||||
/*
|
||||
* This file is used for tests that include (directly as well as indirectly) fmap.h.
|
||||
* Keeps the build tests from failing since fmap.h needs fmap_config.h
|
||||
*/
|
||||
#define FMAP_SECTION_FLASH_START 0
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue