coreboot-kgpe-d16/util/sconfig
Nico Huber 859ecdf517 sconfig: Ensure at least one `device` node below each `chip`
Even though `device` entries are children of `chip` entries in the
devicetree source format, the chips in the translated C structures
are only hooked up to device nodes. Hence, any chip with all its
settings will be silently dropped by sconfig if there is no device
node below it.

Let's adapt the parser to ensure that there is at least one `device`
entry. The intermediate `chipchildren_dev` rule applies until the
first `device` entry is found, then everything continues as before
with the `chipchildren` rule.

Change-Id: I54830bc1fc7d00a0605f3fe4d36a83ef57ef3312
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51119
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2021-09-08 19:03:20 +00:00
..
Makefile.inc
description.md
lex.yy.c_shipped util/sconfig: Remove unused devicetree keywords ESPI & LPC 2021-07-14 20:24:00 +00:00
main.c util/sconfig: Compare probe conditions for override device match 2021-09-01 19:20:05 +00:00
sconfig.h
sconfig.l util/sconfig: Remove unused devicetree keywords ESPI & LPC 2021-07-14 20:24:00 +00:00
sconfig.tab.c_shipped sconfig: Ensure at least one `device` node below each `chip` 2021-09-08 19:03:20 +00:00
sconfig.tab.h_shipped sconfig: Ensure at least one `device` node below each `chip` 2021-09-08 19:03:20 +00:00
sconfig.y sconfig: Ensure at least one `device` node below each `chip` 2021-09-08 19:03:20 +00:00