From 533bc0a7ef345f2f3791b6fa76d9e15a1b6b0956 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Tue, 1 Jan 2019 19:03:33 +0100 Subject: util/kconfig: Add `toada` Ada spec generation tool Converts `auto.conf` to an Ada spec file. Write to $(obj)/cb-config.ads and set the package name to `CB.Config`. Change-Id: I97c060d8a613c74a82a18aff9524ad4b01f9df56 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/c/31053 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer Reviewed-by: Patrick Georgi --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f12b61659e..13b73ff107 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,7 @@ COREBOOT_EXPORTS += top src srck obj objutil objk DOTCONFIG ?= $(top)/.config KCONFIG_CONFIG = $(DOTCONFIG) +KCONFIG_AUTOADS := $(obj)/cb-config.ads KCONFIG_AUTOHEADER := $(obj)/config.h KCONFIG_AUTOCONFIG := $(obj)/auto.conf KCONFIG_DEPENDENCIES := $(obj)/auto.conf.cmd @@ -51,10 +52,12 @@ KCONFIG_SPLITCONFIG := $(obj)/config KCONFIG_TRISTATE := $(obj)/tristate.conf KCONFIG_NEGATIVES := 1 KCONFIG_STRICT := 1 +KCONFIG_PACKAGE := CB.Config COREBOOT_EXPORTS += KCONFIG_CONFIG KCONFIG_AUTOHEADER KCONFIG_AUTOCONFIG COREBOOT_EXPORTS += KCONFIG_DEPENDENCIES KCONFIG_SPLITCONFIG KCONFIG_TRISTATE COREBOOT_EXPORTS += KCONFIG_NEGATIVES KCONFIG_STRICT +COREBOOT_EXPORTS += KCONFIG_AUTOADS KCONFIG_PACKAGE # directory containing the toplevel Makefile.inc TOPLEVEL := . @@ -179,6 +182,12 @@ real-all: real-target $(KCONFIG_AUTOHEADER): $(KCONFIG_CONFIG) $(objutil)/kconfig/conf +$(MAKE) oldconfig +$(KCONFIG_AUTOCONFIG): $(KCONFIG_AUTOHEADER) + true + +$(KCONFIG_AUTOADS): $(KCONFIG_AUTOCONFIG) $(objutil)/kconfig/toada + $(objutil)/kconfig/toada CB.Config <$< >$@ + # Add a new class of source/object files to the build system add-class= \ $(eval $(1)-srcs:=) \ -- cgit v1.2.3