1 LOCAL_PATH := $(call my-dir) 2 3 ######################### 4 # Build the libext2 profile library 5 6 include $(CLEAR_VARS) 7 LOCAL_SRC_FILES := \ 8 prof_err.c \ 9 profile.c 10 11 LOCAL_MODULE := libext2_profile 12 LOCAL_MODULE_TAGS := eng 13 LOCAL_SYSTEM_SHARED_LIBRARIES := \ 14 libext2_com_err \ 15 libc 16 17 LOCAL_C_INCLUDES := external/e2fsprogs/lib 18 19 LOCAL_CFLAGS := -O2 -g -W -Wall \ 20 -DHAVE_UNISTD_H \ 21 -DHAVE_ERRNO_H \ 22 -DHAVE_NETINET_IN_H \ 23 -DHAVE_SYS_IOCTL_H \ 24 -DHAVE_SYS_MMAN_H \ 25 -DHAVE_SYS_MOUNT_H \ 26 -DHAVE_SYS_PRCTL_H \ 27 -DHAVE_SYS_RESOURCE_H \ 28 -DHAVE_SYS_SELECT_H \ 29 -DHAVE_SYS_STAT_H \ 30 -DHAVE_SYS_TYPES_H \ 31 -DHAVE_STDLIB_H \ 32 -DHAVE_STRDUP \ 33 -DHAVE_MMAP \ 34 -DHAVE_UTIME_H \ 35 -DHAVE_GETPAGESIZE \ 36 -DHAVE_LSEEK64 \ 37 -DHAVE_LSEEK64_PROTOTYPE \ 38 -DHAVE_EXT2_IOCTLS \ 39 -DHAVE_LINUX_FD_H \ 40 -DHAVE_TYPE_SSIZE_T 41 42 LOCAL_PRELINK_MODULE := false 43 44 include $(BUILD_SHARED_LIBRARY) 45 46 47 ######################### 48 # Build the e2fsck binary 49 50 include $(CLEAR_VARS) 51 LOCAL_SRC_FILES := \ 52 e2fsck.c \ 53 dict.c \ 54 super.c \ 55 pass1.c \ 56 pass1b.c \ 57 pass2.c \ 58 pass3.c \ 59 pass4.c \ 60 pass5.c \ 61 journal.c \ 62 recovery.c \ 63 revoke.c \ 64 badblocks.c \ 65 util.c \ 66 unix.c \ 67 dirinfo.c \ 68 dx_dirinfo.c \ 69 ehandler.c \ 70 problem.c \ 71 message.c \ 72 swapfs.c \ 73 ea_refcount.c \ 74 rehash.c \ 75 region.c 76 77 LOCAL_MODULE := e2fsck 78 LOCAL_MODULE_TAGS := eng 79 80 LOCAL_SYSTEM_SHARED_LIBRARIES := \ 81 libext2fs \ 82 libext2_blkid \ 83 libext2_uuid \ 84 libext2_profile \ 85 libext2_com_err \ 86 libext2_e2p \ 87 libc 88 89 LOCAL_C_INCLUDES := external/e2fsprogs/lib 90 91 LOCAL_CFLAGS := -O2 -g -W -Wall \ 92 -DHAVE_DIRENT_H \ 93 -DHAVE_ERRNO_H \ 94 -DHAVE_INTTYPES_H \ 95 -DHAVE_LINUX_FD_H \ 96 -DHAVE_NETINET_IN_H \ 97 -DHAVE_SETJMP_H \ 98 -DHAVE_SYS_IOCTL_H \ 99 -DHAVE_SYS_MMAN_H \ 100 -DHAVE_SYS_MOUNT_H \ 101 -DHAVE_SYS_PRCTL_H \ 102 -DHAVE_SYS_RESOURCE_H \ 103 -DHAVE_SYS_SELECT_H \ 104 -DHAVE_SYS_STAT_H \ 105 -DHAVE_SYS_TYPES_H \ 106 -DHAVE_STDLIB_H \ 107 -DHAVE_UNISTD_H \ 108 -DHAVE_UTIME_H \ 109 -DHAVE_STRDUP \ 110 -DHAVE_MMAP \ 111 -DHAVE_GETPAGESIZE \ 112 -DHAVE_LSEEK64 \ 113 -DHAVE_LSEEK64_PROTOTYPE \ 114 -DHAVE_EXT2_IOCTLS \ 115 -DHAVE_TYPE_SSIZE_T \ 116 -DHAVE_INTPTR_T \ 117 -DENABLE_HTREE=1 118 119 include $(BUILD_EXECUTABLE) 120 121