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