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

Commit 319b92b

Browse files
authored
Merge pull request #586 from openweave/user/gerickson/use-configure-cache
Leverage the Configuration Cache to Speed up the Configuration Phase of the Build
2 parents 339539a + 9557315 commit 319b92b

File tree

7 files changed

+21
-15
lines changed

7 files changed

+21
-15
lines changed

.travis/script.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ gcc_check_happy()
6060
case "${BUILD_TARGET}" in
6161

6262
linux-auto-clang)
63-
./configure && make && make check
63+
./configure -C && make && make check
6464
;;
6565

6666
linux-auto-gcc-check)
67-
./configure --enable-coverage && make && make check
67+
./configure -C --enable-coverage && make && make check
6868
;;
6969

7070
linux-auto-gcc-check-happy)
@@ -76,13 +76,13 @@ case "${BUILD_TARGET}" in
7676
;;
7777

7878
linux-lwip-clang)
79-
./configure --with-target-network=lwip --with-lwip=internal --disable-java && make
79+
./configure -C --with-target-network=lwip --with-lwip=internal --disable-java && make
8080
;;
8181

8282
linux-lwip-gcc-check)
8383
# Note, LwIP requires sudo prior to running 'make check' to ensure the appropriate TUN and bridge interfaces
8484
# may be created.
85-
./configure --enable-coverage --with-target-network=lwip --with-lwip=internal --disable-java && make && sudo make check
85+
./configure -C --enable-coverage --with-target-network=lwip --with-lwip=internal --disable-java && make && sudo make check
8686
;;
8787

8888
osx-auto-clang)
@@ -102,11 +102,11 @@ case "${BUILD_TARGET}" in
102102
;;
103103

104104
linux-auto-*-distcheck)
105-
./configure && make distcheck
105+
./configure -C && make distcheck
106106
;;
107107

108108
linux-auto-*-lint)
109-
./configure && make pretty-check
109+
./configure -C && make pretty-check
110110
;;
111111

112112
*)

Makefile-Android

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#
2+
# Copyright (c) Project openweave-core Authors
23
# Copyright (c) 2014-2017 Nest Labs, Inc.
34
# All rights reserved.
45
#
@@ -259,7 +260,7 @@ AMFILES = src/system/SystemLayer.am \
259260
#
260261
define configure-action
261262
$(ECHO) " CONFIG $(ABI_CONFIG_TUPLE_$(1))..."
262-
(cd $(BuildPath)/$(ABI_CONFIG_TUPLE_$(1)) && $(AbsTopSourceDir)/configure \
263+
(cd $(BuildPath)/$(ABI_CONFIG_TUPLE_$(1)) && $(AbsTopSourceDir)/configure -C \
263264
CPP="$(CPP)" CC="$(CC)" CXX="$(CXX)" OBJC="$(OBJC)" OBJCXX="$(OBJCXX)" AR="$(AR)" RANLIB="$(RANLIB)" NM="$(NM)" STRIP="$(STRIP)" \
264265
INSTALL="$(INSTALL) $(INSTALLFLAGS)" \
265266
CPPFLAGS="$(CPPFLAGS)" \

Makefile-Standalone

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#
2+
# Copyright (c) Project openweave-core Authors
23
# Copyright (c) 2014-2017 Nest Labs, Inc.
34
# All rights reserved.
45
#
@@ -319,7 +320,7 @@ AMFILES = src/system/SystemLayer.am \
319320
#
320321
define configure-target
321322
$(ECHO) " CONFIG $(1)..."
322-
(cd $(BuildPath)/$(1) && $(AbsTopSourceDir)/configure \
323+
(cd $(BuildPath)/$(1) && $(AbsTopSourceDir)/configure -C \
323324
INSTALL="$(INSTALL) $(INSTALLFLAGS)" \
324325
--prefix=/ \
325326
--exec-prefix=/$(1) \

Makefile-iOS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#
2+
# Copyright (c) Project openweave-core Authors
23
# Copyright (c) 2014-2017 Nest Labs, Inc.
34
# All rights reserved.
45
#
@@ -279,7 +280,7 @@ AMFILES = src/system/SystemLayer.am \
279280
#
280281
define configure-arch
281282
$(ECHO) " CONFIG $(1)-$(TargetTuple)..."
282-
(cd $(BuildPath)/$(1)-$(TargetTuple) && $(AbsTopSourceDir)/configure \
283+
(cd $(BuildPath)/$(1)-$(TargetTuple) && $(AbsTopSourceDir)/configure -C \
283284
CPP="$(CPP)" CC="$(CC)" CXX="$(CXX)" OBJC="$(OBJC)" OBJCXX="$(OBJCXX)" AR="$(AR)" RANLIB="$(RANLIB)" NM="$(NM)" STRIP="$(STRIP)" \
284285
INSTALL="$(INSTALL) $(INSTALLFLAGS)" \
285286
CPPFLAGS="$(CPPFLAGS)" \

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)