coreboot-kgpe-d16/src/lib
Julius Werner 80f3ac63f2 fit: Check all compat strings for highest match
The compat string matching code was mostly copied from depthcharge. One
of the few differences is that we now store the list of compat strings
we're willing to match in a list rather than an array. Since our lists
insert at the front, that means the strings are now ordered lowest to
highest (not highest to lowest like in depthcharge).

We did rewrite the compat_rank matching code to accomodate for that...
however, what we didn't do is remove the break-statement in the loop
that matches all compat strings. When we search the lowest priority
first, we can't abort the search as soon as we found a match -- we have
to keep looking because we might find a higher priority match later.

This patch fixes the issue so that my Kevin can actually match for
google,kevin-rev5 (and doesn't just jump at the first best google,kevin
match).

Change-Id: Ibe3d84bbce6de3cd49c746a667ae1ccfdc843105
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32874
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2019-06-21 09:23:02 +00:00
..
gnat
b64_decode.c
boot_device.c boot_device: Constify argument 2019-05-12 07:47:45 +00:00
bootblock.c lib/bootblock: Sanitize CMOS after bootblock_*_early_init() 2019-05-23 08:47:59 +00:00
bootmem.c symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
bootmode.c Remove unnecessary ENV_RAMSTAGE guard 2019-05-14 06:56:59 +00:00
cb.ads Hook up Kconfig Ada spec file 2019-02-06 16:20:35 +00:00
cbfs.c src: Use include <console/console.h> when appropriate 2019-04-23 10:01:21 +00:00
cbmem_common.c symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
cbmem_console.c src: Use include <console/console.h> when appropriate 2019-04-23 10:01:21 +00:00
cbmem_stage_cache.c
compute_ip_checksum.c
coreboot_table.c commonlib: fix typo LB_TAB_* (instead of LB_TAG_*) 2019-05-29 20:12:57 +00:00
decompressor.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
delay.c
device_tree.c device_tree: Add overlay support 2019-06-21 09:20:10 +00:00
dimm_info_util.c src/*: normalize Google copyright headers 2018-09-28 07:13:00 +00:00
edid.c lib/edid.c: Add missing break statement 2019-03-29 06:35:55 +00:00
edid_fill_fb.c
ext_stage_cache.c buildsystem: Promote rules.h to default include 2019-01-16 11:51:07 +00:00
fallback_boot.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
fit.c fit: Check all compat strings for highest match 2019-06-21 09:23:02 +00:00
fit_payload.c fit: Add overlay support 2019-06-21 09:22:31 +00:00
fmap.c lib/fmap: Add area read/write functions 2019-04-23 10:22:54 +00:00
gcc.c
gcov-glue.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
gcov-io.c
gcov-io.h
gcov-iov.h
generic_dump_spd.c src: Add missing include 'console.h' 2019-04-23 10:00:39 +00:00
gpio.c src: include <assert.h> when appropriate 2019-04-23 10:01:36 +00:00
halt.c
hardwaremain.c src: Use include <reset.h> when appropriate 2019-03-29 20:00:20 +00:00
hexdump.c lib/hexdump: Drop redundant isprint() implementation 2019-05-13 09:14:55 +00:00
hexstrtobin.c
hw-time-timer.adb
imd.c Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
imd_cbmem.c Move calls to quick_ram_check() before CBMEM init 2019-03-27 08:26:16 +00:00
jpeg.c
jpeg.h
Kconfig src/Kconfig: Move DRAM section to src/lib/Kconfig 2019-05-20 10:58:56 +00:00
libgcc.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
libgcov.c
list.c
lzma.c src: Drop unused include <timestamp.h> 2019-03-07 17:17:12 +00:00
lzmadecode.c src/{include,arch,cpu,lib}: Add missing 'include <types.h>' 2019-05-29 20:27:18 +00:00
lzmadecode.h
Makefile.inc lib/Makefile.inc: Add hexdump.c to postcar stage 2019-06-05 13:02:57 +00:00
malloc.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
memchr.c
memcmp.c
memcpy.c
memmove.c
memrange.c
memset.c
nhlt.c lib/nhlt: Use common function to set NHLT version 2018-08-27 15:54:34 +00:00
primitive_memtest.c
prog_loaders.c stage_cache: Make empty inline function if CONFIG_NO_STAGE_CACHE enable 2019-06-13 04:39:28 +00:00
prog_ops.c Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
program.ld coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
ramtest.c Move calls to quick_ram_check() before CBMEM init 2019-03-27 08:26:16 +00:00
reg_script.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
region_file.c src/lib: Fix typo 2018-08-09 15:56:42 +00:00
reset.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
rmodule.c src: Remove unneeded include <lib.h> 2018-11-16 09:50:51 +00:00
rmodule.ld src: Fix typo 2018-08-10 21:25:53 +00:00
romstage_handoff.c buildsystem: Promote rules.h to default include 2019-01-16 11:51:07 +00:00
romstage_stack.c
rtc.c rtc: Fix rtc_calc_weekday 2019-02-27 11:07:11 +00:00
selfboot.c src/lib/selfboot: Remove unused variables 2019-04-25 15:55:21 +00:00
spd_bin.c lib/spd_bin.c: Remove unused include <arch/byteorder.h> 2019-06-19 12:30:04 +00:00
stack.c symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
string.c string.h: Move common string functions into .c file 2019-05-31 18:22:11 +00:00
thread.c src: Use #include <timer.h> when appropriate 2019-04-06 16:02:49 +00:00
timer.c Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
timer_queue.c
timestamp.c timestamp: Update TIMESTAMP_CACHE_IN_BSS to include ENV_POSTCAR 2019-05-19 18:13:26 +00:00
trace.c
ubsan.c complier.h: add __noreturn and use it in code base 2018-09-10 15:02:51 +00:00
version.c ACPI: Correct asl_compiler_revision value 2019-02-21 19:07:31 +00:00
wrdd.c Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00