summaryrefslogtreecommitdiffstats
path: root/fastboot
diff options
context:
space:
mode:
authorKeith Mok <kmok@cyngn.com>2015-09-28 15:03:06 -0700
committerKeith Mok <kmok@cyngn.com>2015-10-19 13:27:26 -0700
commite4a462f50c2c7366b18787ff0ff046ae503d2275 (patch)
tree4ebefc3ce8917cddc48b0e37c090448f93498559 /fastboot
parent31c2a740d5554e9c0d5dd5e7a4a3f8d7d93911ea (diff)
downloadsystem_core-e4a462f50c2c7366b18787ff0ff046ae503d2275.zip
system_core-e4a462f50c2c7366b18787ff0ff046ae503d2275.tar.gz
system_core-e4a462f50c2c7366b18787ff0ff046ae503d2275.tar.bz2
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
Diffstat (limited to 'fastboot')
-rw-r--r--fastboot/Android.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/fastboot/Android.mk b/fastboot/Android.mk
index 66a470a..739e891 100644
--- a/fastboot/Android.mk
+++ b/fastboot/Android.mk
@@ -68,7 +68,7 @@ ifneq ($(HOST_OS),windows)
LOCAL_STATIC_LIBRARIES += libselinux
endif # HOST_OS != windows
-ifeq ($(HOST_OS),linux)
+ifneq (,$(filter linux darwin,$(HOST_OS)))
# libf2fs_dlutils_host will dlopen("libf2fs_fmt_host_dyn")
LOCAL_CFLAGS += -DUSE_F2FS
LOCAL_LDFLAGS += -ldl -rdynamic -Wl,-rpath,.
@@ -91,7 +91,7 @@ LOCAL_SHARED_LIBRARIES :=
include $(BUILD_HOST_EXECUTABLE)
my_dist_files := $(LOCAL_BUILT_MODULE)
-ifeq ($(HOST_OS),linux)
+ifneq (,$(filter linux darwin,$(HOST_OS)))
my_dist_files += $(HOST_LIBRARY_PATH)/libf2fs_fmt_host_dyn$(HOST_SHLIB_SUFFIX)
endif
$(call dist-for-goals,dist_files sdk,$(my_dist_files))