aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorne (Richard Coles) <torne@google.com>2014-05-14 11:38:05 +0100
committerJP Abgrall <jpa@google.com>2014-05-14 11:12:30 -0700
commit9948e364c3ebd5b11750f91d444ac1afe1369833 (patch)
tree4c4102eadc98548a3314c8be3283fbe6cc6a8c9e
parentc1b507fb329eac46b938ad45573f587a4dd838a2 (diff)
downloadf2fs-tools-9948e364c3ebd5b11750f91d444ac1afe1369833.tar.gz
Disable building f2fs-tools on non-linux.
The f2fs-tools code depends on the linux kernel headers being available in the system include path; disable building it on non-linux platforms until this is fixed. Change-Id: Ibf490863cc31a694ce9d05845fea9e570c4104d2
-rw-r--r--Android.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 500348c..7c525f6 100644
--- a/Android.mk
+++ b/Android.mk
@@ -1,5 +1,8 @@
LOCAL_PATH:= $(call my-dir)
+# f2fs-tools depends on Linux kernel headers being in the system include path.
+ifeq ($(HOST_OS),linux)
+
# The versions depend on $(LOCAL_PATH)/VERSION
version_CFLAGS := -DF2FS_MAJOR_VERSION=1 -DF2FS_MINOR_VERSION=2 -DF2FS_TOOLS_VERSION=\"1.2.0\" -DF2FS_TOOLS_DATE=\"2013-10-25\"
# external/e2fsprogs/lib is needed for uuid/uuid.h
@@ -64,3 +67,4 @@ LOCAL_SYSTEM_SHARED_LIBRARIES := libc
LOCAL_MODULE_TAGS := optional
include $(BUILD_EXECUTABLE)
+endif