summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-03-15 17:05:19 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-07-10 10:18:13 +0000
commite29a6ac16a9f478fc00ce7cb83f3779954e3168d (patch)
treef286baa2a3893a40f1872bc7b22b0ca1edd36850
parent5ccce7cdc712843c4f3eef2153b91d98548a12bf (diff)
downloadcoreboot-e29a6ac16a9f478fc00ce7cb83f3779954e3168d.tar.xz
util/sconfig: Add commonlib/helpers.h
Followup work injects ARRAY_SIZE() in static.c Change-Id: Ifbcaa1b613aef312d3876e8b536499a9f01a8d19 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31932 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: Martin Roth <martinroth@google.com>
-rw-r--r--util/sconfig/Makefile.inc1
-rw-r--r--util/sconfig/main.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/util/sconfig/Makefile.inc b/util/sconfig/Makefile.inc
index 76bbd45674..c47b43956d 100644
--- a/util/sconfig/Makefile.inc
+++ b/util/sconfig/Makefile.inc
@@ -4,6 +4,7 @@ sconfigobj += sconfig.tab.o
sconfigobj += main.o
SCONFIGFLAGS += -I$(top)/util/sconfig -I$(objutil)/sconfig
+SCONFIGFLAGS += -I$(top)/src/commonlib/include
$(objutil)/sconfig:
mkdir -p $@
diff --git a/util/sconfig/main.c b/util/sconfig/main.c
index 265e7285cb..385ced16ab 100644
--- a/util/sconfig/main.c
+++ b/util/sconfig/main.c
@@ -15,6 +15,7 @@
*/
#include <ctype.h>
+#include <commonlib/helpers.h>
#include "sconfig.h"
#include "sconfig.tab.h"