Whamcloud - gitweb
Update Android build files so the 1.43 branch builds on AOSP
authorTheodore Ts'o <tytso@mit.edu>
Sat, 23 May 2015 22:09:33 +0000 (18:09 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 26 May 2015 00:25:28 +0000 (20:25 -0400)
Recent changes in the 1.43 branch as well as the latest AOSP caused
the Android build to break; fix them.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
CleanSpec.mk
e2fsck/Android.mk
lib/ext2fs/Android.mk
lib/quota/Android.mk
lib/uuid/Android.mk
misc/Android.mk
util/android_config.h

index b84e1b6..ded4ceb 100644 (file)
@@ -47,3 +47,5 @@
 # ************************************************
 # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
 # ************************************************
+
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libext2_uuid_intermediates)
index 83d1c2d..0d11450 100644 (file)
@@ -69,7 +69,9 @@ e2fsck_src_files :=  \
        rehash.c \
        region.c \
        sigcatcher.c \
-       plausible.c
+       plausible.c \
+       readahead.c \
+       extents.c
 
 e2fsck_shared_libraries := \
        libext2fs \
index 192b362..1609ee7 100644 (file)
@@ -6,6 +6,7 @@ libext2fs_src_files := \
        alloc_sb.c \
        alloc_stats.c \
        alloc_tables.c \
+       atexit.c \
        badblocks.c \
        bb_inode.c \
        bitmaps.c \
@@ -42,6 +43,7 @@ libext2fs_src_files := \
        getsectsize.c \
        i_block.c \
        icount.c \
+       imager.c \
        ind_block.c \
        initialize.c \
        inline.c \
@@ -61,6 +63,7 @@ libext2fs_src_files := \
        openfs.c \
        progress.c \
        punch.c \
+       qcow2.c \
        rbtree.c \
        read_bb.c \
        read_bb_file.c \
index 1c724d9..7aa82cb 100644 (file)
@@ -13,9 +13,12 @@ libext2_quota_cflags := -O2 -g -W -Wall
 
 libext2_quota_shared_libraries := libext2fs libext2_com_err
 
+libext2_quota_system_shared_libraries := libc
+
 include $(CLEAR_VARS)
 
 LOCAL_SRC_FILES := $(libext2_quota_src_files)
+LOCAL_SYSTEM_SHARED_LIBRARIES := $(libext2_quota_system_shared_libraries)
 LOCAL_C_INCLUDES := $(libext2_quota_c_includes)
 LOCAL_CFLAGS := $(libext2_quota_cflags)
 LOCAL_SYSTEM_SHARED_LIBRARIES := libc $(libext2_quota_shared_libraries)
index 282a136..85cb1b7 100644 (file)
@@ -24,6 +24,7 @@ include $(CLEAR_VARS)
 LOCAL_SRC_FILES := $(libext2_uuid_src_files)
 LOCAL_C_INCLUDES := $(libext2_uuid_c_includes)
 LOCAL_CFLAGS := $(libext2_uuid_cflags)
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
 LOCAL_SYSTEM_SHARED_LIBRARIES := $(libext2_uuid_system_shared_libraries)
 LOCAL_MODULE := libext2_uuid
 LOCAL_MODULE_TAGS := optional
@@ -35,6 +36,7 @@ include $(CLEAR_VARS)
 LOCAL_SRC_FILES := $(libext2_uuid_src_files)
 LOCAL_C_INCLUDES := $(libext2_uuid_c_includes)
 LOCAL_CFLAGS := $(libext2_uuid_cflags)
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
 LOCAL_MODULE := libext2_uuid_host
 LOCAL_MODULE_TAGS := optional
 
@@ -46,6 +48,7 @@ include $(CLEAR_VARS)
 LOCAL_SRC_FILES := $(libext2_uuid_src_files)
 LOCAL_C_INCLUDES := $(libext2_uuid_c_includes)
 LOCAL_CFLAGS := $(libext2_uuid_cflags)
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
 LOCAL_STATIC_LIBRARIES := libc
 LOCAL_MODULE := libext2_uuid_static
 LOCAL_MODULE_TAGS := optional
@@ -58,6 +61,7 @@ include $(CLEAR_VARS)
 LOCAL_SRC_FILES := $(libext2_uuid_src_files)
 LOCAL_C_INCLUDES := $(libext2_uuid_c_includes)
 LOCAL_CFLAGS := $(libext2_uuid_cflags)
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
 LOCAL_MODULE := libext2_uuid_host
 LOCAL_MODULE_TAGS := optional
 
index 798ae86..689e127 100644 (file)
@@ -299,3 +299,46 @@ LOCAL_MODULE_TAGS := optional
 
 include $(BUILD_HOST_EXECUTABLE)
 
+###########################################################################
+# Build e2image
+#
+e2image_src_files := \
+       e2image.c \
+       plausible.c
+
+e2image_c_includes := \
+       external/e2fsprogs/lib
+
+e2image_cflags := -O2 -g -W -Wall
+
+e2image_shared_libraries := \
+       libext2fs \
+       libext2_blkid \
+       libext2_com_err
+
+e2image_system_shared_libraries := libc
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(e2image_src_files)
+LOCAL_C_INCLUDES := $(e2image_c_includes)
+mke2fs_c_includesLOCAL_CFLAGS := $(e2image_cflags)
+LOCAL_SHARED_LIBRARIES := $(e2image_shared_libraries)
+LOCAL_SYSTEM_SHARED_LIBRARIES := $(e2image_system_shared_libraries)
+LOCAL_MODULE := e2image
+LOCAL_MODULE_TAGS := optional
+
+include $(BUILD_EXECUTABLE)
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(e2image_src_files)
+LOCAL_C_INCLUDES := $(e2image_c_includes)
+LOCAL_CFLAGS := $(e2image_cflags)
+LOCAL_SHARED_LIBRARIES := $(addsuffix _host, $(e2image_shared_libraries))
+LOCAL_MODULE := e2image_host
+LOCAL_MODULE_STEM := e2image
+LOCAL_MODULE_TAGS := optional
+
+include $(BUILD_HOST_EXECUTABLE)
+
index b348e07..55d728a 100644 (file)
@@ -35,6 +35,7 @@
 #define HAVE_SYS_STAT_H 1
 #define HAVE_SYS_TIME_H 1
 #define HAVE_SYS_TYPES_H 1
+#define HAVE_SYS_WAIT_H 1
 #define HAVE_TERMIO_H 1
 #define HAVE_TYPE_SSIZE_T 1
 #define HAVE_UNISTD_H 1