diff options
author | Dehao Chen <dehao@google.com> | 2014-07-30 16:22:53 -0700 |
---|---|---|
committer | Dehao Chen <dehao@google.com> | 2014-07-30 16:54:55 -0700 |
commit | 5f5c48f0f1b6bef252410575d9225507e5608c0b (patch) | |
tree | 5100099ed4613433294c5f13171cffce0162f7a9 /core/combo/fdo.mk | |
parent | 355520e35ed69c60b755fbca630b9939f35b6eb2 (diff) | |
download | build-5f5c48f0f1b6bef252410575d9225507e5608c0b.zip build-5f5c48f0f1b6bef252410575d9225507e5608c0b.tar.gz build-5f5c48f0f1b6bef252410575d9225507e5608c0b.tar.bz2 |
Update the FDO support:
* Explicitly check BUILD_FDO_INSTRUMENT and BUILD_FDO_OPTIMIZE with true
* Remove unnecessary target_libgcov
* Update the profile collection path on device so that most app can have write access
Change-Id: I5c1915a12ea37b2cb3c76a27e7104e47ad636928
Diffstat (limited to 'core/combo/fdo.mk')
-rw-r--r-- | core/combo/fdo.mk | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/core/combo/fdo.mk b/core/combo/fdo.mk index 26e842f..93d9a9c 100644 --- a/core/combo/fdo.mk +++ b/core/combo/fdo.mk @@ -17,15 +17,13 @@ # Setup FDO related flags. $(combo_2nd_arch_prefix)TARGET_FDO_CFLAGS:= -$(combo_2nd_arch_prefix)TARGET_FDO_LIB:= -ifneq ($(strip $(BUILD_FDO_INSTRUMENT)),) +ifeq ($(strip $(BUILD_FDO_INSTRUMENT)), true) # Set BUILD_FDO_INSTRUMENT=true to turn on FDO instrumentation. - # The profile will be generated on /data/local/tmp/profile on the device. - $(combo_2nd_arch_prefix)TARGET_FDO_CFLAGS := -fprofile-generate=/data/local/tmp/fdo_profile -DANDROID_FDO - $(combo_2nd_arch_prefix)TARGET_FDO_LIB := $(target_libgcov) + # The profile will be generated on /sdcard/fdo_profile on the device. + $(combo_2nd_arch_prefix)TARGET_FDO_CFLAGS := -fprofile-generate=/sdcard/fdo_profile -DANDROID_FDO else - ifneq ($(strip $(BUILD_FDO_OPTIMIZE)),) + ifeq ($(strip $(BUILD_FDO_OPTIMIZE)), true) # Set TARGET_FDO_PROFILE_PATH to set a custom profile directory for your build. ifeq ($(strip $($(combo_2nd_arch_prefix)TARGET_FDO_PROFILE_PATH)),) $(combo_2nd_arch_prefix)TARGET_FDO_PROFILE_PATH := fdo_profiles @@ -33,7 +31,6 @@ else ifneq ($(strip $(wildcard $($(combo_2nd_arch_prefix)TARGET_FDO_PROFILE_PATH))),) $(combo_2nd_arch_prefix)TARGET_FDO_CFLAGS := -fprofile-use=$($(combo_2nd_arch_prefix)TARGET_FDO_PROFILE_PATH) -DANDROID_FDO -fprofile-correction -Wcoverage-mismatch -Wno-error - $(combo_2nd_arch_prefix)TARGET_FDO_LIB := $(target_libgcov) else $(warning Profile directory $($(combo_2nd_arch_prefix)TARGET_FDO_PROFILE_PATH) does not exist. Turn off FDO.) endif |