Use shell sort command

When using builtin sort() function, make will detect changes in
the find sub-expression, and re-parse the whole makefile. Even though file
list after soring is identical. This is bad for incremental builds, as
everytime a python file is modified, the order files that gets returned
by find changes, resulting in long build time.

Test: th
Change-Id: I8cc347b4473a2b241f2f10e016e5968477c482f3
This commit is contained in:
Kelvin Zhang
2022-09-22 12:42:24 -07:00
parent 80a3e1896d
commit ed714e0f24

View File

@@ -5065,8 +5065,8 @@ INTERNAL_OTATOOLS_PACKAGE_FILES += \
endif
INTERNAL_OTATOOLS_RELEASETOOLS := \
$(sort $(shell find build/make/tools/releasetools -name "*.pyc" -prune -o \
\( -type f -o -type l \) -print))
$(shell find build/make/tools/releasetools -name "*.pyc" -prune -o \
\( -type f -o -type l \) -print | sort)
BUILT_OTATOOLS_PACKAGE := $(PRODUCT_OUT)/otatools.zip
$(BUILT_OTATOOLS_PACKAGE): PRIVATE_ZIP_ROOT := $(call intermediates-dir-for,PACKAGING,otatools)/otatools