blob: 604eaa180f5119674768dae920bea1ec4b2bfa0b [file] [log] [blame]
LOCAL_PATH := $(call my-dir)
#########################
# Build the e2fsck binary
e2fsck_src_files := \
e2fsck.c \
super.c \
pass1.c \
pass1b.c \
pass2.c \
pass3.c \
pass4.c \
pass5.c \
logfile.c \
journal.c \
recovery.c \
revoke.c \
badblocks.c \
util.c \
unix.c \
dirinfo.c \
dx_dirinfo.c \
ehandler.c \
problem.c \
message.c \
ea_refcount.c \
quota.c \
rehash.c \
region.c \
sigcatcher.c \
readahead.c \
extents.c
e2fsck_shared_libraries := \
libext2fs \
libext2_blkid \
libext2_uuid \
libext2_quota \
libext2_com_err \
libext2_e2p
e2fsck_system_shared_libraries := libc
e2fsck_static_libraries := \
libext2fs \
libext2_blkid \
libext2_uuid_static \
libext2_quota \
libext2_com_err \
libext2_e2p
e2fsck_system_static_libraries := libc
e2fsck_c_includes :=
e2fsck_cflags := -O2 -g -W -Wall -fno-strict-aliasing
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(e2fsck_src_files)
LOCAL_C_INCLUDES := $(e2fsck_c_includes)
LOCAL_CFLAGS := $(e2fsck_cflags)
LOCAL_SYSTEM_SHARED_LIBRARIES := $(e2fsck_system_shared_libraries)
LOCAL_SHARED_LIBRARIES := $(e2fsck_shared_libraries)
LOCAL_MODULE := e2fsck
LOCAL_MODULE_TAGS := optional
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(e2fsck_src_files)
LOCAL_C_INCLUDES := $(e2fsck_c_includes)
LOCAL_CFLAGS := $(e2fsck_cflags)
LOCAL_STATIC_LIBRARIES := $(e2fsck_static_libraries) $(e2fsck_system_static_libraries)
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_MODULE := e2fsck_static
LOCAL_MODULE_TAGS := optional
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(e2fsck_src_files)
LOCAL_C_INCLUDES := $(e2fsck_c_includes)
LOCAL_CFLAGS := $(e2fsck_cflags)
LOCAL_SHARED_LIBRARIES := $(addsuffix -host, $(e2fsck_shared_libraries))
LOCAL_MODULE := e2fsck_host
LOCAL_MODULE_STEM := e2fsck
LOCAL_MODULE_TAGS := optional
include $(BUILD_HOST_EXECUTABLE)