diff options
author | Jin Qian <jinqian@google.com> | 2017-06-09 12:37:27 -0700 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2018-02-26 12:22:47 -0500 |
commit | e650c3afcba2a590048fcf2a7f020391707d4c7c (patch) | |
tree | ac617de7fa91d3980dd8a25c65f3298b19fbcbc1 /contrib | |
parent | 1ad400d380d12ff23c11ac0cab089e6b17305a0b (diff) | |
download | e2fsprogs-e650c3afcba2a590048fcf2a7f020391707d4c7c.tar.gz |
AOSP: build mke2fs and e2fsdroid as static executables for recovery mode
Bug: 35219933
Change-Id: I84f105cafc57c513d83d9e4d26e9e67ef805e33e
From AOSP commit: 834180cc81c100f264d4f96a2776c51a99a810f8
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/android/Android.mk | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/contrib/android/Android.mk b/contrib/android/Android.mk new file mode 100644 index 00000000..98ce01d8 --- /dev/null +++ b/contrib/android/Android.mk @@ -0,0 +1,42 @@ +LOCAL_PATH := $(call my-dir) + +######################################################################### +# Build statically linked e2fsdroid for recovery +e2fsdroid_src_files := \ + e2fsdroid.c \ + block_range.c \ + fsmap.c \ + block_list.c \ + base_fs.c \ + perms.c \ + basefs_allocator.c \ + hashmap.c \ + +e2fsdroid_cflags := -W -Wall + +e2fsdroid_static_libraries := \ + libext2_com_err \ + libext2_misc \ + libcutils \ + libselinux \ + libcrypto \ + libsparse \ + liblog \ + libz \ + +e2fsdroid_whole_static_libraries := \ + libbase \ + libext2fs \ + +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := $(e2fsdroid_src_files) +LOCAL_CFLAGS := $(e2fsdroid_cflags) +LOCAL_WHOLE_STATIC_LIBRARIES := $(e2fsdroid_whole_static_libraries) +LOCAL_STATIC_LIBRARIES := $(e2fsdroid_static_libraries) +LOCAL_MODULE := e2fsdroid_static +LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin +LOCAL_FORCE_STATIC_EXECUTABLE := true + +include $(BUILD_EXECUTABLE) + |