aboutsummaryrefslogtreecommitdiff
path: root/misc/Android.mk
blob: d3bb8207df9ebb4b44ee8c7775b885fae520c86b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
LOCAL_PATH := $(call my-dir)

#########################################################################
# Build statically linked mke2fs for recovery
mke2fs_src_files := \
       mke2fs.c \
       util.c \
       mk_hugefiles.c \
       default_profile.c \
       create_inode.c \

mke2fs_c_includes := \
       external/e2fsprogs/e2fsck

mke2fs_cflags := -W -Wall -Wno-macro-redefined

mke2fs_static_libraries := \
       libext2_blkid \
       libext2_uuid \
       libext2_quota \
       libext2_com_err \
       libext2_e2p \
       libsparse \
       libz \

mke2fs_whole_static_libraries := \
       libbase \
       libext2fs \

include $(CLEAR_VARS)

LOCAL_SRC_FILES := $(mke2fs_src_files)
LOCAL_C_INCLUDES := $(mke2fs_c_includes)
LOCAL_CFLAGS := $(mke2fs_cflags)
LOCAL_WHOLE_STATIC_LIBRARIES := $(mke2fs_whole_static_libraries)
LOCAL_STATIC_LIBRARIES := $(mke2fs_static_libraries)
LOCAL_MODULE := mke2fs_static
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
LOCAL_FORCE_STATIC_EXECUTABLE := true

include $(BUILD_EXECUTABLE)