diff options
author | Furquan Shaikh <furquan@google.com> | 2018-05-30 23:46:16 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2018-06-05 20:57:26 +0000 |
commit | a0cc5a697ce13dece6833dca41913fe5c467d3d3 (patch) | |
tree | 32baa1e1ce9b76470ecf3ae94c91111c5750274f /util/sconfig/sconfig.h | |
parent | 79e8412665567cfd2a18e144794f5b3d924b0cbc (diff) | |
download | coreboot-a0cc5a697ce13dece6833dca41913fe5c467d3d3.tar.xz |
util/sconfig: Re-factor emitting of headers to static.c
This change removes call to add_header from parsing functions and
moves it to a local function within main.c. It also adds a new
function emit_headers that is responsible for creating the linked list
for chip headers and emitting those to static.c
BUG=b:80081934
TEST=Verified that static.c for all files compiled using abuild is the
same with and without this change.
Change-Id: I24d526e81323115d3cc927242a4b9e49414afbe0
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/26726
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'util/sconfig/sconfig.h')
-rw-r--r-- | util/sconfig/sconfig.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/util/sconfig/sconfig.h b/util/sconfig/sconfig.h index 79d2da0d16..8e1d35c9b8 100644 --- a/util/sconfig/sconfig.h +++ b/util/sconfig/sconfig.h @@ -110,7 +110,6 @@ void fold_in(struct device *parent); void postprocess_devtree(void); struct chip *new_chip(char *path); -void add_header(struct chip *chip); struct device *new_device(struct device *parent, struct device *busdev, struct chip *chip, const int bus, const char *devnum, int enabled); |