Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9de012eb authored by Dan Willemsen's avatar Dan Willemsen
Browse files

Skip much of aux_config.mk

This was showing up in the top-ten longest makefiles during the product
config and cleanspec kati runs sometimes, even though it's really never
used. So instead of running the sometimes-expensive find command, skip it
unless an AUX OS was specified.

At some point we should remove this entirely, but that's a larger change
that doesn't need to happen yet.

Test: build-aosp_arm.ninja is the same before/after
Change-Id: I0ea10193d2f07e1717224e9020a7defaf6191c05
parent 11dc247b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -149,6 +149,8 @@ AUX_ALL_SUBARCHS :=
variant_sfx :=_aux_variant_config.mk
os_sfx :=_aux_os_config.mk

ifdef AUX_OS_VARIANT_LIST

config_roots := $(wildcard device vendor)
all_configs :=
ifdef config_roots
@@ -180,4 +182,6 @@ $(foreach v,$(AUX_ALL_VARIANTS),\
)
endif

endif # AUX_OS_VARIANT_LIST

INSTALLED_AUX_TARGETS :=