• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/corennnnn


Commit MetaInfo

Revision39bb7f4522e9ad960b2fb72d23a6bdb3a754aebb (tree)
Zeit2016-09-09 08:04:01
AutorKeith Mok <kmok@cyng...>
CommiterKeith Mok

Log Message

fastboot: format f2fs partition instead of just erase

When doing fastboot -w on Darwin for f2fs partitions,
it only erase it without format it due to a flag not set in Android.mk

Change-Id: I642672467d68c75915900bb88c9aa86571140e03

Ändern Zusammenfassung

Diff

--- a/fastboot/Android.mk
+++ b/fastboot/Android.mk
@@ -69,13 +69,15 @@ LOCAL_STATIC_LIBRARIES := \
6969 libcutils \
7070 libgtest_host \
7171
72+ifneq (,$(filter linux darwin,$(HOST_OS)))
7273 # libf2fs_dlutils_host will dlopen("libf2fs_fmt_host_dyn")
73-LOCAL_CFLAGS_linux := -DUSE_F2FS
74-LOCAL_LDFLAGS_linux := -ldl -rdynamic -Wl,-rpath,.
75-LOCAL_REQUIRED_MODULES_linux := libf2fs_fmt_host_dyn
74+LOCAL_CFLAGS += -DUSE_F2FS
75+LOCAL_LDFLAGS += -ldl -rdynamic -Wl,-rpath,.
76+LOCAL_REQUIRED_MODULES := libf2fs_fmt_host_dyn
7677 # The following libf2fs_* are from system/extras/f2fs_utils,
7778 # and do not use code in external/f2fs-tools.
78-LOCAL_STATIC_LIBRARIES_linux += libf2fs_utils_host libf2fs_dlutils_host
79+LOCAL_STATIC_LIBRARIES += libf2fs_utils_host libf2fs_dlutils_host
80+endif
7981
8082 LOCAL_CXX_STL := libc++_static
8183
@@ -87,7 +89,7 @@ LOCAL_SHARED_LIBRARIES :=
8789 include $(BUILD_HOST_EXECUTABLE)
8890
8991 my_dist_files := $(LOCAL_BUILT_MODULE)
90-ifeq ($(HOST_OS),linux)
92+ifneq (,$(filter linux darwin,$(HOST_OS)))
9193 my_dist_files += $(HOST_LIBRARY_PATH)/libf2fs_fmt_host_dyn$(HOST_SHLIB_SUFFIX)
9294 endif
9395 $(call dist-for-goals,dist_files sdk win_sdk,$(my_dist_files))