aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-03-09 07:33:52 +0100
committerKarel Kočí <cynerd@email.cz>2017-03-09 07:33:52 +0100
commite5e698b5036ce68073bd1897e3547493ece72a53 (patch)
treed9c8e45daf31a77d5f0966ffeceb072ae12fdfeb /tools
parentdfc471c4f68eba0c054e61dbb3567ee89e3a036f (diff)
downloadavr-ioe-master.tar.gz
avr-ioe-master.tar.bz2
avr-ioe-master.zip
Make add + to run in parallelHEADmaster
Diffstat (limited to 'tools')
-rw-r--r--tools/kconfig.mk12
1 files changed, 6 insertions, 6 deletions
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