Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 9557315

Browse files
author
Grant Erickson
committed
Leverage the configuration cache to speed up the configuration phase of the build.
1 parent cf587e9 commit 9557315

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

build/efr32/efr32-openweave.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#
2+
# Copyright (c) Project openweave-core Authors
23
# Copyright (c) 2019 Google LLC.
34
# All rights reserved.
45
#
@@ -197,7 +198,7 @@ define OpenWeaveBuildRules
197198
.PHONY : config-weave .check-config-weave build-weave install-weave clean-weave
198199

199200
.check-config-weave : | $(OPENWEAVE_OUTPUT_DIR)
200-
$(NO_ECHO)echo $(OPENWEAVE_ROOT)/configure $(OPENWEAVE_CONFIGURE_OPTIONS) > $(OPENWEAVE_OUTPUT_DIR)/config.args.tmp; \
201+
$(NO_ECHO)echo $(OPENWEAVE_ROOT)/configure -C $(OPENWEAVE_CONFIGURE_OPTIONS) > $(OPENWEAVE_OUTPUT_DIR)/config.args.tmp; \
201202
(test -r $(OPENWEAVE_OUTPUT_DIR)/config.args && cmp -s $(OPENWEAVE_OUTPUT_DIR)/config.args.tmp $(OPENWEAVE_OUTPUT_DIR)/config.args) || \
202203
mv $(OPENWEAVE_OUTPUT_DIR)/config.args.tmp $(OPENWEAVE_OUTPUT_DIR)/config.args; \
203204
rm -f $(OPENWEAVE_OUTPUT_DIR)/config.args.tmp;
@@ -211,7 +212,7 @@ $(OPENWEAVE_ROOT)/configure : $(OPENWEAVE_ROOT)/configure.ac
211212

212213
$(OPENWEAVE_OUTPUT_DIR)/config.status : $(OPENWEAVE_ROOT)/configure $(OPENWEAVE_OUTPUT_DIR)/config.args
213214
@echo "$(HDR_PREFIX)CONFIGURE OPENWEAVE..."
214-
$(NO_ECHO)(cd $(OPENWEAVE_OUTPUT_DIR) && $(OPENWEAVE_ROOT)/configure $(OPENWEAVE_CONFIGURE_OPTIONS))
215+
$(NO_ECHO)(cd $(OPENWEAVE_OUTPUT_DIR) && $(OPENWEAVE_ROOT)/configure -C $(OPENWEAVE_CONFIGURE_OPTIONS))
215216

216217
config-weave : $(OPENWEAVE_OUTPUT_DIR)/config.status | $(OPENTHREAD_PREREQUISITE)
217218

build/esp32/components/openweave/component.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#
2+
# Copyright (c) Project openweave-core Authors
23
# Copyright (c) 2018 Nest Labs, Inc.
34
# All rights reserved.
45
#
@@ -144,7 +145,7 @@ COMPONENT_OWNCLEANTARGET = 1
144145

145146
.PHONY : check-config-args-updated
146147
check-config-args-updated : | $(OUTPUT_DIR)
147-
echo $(OPENWEAVE_ROOT)/configure $(CONFIGURE_OPTIONS) > $(OUTPUT_DIR)/config.args.tmp; \
148+
echo $(OPENWEAVE_ROOT)/configure -C $(CONFIGURE_OPTIONS) > $(OUTPUT_DIR)/config.args.tmp; \
148149
(test -r $(OUTPUT_DIR)/config.args && cmp -s $(OUTPUT_DIR)/config.args.tmp $(OUTPUT_DIR)/config.args) || \
149150
mv $(OUTPUT_DIR)/config.args.tmp $(OUTPUT_DIR)/config.args; \
150151
rm -f $(OUTPUT_DIR)/config.args.tmp;
@@ -158,7 +159,7 @@ $(OPENWEAVE_ROOT)/configure : $(OPENWEAVE_ROOT)/configure.ac
158159

159160
$(OUTPUT_DIR)/config.status : $(OPENWEAVE_ROOT)/configure $(OUTPUT_DIR)/config.args
160161
echo "CONFIGURE OPENWEAVE..."
161-
(cd $(OUTPUT_DIR) && $(OPENWEAVE_ROOT)/configure $(CONFIGURE_OPTIONS))
162+
(cd $(OUTPUT_DIR) && $(OPENWEAVE_ROOT)/configure -C $(CONFIGURE_OPTIONS))
162163

163164
configure-weave : $(OUTPUT_DIR)/config.status
164165

build/nrf5/nrf5-openweave.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#
2+
# Copyright (c) Project openweave-core Authors
23
# Copyright (c) 2019 Google LLC.
34
# All rights reserved.
45
#
@@ -186,7 +187,7 @@ define OpenWeaveBuildRules
186187
.PHONY : config-weave .check-config-weave build-weave install-weave clean-weave
187188

188189
.check-config-weave : | $(OPENWEAVE_OUTPUT_DIR)
189-
$(NO_ECHO)echo $(OPENWEAVE_ROOT)/configure $(OPENWEAVE_CONFIGURE_OPTIONS) > $(OPENWEAVE_OUTPUT_DIR)/config.args.tmp; \
190+
$(NO_ECHO)echo $(OPENWEAVE_ROOT)/configure -C $(OPENWEAVE_CONFIGURE_OPTIONS) > $(OPENWEAVE_OUTPUT_DIR)/config.args.tmp; \
190191
(test -r $(OPENWEAVE_OUTPUT_DIR)/config.args && cmp -s $(OPENWEAVE_OUTPUT_DIR)/config.args.tmp $(OPENWEAVE_OUTPUT_DIR)/config.args) || \
191192
mv $(OPENWEAVE_OUTPUT_DIR)/config.args.tmp $(OPENWEAVE_OUTPUT_DIR)/config.args; \
192193
rm -f $(OPENWEAVE_OUTPUT_DIR)/config.args.tmp;
@@ -200,7 +201,7 @@ $(OPENWEAVE_ROOT)/configure : $(OPENWEAVE_ROOT)/configure.ac
200201

201202
$(OPENWEAVE_OUTPUT_DIR)/config.status : $(OPENWEAVE_ROOT)/configure $(OPENWEAVE_OUTPUT_DIR)/config.args
202203
@echo "$(HDR_PREFIX)CONFIGURE OPENWEAVE..."
203-
$(NO_ECHO)(cd $(OPENWEAVE_OUTPUT_DIR) && $(OPENWEAVE_ROOT)/configure $(OPENWEAVE_CONFIGURE_OPTIONS))
204+
$(NO_ECHO)(cd $(OPENWEAVE_OUTPUT_DIR) && $(OPENWEAVE_ROOT)/configure -C $(OPENWEAVE_CONFIGURE_OPTIONS))
204205

205206
config-weave : $(OPENWEAVE_OUTPUT_DIR)/config.status | $(OPENTHREAD_PREREQUISITE)
206207

0 commit comments

Comments
 (0)