From 774d1f1e287a9face4b9dda707c49c24fe62074e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 24 Jul 2015 10:29:21 +0200 Subject: Add dot_config target to root Makefile allconfig is used for generating full configuration. In default is this file expected in root project directory with name dot_config. User should remove configuration options that should be measured. So dot_config file should contains only configuration options with fixed value. --- Makefile | 4 ++++ scripts/initialize.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 88a9c02..902f0c2 100644 --- a/Makefile +++ b/Makefile @@ -40,6 +40,10 @@ mlinux: deflinux: ARCH=$(CONF_KERNEL_ARCH) $(MAKE) -C linux defconfig +dot_config: allconfig + cd linux && SRCARCH=$(CONF_KERNEL_ARCH) ARCH=$(CONF_KERNEL_ARCH) KERNELVERSION=$(CONF_KERNEL_ARCH) \ + ../scripts/allconfig/allconfig Kconfig .config ../$(CONF_DOT_CONFIG) + init: initialize initialize: parse_kconfig picosat scripts/initialize.py diff --git a/scripts/initialize.py b/scripts/initialize.py index 36da24d..76a78e9 100755 --- a/scripts/initialize.py +++ b/scripts/initialize.py @@ -68,7 +68,7 @@ def gen_requred(): if not os.path.isfile(sf(conf.dot_config)): raise exceptions.MissingFile(sf(conf.dot_config), - 'Generate fixed configuration.') + 'Generate fixed configuration. Use make dot_config.') utils.build_symbol_map() # Ensure smap existence srmap = {value:key for key, value in utils.smap.items()} # swap dictionary -- cgit v1.2.3