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
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