From e5e698b5036ce68073bd1897e3547493ece72a53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 9 Mar 2017 07:33:52 +0100 Subject: Make add + to run in parallel --- tools/kconfig.mk | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tools') diff --git a/tools/kconfig.mk b/tools/kconfig.mk index c07bbfa..882ff31 100644 --- a/tools/kconfig.mk +++ b/tools/kconfig.mk @@ -15,12 +15,12 @@ $(CONFIG): # So include of this file should be last line in Makefile MAKEOVERRIDES = -callconfig = $(Q)\ - [ ! -f "$(CONFIG)" ] || mv "$(CONFIG)" config; \ - IOEROOT="$(IOEROOT)" $(MAKE) -f "$(TOOL_PATH)/kconfig/GNUmakefile" --no-print-directory \ - TOPDIR=. SRCDIR="$(TOOL_PATH)/kconfig" $(1); \ - [ ! -f config ] || mv config "$(CONFIG)"; \ - [ ! -f config.old ] || mv config.old "$(CONFIG).old" +define callconfig +$(Q)[ ! -f "$(CONFIG)" ] || mv "$(CONFIG)" config +$(Q)+$(MAKE) -f "$(TOOL_PATH)/kconfig/GNUmakefile" --no-print-directory IOEROOT="$(IOEROOT)" TOPDIR=. SRCDIR="$(TOOL_PATH)/kconfig" $(1) +$(Q)[ ! -f config ] || mv config "$(CONFIG)" +$(Q)[ ! -f config.old ] || mv config.old "$(CONFIG).old" +endef # Note about this file moving madness: # avr-ioe is using Kconfig for configuration and it is not prepared too well for # nested projects (at least I don't know way). This unfortunately means that to -- cgit v1.2.3