1 # Copyright 2010 The Android Open Source Project
3 LOCAL_PATH:= $(call my-dir)
5 libext4_utils_src_files := \
19 # -- All host/targets including windows
23 LOCAL_SRC_FILES := $(libext4_utils_src_files)
24 LOCAL_MODULE := libext4_utils_host
25 # Various instances of dereferencing a type-punned pointer in extent.c
26 LOCAL_CFLAGS += -fno-strict-aliasing
27 LOCAL_STATIC_LIBRARIES := \
30 LOCAL_STATIC_LIBRARIES_darwin += libselinux
31 LOCAL_STATIC_LIBRARIES_linux += libselinux
32 LOCAL_MODULE_HOST_OS := darwin linux windows
33 include $(BUILD_HOST_STATIC_LIBRARY)
37 LOCAL_SRC_FILES := make_ext4fs_main.c
38 LOCAL_MODULE := make_ext4fs
39 LOCAL_SHARED_LIBRARIES += libcutils
40 LOCAL_STATIC_LIBRARIES += \
44 LOCAL_LDLIBS_windows += -lws2_32
45 LOCAL_SHARED_LIBRARIES_darwin += libselinux
46 LOCAL_SHARED_LIBRARIES_linux += libselinux
47 LOCAL_CFLAGS_darwin := -DHOST
48 LOCAL_CFLAGS_linux := -DHOST
49 include $(BUILD_HOST_EXECUTABLE)
52 LOCAL_SRC_FILES := blk_alloc_to_base_fs.c
53 LOCAL_MODULE := blk_alloc_to_base_fs
54 LOCAL_SHARED_LIBRARIES += libcutils
55 LOCAL_CFLAGS_darwin := -DHOST
56 LOCAL_CFLAGS_linux := -DHOST
57 include $(BUILD_HOST_EXECUTABLE)
60 # -- All host/targets excluding windows
63 libext4_utils_src_files += \
67 ifneq ($(HOST_OS),windows)
70 LOCAL_SRC_FILES := $(libext4_utils_src_files)
71 LOCAL_MODULE := libext4_utils
72 LOCAL_C_INCLUDES += system/core/logwrapper/include
73 # Various instances of dereferencing a type-punned pointer in extent.c
74 LOCAL_CFLAGS += -fno-strict-aliasing
75 LOCAL_SHARED_LIBRARIES := \
82 LOCAL_CFLAGS := -DREAL_UUID
84 ifeq ($(BOARD_SUPPRESS_EMMC_WIPE),true)
85 LOCAL_CFLAGS += -DSUPPRESS_EMMC_WIPE
88 include $(BUILD_SHARED_LIBRARY)
92 LOCAL_SRC_FILES := $(libext4_utils_src_files) \
93 ext4_crypt_init_extensions.cpp
94 LOCAL_MODULE := libext4_utils_static
95 # Various instances of dereferencing a type-punned pointer in extent.c
96 LOCAL_CFLAGS += -fno-strict-aliasing
97 LOCAL_STATIC_LIBRARIES := \
104 ifeq ($(BOARD_SUPPRESS_EMMC_WIPE),true)
105 LOCAL_CFLAGS += -DSUPPRESS_EMMC_WIPE
108 include $(BUILD_STATIC_LIBRARY)
111 include $(CLEAR_VARS)
112 LOCAL_SRC_FILES := make_ext4fs_main.c
113 LOCAL_MODULE := make_ext4fs
114 LOCAL_SHARED_LIBRARIES := \
120 LOCAL_CFLAGS := -DREAL_UUID
121 include $(BUILD_EXECUTABLE)
124 include $(CLEAR_VARS)
125 LOCAL_SRC_FILES := ext2simg.c
126 LOCAL_MODULE := ext2simg
127 LOCAL_SHARED_LIBRARIES += \
132 include $(BUILD_EXECUTABLE)
135 include $(CLEAR_VARS)
136 LOCAL_SRC_FILES := ext2simg.c
137 LOCAL_MODULE := ext2simg
138 LOCAL_SHARED_LIBRARIES += \
140 LOCAL_STATIC_LIBRARIES += \
144 include $(BUILD_HOST_EXECUTABLE)
147 include $(CLEAR_VARS)
148 LOCAL_SRC_FILES := setup_fs.c
149 LOCAL_MODULE := setup_fs
150 LOCAL_SHARED_LIBRARIES += libcutils
151 include $(BUILD_EXECUTABLE)
154 include $(CLEAR_VARS)
155 LOCAL_SRC_FILES := ext4fixup_main.c
156 LOCAL_MODULE := ext4fixup
157 LOCAL_SHARED_LIBRARIES += \
161 include $(BUILD_EXECUTABLE)
164 include $(CLEAR_VARS)
165 LOCAL_SRC_FILES := ext4fixup_main.c
166 LOCAL_MODULE := ext4fixup
167 LOCAL_STATIC_LIBRARIES += \
171 include $(BUILD_HOST_EXECUTABLE)
174 include $(CLEAR_VARS)
175 LOCAL_MODULE := mkuserimg.sh
176 LOCAL_SRC_FILES := mkuserimg.sh
177 LOCAL_MODULE_CLASS := EXECUTABLES
178 # We don't need any additional suffix.
179 LOCAL_MODULE_SUFFIX :=
180 LOCAL_BUILT_MODULE_STEM := $(notdir $(LOCAL_SRC_FILES))
181 LOCAL_IS_HOST_MODULE := true
182 include $(BUILD_PREBUILT)