coreboot-kgpe-d16/Documentation
Patrick Georgi ce55ca2fca tests: Rework mocking facility
Using the linker's --wrap feature has the downside that it only covers
references across object files: If foo.c defines a() and b(), with b
calling a, --wrap=a does nothing to that call.

Instead, use objcopy to mark a weak and global so it can be overridden
by another implementation, but only for files originating in src/.

That way mocks - implemented in tests/ - become the source of truth.

TEST=Had such an issue with get_log_level() in a follow-up commit, and
the mock now takes over. Also, all existing unit tests still pass.

Change-Id: I99c6d6e44ecfc73366bf464d9c51c7da3f8db388
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55360
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jakub Czapiga <jacz@semihalf.com>
2021-06-10 19:26:46 +00:00
..
Intel
RFC [RFC] Address the leftover TODO in soc/intel/cannonlake 2021-04-16 17:42:12 +00:00
_static
acpi drivers/i2c/generic: Set S0W to D3hot for wake device 2021-05-05 01:16:29 +00:00
arch Documentation: Add known bugs of x86_64 code on real hardware 2021-01-12 13:36:30 +00:00
cbfstool Docs/cbfstool: Add details about memory mapped window handling 2020-12-11 01:11:16 +00:00
community Documentation/community: Add link to the OSF Slack 2021-06-01 06:05:08 +00:00
contributing Documentation/coding_style: Issues not mentioned and cleanup patches 2021-03-26 05:09:40 +00:00
doxygen
drivers Documentation: Fix toctree and remove dead links 2021-01-12 13:36:36 +00:00
flash_tutorial
getting_started Documentation/gerrit: Describe core developer responsibilities 2021-05-17 22:20:44 +00:00
gfx
ifdtool Documentation: Use correct KiB/MiB units instead of KB/MB 2021-02-09 07:47:41 +00:00
infrastructure Documentation: Fix up toctree 2021-05-28 17:58:06 +00:00
lib option: Allow mainboards to implement the API 2021-05-28 11:37:25 +00:00
mainboard Revert "src/mainboard: Add Star Labs labtop series" 2021-06-04 18:52:32 +00:00
northbridge Doc/nb/intel/sandybridge: Fix up some typos and cosmetics 2021-05-12 08:01:00 +00:00
releases Doc/releases: Mention that Asus H61 boards got squashed 2021-05-20 21:11:14 +00:00
security google/trogdor: Add new variant Pazquel 2021-06-08 21:29:58 +00:00
soc sc7280: Provide initial SoC support 2021-04-15 19:07:26 +00:00
superio
technotes Documentation: Fix up toctree 2021-05-28 17:58:06 +00:00
tutorial tests: Rework mocking facility 2021-06-10 19:26:46 +00:00
vendorcode
.gitignore .gitignore: Split into subdirectory files 2020-10-30 07:05:27 +00:00
AMD-S3.txt
COPYING
Doxyfile.coreboot
Doxyfile.coreboot_simple
Makefile
Makefile.sphinx
POSTCODES
beginverbatim.tex
cbfs.txt
codeflow.svg
conf.py Documentation: Fix sphinx configuration 2020-08-04 12:18:29 +00:00
corebootBuildingGuide.tex
coreboot_logo.png
distributions.md Revert "src/mainboard: Add Star Labs labtop series" 2021-06-04 18:52:32 +00:00
endverbatim.tex
gcov.txt
hypertransport.svg
index.md option: Allow mainboards to implement the API 2021-05-28 11:37:25 +00:00
mainboard_io_trap_handler_sample.c
payloads.md payloads/Tianocore: Update default build target, simplify build options 2021-05-13 08:30:57 +00:00
util.md Update util.md documentation 2021-01-28 20:17:11 +00:00