From 94dbaf7049a7947e51d8ec3c62634e3acc29b590 Mon Sep 17 00:00:00 2001 From: leozwang Date: Mon, 8 Sep 2014 12:42:33 -0700 Subject: Enable optimization only for emulator target. For PDK build, we first build platform.zip then build mini_emulator_ target to build final images by invoking "PDK_FUSION_PLATFORM_ZIP=x.zip make". However, in our internal test, I want to have optimization enabled to speed up booting. This patch should not break existing PDK build process but at the same time speed up internal PDK emulator build. Change-Id: I3c872d77af25accdb93e914679bcc357bf845ba3 --- BoardConfig.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BoardConfig.mk b/BoardConfig.mk index 1bbeaad..6005df5 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -4,3 +4,9 @@ # include device/generic/armv7-a-neon/BoardConfig.mk + +ifndef PDK_FUSION_PLATFORM_ZIP +ifeq ($(HOST_OS),linux) + WITH_DEXPREOPT := true +endif +endif # PDK_FUSION_PLATFORM_ZIP -- cgit v1.2.3