1 LOCAL_PATH := $(call my-dir)
3 #########################
4 # Build the debugfs binary
32 debugfs_shared_libraries := \
41 debugfs_system_shared_libraries := libc
43 debugfs_static_libraries := \
52 debugfs_system_static_libraries := libc
54 debugfs_c_includes := \
55 external/e2fsprogs/e2fsck \
56 external/e2fsprogs/misc \
57 external/e2fsprogs/lib
59 debugfs_cflags := -O2 -g -W -Wall -fno-strict-aliasing -DDEBUGFS
63 LOCAL_SRC_FILES := $(debugfs_src_files)
64 LOCAL_C_INCLUDES := $(debugfs_c_includes)
65 LOCAL_CFLAGS := $(debugfs_cflags)
66 LOCAL_SYSTEM_SHARED_LIBRARIES := $(debugfs_system_shared_libraries)
67 LOCAL_SHARED_LIBRARIES := $(debugfs_shared_libraries)
68 LOCAL_MODULE := debugfs
69 LOCAL_MODULE_TAGS := optional
70 include $(BUILD_EXECUTABLE)
74 LOCAL_SRC_FILES := $(debugfs_src_files)
75 LOCAL_C_INCLUDES := $(debugfs_c_includes)
76 LOCAL_CFLAGS := $(debugfs_cflags)
77 LOCAL_STATIC_LIBRARIES := $(debugfs_static_libraries) $(debugfs_system_static_libraries)
78 LOCAL_FORCE_STATIC_EXECUTABLE := true
79 LOCAL_MODULE := debugfs_static
80 LOCAL_MODULE_TAGS := optional
81 include $(BUILD_EXECUTABLE)
85 LOCAL_SRC_FILES := $(debugfs_src_files)
86 LOCAL_C_INCLUDES := $(debugfs_c_includes)
87 LOCAL_CFLAGS := $(debugfs_cflags)
88 LOCAL_SHARED_LIBRARIES := $(addsuffix -host, $(debugfs_shared_libraries))
89 LOCAL_MODULE := debugfs_host
90 LOCAL_MODULE_STEM := debugfs
91 LOCAL_MODULE_TAGS := optional
93 include $(BUILD_HOST_EXECUTABLE)