layout.c: Don't use global variables for included regions
This removes the use of global variables for included region arguments
and also uses a linked list to store the arguments.
Based off the upstream commit b04fef91c100d815265bc1948e61a62f284c42ef
BUG=b:162158026,b:175474377
BRANCH=none
TEST=builds && ran on nocturne,
```
localhost ~ # mosys memory spd print geometry -s size_mb
4096
4096
```
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Change-Id: I6708da938b953cbad77f7a433f490678ea0790b6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/2588672
Commit-Queue: Edward O'Callaghan <quasisec@chromium.org>
Tested-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Sam McNally <sammc@chromium.org>
5 files changed