1LOCAL_PATH := $(call my-dir) 2 3######################################################################### 4# Build statically linked mke2fs for recovery 5mke2fs_src_files := \ 6 mke2fs.c \ 7 util.c \ 8 mk_hugefiles.c \ 9 default_profile.c \ 10 create_inode.c \ 11 12mke2fs_c_includes := \ 13 external/e2fsprogs/e2fsck 14 15mke2fs_cflags := -W -Wall -Wno-macro-redefined 16 17mke2fs_static_libraries := \ 18 libext2_blkid \ 19 libext2_uuid \ 20 libext2_quota \ 21 libext2_com_err \ 22 libext2_e2p \ 23 libsparse \ 24 libz \ 25 26mke2fs_whole_static_libraries := \ 27 libbase \ 28 libext2fs \ 29 30include $(CLEAR_VARS) 31 32LOCAL_SRC_FILES := $(mke2fs_src_files) 33LOCAL_C_INCLUDES := $(mke2fs_c_includes) 34LOCAL_CFLAGS := $(mke2fs_cflags) 35LOCAL_WHOLE_STATIC_LIBRARIES := $(mke2fs_whole_static_libraries) 36LOCAL_STATIC_LIBRARIES := $(mke2fs_static_libraries) 37LOCAL_MODULE := mke2fs_static 38LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin 39LOCAL_FORCE_STATIC_EXECUTABLE := true 40 41include $(BUILD_EXECUTABLE) 42 43