Home | History | Annotate | Download | only in e2fsck
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 #########################
      4 # Build the libext2 profile library
      5 
      6 libext2_profile_src_files :=  \
      7 	prof_err.c \
      8 	profile.c
      9 
     10 libext2_profile_shared_libraries := \
     11 	libext2_com_err
     12 
     13 libext2_profile_system_shared_libraries := libc
     14 
     15 libext2_profile_c_includes := external/e2fsprogs/lib
     16 
     17 libext2_profile_cflags := -O2 -g -W -Wall \
     18 	-DHAVE_UNISTD_H \
     19 	-DHAVE_ERRNO_H \
     20 	-DHAVE_NETINET_IN_H \
     21 	-DHAVE_SYS_IOCTL_H \
     22 	-DHAVE_SYS_MMAN_H \
     23 	-DHAVE_SYS_MOUNT_H \
     24 	-DHAVE_SYS_PRCTL_H \
     25 	-DHAVE_SYS_RESOURCE_H \
     26 	-DHAVE_SYS_SELECT_H \
     27 	-DHAVE_SYS_STAT_H \
     28 	-DHAVE_SYS_TYPES_H \
     29 	-DHAVE_STDLIB_H \
     30 	-DHAVE_STRDUP \
     31 	-DHAVE_MMAP \
     32 	-DHAVE_UTIME_H \
     33 	-DHAVE_GETPAGESIZE \
     34 	-DHAVE_LSEEK64 \
     35 	-DHAVE_LSEEK64_PROTOTYPE \
     36 	-DHAVE_EXT2_IOCTLS \
     37 	-DHAVE_LINUX_FD_H \
     38 	-DHAVE_TYPE_SSIZE_T \
     39 	-DHAVE_SYS_TIME_H \
     40 	-DHAVE_SYSCONF
     41 
     42 include $(CLEAR_VARS)
     43 
     44 LOCAL_SRC_FILES := $(libext2_profile_src_files)
     45 LOCAL_SYSTEM_SHARED_LIBRARIES := $(libext2_profile_system_shared_libraries)
     46 LOCAL_SHARED_LIBRARIES := $(libext2_profile_shared_libraries)
     47 LOCAL_C_INCLUDES := $(libext2_profile_c_includes)
     48 LOCAL_CFLAGS := $(libext2_profile_cflags)
     49 LOCAL_PRELINK_MODULE := false
     50 LOCAL_MODULE := libext2_profile
     51 LOCAL_MODULE_TAGS := optional
     52 
     53 include $(BUILD_SHARED_LIBRARY)
     54 
     55 include $(CLEAR_VARS)
     56 
     57 LOCAL_SRC_FILES := $(libext2_profile_src_files)
     58 LOCAL_SHARED_LIBRARIES := $(libext2_profile_shared_libraries)
     59 LOCAL_C_INCLUDES := $(libext2_profile_c_includes)
     60 LOCAL_CFLAGS := $(libext2_profile_cflags)
     61 LOCAL_PRELINK_MODULE := false
     62 LOCAL_MODULE := libext2_profile_host
     63 LOCAL_MODULE_STEM := libext2_profile
     64 LOCAL_MODULE_TAGS := optional
     65 
     66 include $(BUILD_HOST_SHARED_LIBRARY)
     67 
     68 #########################
     69 # Build the e2fsck binary
     70 
     71 e2fsck_src_files :=  \
     72 	crc32.c \
     73 	e2fsck.c \
     74 	dict.c \
     75 	super.c \
     76 	pass1.c \
     77 	pass1b.c \
     78 	pass2.c \
     79 	pass3.c \
     80 	pass4.c \
     81 	pass5.c \
     82 	journal.c \
     83 	recovery.c \
     84 	revoke.c \
     85 	badblocks.c \
     86 	util.c \
     87 	unix.c \
     88 	dirinfo.c \
     89 	dx_dirinfo.c \
     90 	ehandler.c \
     91 	problem.c \
     92 	message.c \
     93 	swapfs.c \
     94 	ea_refcount.c \
     95 	rehash.c \
     96 	region.c
     97 
     98 e2fsck_shared_libraries := \
     99 	libext2fs \
    100 	libext2_blkid \
    101 	libext2_uuid \
    102 	libext2_profile \
    103 	libext2_com_err \
    104 	libext2_e2p
    105 e2fsck_system_shared_libraries := libc
    106 
    107 e2fsck_c_includes := external/e2fsprogs/lib
    108 
    109 e2fsck_cflags := -O2 -g -W -Wall \
    110 	-DHAVE_DIRENT_H \
    111 	-DHAVE_ERRNO_H \
    112 	-DHAVE_INTTYPES_H \
    113 	-DHAVE_LINUX_FD_H \
    114 	-DHAVE_NETINET_IN_H \
    115 	-DHAVE_SETJMP_H \
    116 	-DHAVE_SYS_IOCTL_H \
    117 	-DHAVE_SYS_MMAN_H \
    118 	-DHAVE_SYS_MOUNT_H \
    119 	-DHAVE_SYS_PRCTL_H \
    120 	-DHAVE_SYS_RESOURCE_H \
    121 	-DHAVE_SYS_SELECT_H \
    122 	-DHAVE_SYS_STAT_H \
    123 	-DHAVE_SYS_TYPES_H \
    124 	-DHAVE_STDLIB_H \
    125 	-DHAVE_UNISTD_H \
    126 	-DHAVE_UTIME_H \
    127 	-DHAVE_STRDUP \
    128 	-DHAVE_MMAP \
    129 	-DHAVE_GETPAGESIZE \
    130 	-DHAVE_LSEEK64 \
    131 	-DHAVE_LSEEK64_PROTOTYPE \
    132 	-DHAVE_EXT2_IOCTLS \
    133 	-DHAVE_TYPE_SSIZE_T \
    134 	-DHAVE_INTPTR_T \
    135 	-DENABLE_HTREE=1 \
    136 	-DHAVE_SYS_TIME_H \
    137 	-DHAVE_SYSCONF
    138 
    139 include $(CLEAR_VARS)
    140 
    141 LOCAL_SRC_FILES := $(e2fsck_src_files)
    142 LOCAL_C_INCLUDES := $(e2fsck_c_includes)
    143 LOCAL_CFLAGS := $(e2fsck_cflags)
    144 LOCAL_SYSTEM_SHARED_LIBRARIES := $(e2fsck_system_shared_libraries)
    145 LOCAL_SHARED_LIBRARIES := $(e2fsck_shared_libraries)
    146 LOCAL_MODULE := e2fsck
    147 LOCAL_MODULE_TAGS := optional
    148 include $(BUILD_EXECUTABLE)
    149 
    150 include $(CLEAR_VARS)
    151 
    152 LOCAL_SRC_FILES := $(e2fsck_src_files)
    153 LOCAL_C_INCLUDES := $(e2fsck_c_includes)
    154 LOCAL_CFLAGS := $(e2fsck_cflags)
    155 LOCAL_SHARED_LIBRARIES := $(e2fsck_shared_libraries)
    156 LOCAL_MODULE := e2fsck_host
    157 LOCAL_MODULE_STEM := e2fsck
    158 LOCAL_MODULE_TAGS := optional
    159 
    160 include $(BUILD_HOST_EXECUTABLE)
    161