diff options
author | Karel Kočí <cynerd@email.cz> | 2017-03-09 07:33:52 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-03-09 07:33:52 +0100 |
commit | e5e698b5036ce68073bd1897e3547493ece72a53 (patch) | |
tree | d9c8e45daf31a77d5f0966ffeceb072ae12fdfeb /tools | |
parent | dfc471c4f68eba0c054e61dbb3567ee89e3a036f (diff) | |
download | avr-ioe-master.tar.gz avr-ioe-master.tar.bz2 avr-ioe-master.zip |
Diffstat (limited to 'tools')
-rw-r--r-- | tools/kconfig.mk | 12 |
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 |