Colin Cross | ec0a2e8 | 2010-06-11 14:21:37 -0700 | [diff] [blame] | 1 | # Copyright 2010 The Android Open Source Project |
2 | |||||
3 | LOCAL_PATH:= $(call my-dir) | ||||
Colin Cross | ec0a2e8 | 2010-06-11 14:21:37 -0700 | [diff] [blame] | 4 | |
Colin Cross | 881cca2 | 2010-06-20 23:57:06 -0700 | [diff] [blame] | 5 | libext4_utils_src_files := \ |
Joe Onorato | 3f1eb99 | 2012-07-21 16:31:23 -0700 | [diff] [blame] | 6 | make_ext4fs.c \ |
7 | ext4fixup.c \ | ||||
8 | ext4_utils.c \ | ||||
9 | allocate.c \ | ||||
10 | contents.c \ | ||||
11 | extent.c \ | ||||
12 | indirect.c \ | ||||
Joe Onorato | 3f1eb99 | 2012-07-21 16:31:23 -0700 | [diff] [blame] | 13 | sha1.c \ |
Colin Cross | 56497f2 | 2013-02-04 00:44:55 -0800 | [diff] [blame] | 14 | wipe.c \ |
Colin Cross | 9a2b60b | 2014-01-23 13:13:02 -0800 | [diff] [blame] | 15 | crc16.c \ |
16 | ext4_sb.c | ||||
Raphael Moll | 4605b3f | 2012-02-03 23:02:33 -0800 | [diff] [blame] | 17 | |
Joe Onorato | 3f1eb99 | 2012-07-21 16:31:23 -0700 | [diff] [blame] | 18 | # |
Raphael Moll | 4605b3f | 2012-02-03 23:02:33 -0800 | [diff] [blame] | 19 | # -- All host/targets including windows |
Joe Onorato | 3f1eb99 | 2012-07-21 16:31:23 -0700 | [diff] [blame] | 20 | # |
Raphael Moll | 4605b3f | 2012-02-03 23:02:33 -0800 | [diff] [blame] | 21 | |
Joe Onorato | 3f1eb99 | 2012-07-21 16:31:23 -0700 | [diff] [blame] | 22 | include $(CLEAR_VARS) |
Raphael Moll | 4605b3f | 2012-02-03 23:02:33 -0800 | [diff] [blame] | 23 | LOCAL_SRC_FILES := $(libext4_utils_src_files) |
Joe Onorato | 3f1eb99 | 2012-07-21 16:31:23 -0700 | [diff] [blame] | 24 | LOCAL_MODULE := libext4_utils_host |
Bernhard Rosenkränzer | 9bb2808 | 2015-05-19 23:49:59 +0200 | [diff] [blame] | 25 | # Various instances of dereferencing a type-punned pointer in extent.c |
26 | LOCAL_CFLAGS += -fno-strict-aliasing | ||||
Kenny Root | 723f1c7 | 2012-10-10 11:13:13 -0700 | [diff] [blame] | 27 | LOCAL_STATIC_LIBRARIES := \ |
28 | libsparse_host \ | ||||
29 | libz | ||||
Dan Willemsen | d48a1c1 | 2015-08-18 16:56:12 -0700 | [diff] [blame] | 30 | LOCAL_STATIC_LIBRARIES_darwin += libselinux |
31 | LOCAL_STATIC_LIBRARIES_linux += libselinux | ||||
32 | LOCAL_MODULE_HOST_OS := darwin linux windows | ||||
Raphael Moll | 4605b3f | 2012-02-03 23:02:33 -0800 | [diff] [blame] | 33 | include $(BUILD_HOST_STATIC_LIBRARY) |
34 | |||||
Raphael Moll | 4605b3f | 2012-02-03 23:02:33 -0800 | [diff] [blame] | 35 | |
Joe Onorato | 3f1eb99 | 2012-07-21 16:31:23 -0700 | [diff] [blame] | 36 | include $(CLEAR_VARS) |
Mohamad Ayyash | aa8b355 | 2016-04-07 22:15:57 -0700 | [diff] [blame] | 37 | LOCAL_SRC_FILES := make_ext4fs_main.c |
Raphael Moll | 4605b3f | 2012-02-03 23:02:33 -0800 | [diff] [blame] | 38 | LOCAL_MODULE := make_ext4fs |
Mark Salyzyn | 34d15aa | 2015-04-07 09:36:29 -0700 | [diff] [blame] | 39 | LOCAL_SHARED_LIBRARIES += libcutils |
Joe Onorato | c40049b | 2012-07-23 19:15:37 -0700 | [diff] [blame] | 40 | LOCAL_STATIC_LIBRARIES += \ |
41 | libext4_utils_host \ | ||||
42 | libsparse_host \ | ||||
43 | libz | ||||
Dan Willemsen | d48a1c1 | 2015-08-18 16:56:12 -0700 | [diff] [blame] | 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 | ||||
Raphael Moll | 4605b3f | 2012-02-03 23:02:33 -0800 | [diff] [blame] | 49 | include $(BUILD_HOST_EXECUTABLE) |
50 | |||||
Mohamad Ayyash | 2eb7904 | 2016-02-26 13:58:44 -0800 | [diff] [blame] | 51 | include $(CLEAR_VARS) |
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) | ||||
Raphael Moll | 4605b3f | 2012-02-03 23:02:33 -0800 | [diff] [blame] | 58 | |
Joe Onorato | 3f1eb99 | 2012-07-21 16:31:23 -0700 | [diff] [blame] | 59 | # |
Raphael Moll | 4605b3f | 2012-02-03 23:02:33 -0800 | [diff] [blame] | 60 | # -- All host/targets excluding windows |
Joe Onorato | 3f1eb99 | 2012-07-21 16:31:23 -0700 | [diff] [blame] | 61 | # |
Raphael Moll | 4605b3f | 2012-02-03 23:02:33 -0800 | [diff] [blame] | 62 | |
Paul Lawrence | 92da49d | 2015-02-25 15:11:13 -0800 | [diff] [blame] | 63 | libext4_utils_src_files += \ |
Paul Lawrence | 377cd19 | 2015-04-28 22:13:04 +0000 | [diff] [blame] | 64 | key_control.cpp \ |
Paul Lawrence | 59ffd6d | 2016-02-04 10:37:13 -0800 | [diff] [blame] | 65 | ext4_crypt.cpp |
Paul Lawrence | 92da49d | 2015-02-25 15:11:13 -0800 | [diff] [blame] | 66 | |
Raphael Moll | 4605b3f | 2012-02-03 23:02:33 -0800 | [diff] [blame] | 67 | ifneq ($(HOST_OS),windows) |
Colin Cross | ec0a2e8 | 2010-06-11 14:21:37 -0700 | [diff] [blame] | 68 | |
Joe Onorato | 3f1eb99 | 2012-07-21 16:31:23 -0700 | [diff] [blame] | 69 | include $(CLEAR_VARS) |
Colin Cross | 881cca2 | 2010-06-20 23:57:06 -0700 | [diff] [blame] | 70 | LOCAL_SRC_FILES := $(libext4_utils_src_files) |
71 | LOCAL_MODULE := libext4_utils | ||||
Paul Lawrence | 92da49d | 2015-02-25 15:11:13 -0800 | [diff] [blame] | 72 | LOCAL_C_INCLUDES += system/core/logwrapper/include |
Bernhard Rosenkränzer | 9bb2808 | 2015-05-19 23:49:59 +0200 | [diff] [blame] | 73 | # Various instances of dereferencing a type-punned pointer in extent.c |
74 | LOCAL_CFLAGS += -fno-strict-aliasing | ||||
Joe Onorato | c40049b | 2012-07-23 19:15:37 -0700 | [diff] [blame] | 75 | LOCAL_SHARED_LIBRARIES := \ |
Jeff Sharkey | 78efe41 | 2016-02-03 15:30:33 -0700 | [diff] [blame] | 76 | libbase \ |
Mark Salyzyn | 19cc2a5 | 2015-04-01 07:31:14 -0700 | [diff] [blame] | 77 | libcutils \ |
Jeff Sharkey | f965968 | 2015-04-06 22:29:04 -0700 | [diff] [blame] | 78 | libext2_uuid \ |
Kenny Root | 723f1c7 | 2012-10-10 11:13:13 -0700 | [diff] [blame] | 79 | libselinux \ |
Joe Onorato | c40049b | 2012-07-23 19:15:37 -0700 | [diff] [blame] | 80 | libsparse \ |
Mark Salyzyn | 19cc2a5 | 2015-04-01 07:31:14 -0700 | [diff] [blame] | 81 | libz |
Jeff Sharkey | f965968 | 2015-04-06 22:29:04 -0700 | [diff] [blame] | 82 | LOCAL_CFLAGS := -DREAL_UUID |
David Ferguson | 0bf374b | 2012-06-07 21:00:41 -0400 | [diff] [blame] | 83 | |
84 | ifeq ($(BOARD_SUPPRESS_EMMC_WIPE),true) | ||||
85 | LOCAL_CFLAGS += -DSUPPRESS_EMMC_WIPE | ||||
86 | endif | ||||
87 | |||||
Colin Cross | 881cca2 | 2010-06-20 23:57:06 -0700 | [diff] [blame] | 88 | include $(BUILD_SHARED_LIBRARY) |
89 | |||||
Colin Cross | 881cca2 | 2010-06-20 23:57:06 -0700 | [diff] [blame] | 90 | |
Joe Onorato | 3f1eb99 | 2012-07-21 16:31:23 -0700 | [diff] [blame] | 91 | include $(CLEAR_VARS) |
Paul Lawrence | 92da49d | 2015-02-25 15:11:13 -0800 | [diff] [blame] | 92 | LOCAL_SRC_FILES := $(libext4_utils_src_files) \ |
93 | ext4_crypt_init_extensions.cpp | ||||
Joe Onorato | 3f1eb99 | 2012-07-21 16:31:23 -0700 | [diff] [blame] | 94 | LOCAL_MODULE := libext4_utils_static |
Bernhard Rosenkränzer | 9bb2808 | 2015-05-19 23:49:59 +0200 | [diff] [blame] | 95 | # Various instances of dereferencing a type-punned pointer in extent.c |
96 | LOCAL_CFLAGS += -fno-strict-aliasing | ||||
Paul Lawrence | 92da49d | 2015-02-25 15:11:13 -0800 | [diff] [blame] | 97 | LOCAL_STATIC_LIBRARIES := \ |
Jeff Sharkey | 78efe41 | 2016-02-03 15:30:33 -0700 | [diff] [blame] | 98 | libbase \ |
99 | liblogwrap \ | ||||
Colin Cross | db21988 | 2015-12-21 16:18:26 -0800 | [diff] [blame] | 100 | libsparse_static \ |
Paul Lawrence | 59ffd6d | 2016-02-04 10:37:13 -0800 | [diff] [blame] | 101 | libselinux \ |
102 | libbase | ||||
David Ferguson | 0bf374b | 2012-06-07 21:00:41 -0400 | [diff] [blame] | 103 | |
104 | ifeq ($(BOARD_SUPPRESS_EMMC_WIPE),true) | ||||
105 | LOCAL_CFLAGS += -DSUPPRESS_EMMC_WIPE | ||||
106 | endif | ||||
107 | |||||
Colin Cross | 9b93cf4 | 2010-06-29 14:46:53 -0700 | [diff] [blame] | 108 | include $(BUILD_STATIC_LIBRARY) |
109 | |||||
Colin Cross | 9b93cf4 | 2010-06-29 14:46:53 -0700 | [diff] [blame] | 110 | |
Joe Onorato | 3f1eb99 | 2012-07-21 16:31:23 -0700 | [diff] [blame] | 111 | include $(CLEAR_VARS) |
Mohamad Ayyash | aa8b355 | 2016-04-07 22:15:57 -0700 | [diff] [blame] | 112 | LOCAL_SRC_FILES := make_ext4fs_main.c |
Colin Cross | 881cca2 | 2010-06-20 23:57:06 -0700 | [diff] [blame] | 113 | LOCAL_MODULE := make_ext4fs |
Kenny Root | 723f1c7 | 2012-10-10 11:13:13 -0700 | [diff] [blame] | 114 | LOCAL_SHARED_LIBRARIES := \ |
Mark Salyzyn | 19cc2a5 | 2015-04-01 07:31:14 -0700 | [diff] [blame] | 115 | libcutils \ |
Jeff Sharkey | f965968 | 2015-04-06 22:29:04 -0700 | [diff] [blame] | 116 | libext2_uuid \ |
Kenny Root | 723f1c7 | 2012-10-10 11:13:13 -0700 | [diff] [blame] | 117 | libext4_utils \ |
118 | libselinux \ | ||||
119 | libz | ||||
Jeff Sharkey | f965968 | 2015-04-06 22:29:04 -0700 | [diff] [blame] | 120 | LOCAL_CFLAGS := -DREAL_UUID |
Colin Cross | ec0a2e8 | 2010-06-11 14:21:37 -0700 | [diff] [blame] | 121 | include $(BUILD_EXECUTABLE) |
122 | |||||
Colin Cross | ec0a2e8 | 2010-06-11 14:21:37 -0700 | [diff] [blame] | 123 | |
Joe Onorato | 3f1eb99 | 2012-07-21 16:31:23 -0700 | [diff] [blame] | 124 | include $(CLEAR_VARS) |
Colin Cross | a7ed433 | 2010-12-22 23:08:15 -0800 | [diff] [blame] | 125 | LOCAL_SRC_FILES := ext2simg.c |
126 | LOCAL_MODULE := ext2simg | ||||
Joe Onorato | c40049b | 2012-07-23 19:15:37 -0700 | [diff] [blame] | 127 | LOCAL_SHARED_LIBRARIES += \ |
128 | libext4_utils \ | ||||
Kenny Root | 723f1c7 | 2012-10-10 11:13:13 -0700 | [diff] [blame] | 129 | libselinux \ |
Joe Onorato | c40049b | 2012-07-23 19:15:37 -0700 | [diff] [blame] | 130 | libsparse \ |
131 | libz | ||||
Colin Cross | a7ed433 | 2010-12-22 23:08:15 -0800 | [diff] [blame] | 132 | include $(BUILD_EXECUTABLE) |
133 | |||||
Colin Cross | a7ed433 | 2010-12-22 23:08:15 -0800 | [diff] [blame] | 134 | |
Joe Onorato | 3f1eb99 | 2012-07-21 16:31:23 -0700 | [diff] [blame] | 135 | include $(CLEAR_VARS) |
Colin Cross | a7ed433 | 2010-12-22 23:08:15 -0800 | [diff] [blame] | 136 | LOCAL_SRC_FILES := ext2simg.c |
137 | LOCAL_MODULE := ext2simg | ||||
Mark Salyzyn | 34d15aa | 2015-04-07 09:36:29 -0700 | [diff] [blame] | 138 | LOCAL_SHARED_LIBRARIES += \ |
139 | libselinux | ||||
Joe Onorato | c40049b | 2012-07-23 19:15:37 -0700 | [diff] [blame] | 140 | LOCAL_STATIC_LIBRARIES += \ |
141 | libext4_utils_host \ | ||||
142 | libsparse_host \ | ||||
143 | libz | ||||
Colin Cross | a7ed433 | 2010-12-22 23:08:15 -0800 | [diff] [blame] | 144 | include $(BUILD_HOST_EXECUTABLE) |
145 | |||||
Joe Onorato | 3f1eb99 | 2012-07-21 16:31:23 -0700 | [diff] [blame] | 146 | |
Colin Cross | a7ed433 | 2010-12-22 23:08:15 -0800 | [diff] [blame] | 147 | include $(CLEAR_VARS) |
Ken Sumrall | 337847a | 2011-06-03 14:38:27 -0700 | [diff] [blame] | 148 | LOCAL_SRC_FILES := setup_fs.c |
149 | LOCAL_MODULE := setup_fs | ||||
Ken Sumrall | 337847a | 2011-06-03 14:38:27 -0700 | [diff] [blame] | 150 | LOCAL_SHARED_LIBRARIES += libcutils |
151 | include $(BUILD_EXECUTABLE) | ||||
152 | |||||
Colin Cross | 106235b | 2010-12-25 02:00:14 -0800 | [diff] [blame] | 153 | |
Joe Onorato | 3f1eb99 | 2012-07-21 16:31:23 -0700 | [diff] [blame] | 154 | include $(CLEAR_VARS) |
Ken Sumrall | 671cd21 | 2011-06-09 21:24:42 -0700 | [diff] [blame] | 155 | LOCAL_SRC_FILES := ext4fixup_main.c |
156 | LOCAL_MODULE := ext4fixup | ||||
Joe Onorato | c40049b | 2012-07-23 19:15:37 -0700 | [diff] [blame] | 157 | LOCAL_SHARED_LIBRARIES += \ |
158 | libext4_utils \ | ||||
159 | libsparse \ | ||||
160 | libz | ||||
Ken Sumrall | 671cd21 | 2011-06-09 21:24:42 -0700 | [diff] [blame] | 161 | include $(BUILD_EXECUTABLE) |
162 | |||||
Ken Sumrall | 671cd21 | 2011-06-09 21:24:42 -0700 | [diff] [blame] | 163 | |
Joe Onorato | 3f1eb99 | 2012-07-21 16:31:23 -0700 | [diff] [blame] | 164 | include $(CLEAR_VARS) |
Ken Sumrall | 671cd21 | 2011-06-09 21:24:42 -0700 | [diff] [blame] | 165 | LOCAL_SRC_FILES := ext4fixup_main.c |
166 | LOCAL_MODULE := ext4fixup | ||||
Joe Onorato | c40049b | 2012-07-23 19:15:37 -0700 | [diff] [blame] | 167 | LOCAL_STATIC_LIBRARIES += \ |
168 | libext4_utils_host \ | ||||
169 | libsparse_host \ | ||||
170 | libz | ||||
Ken Sumrall | 671cd21 | 2011-06-09 21:24:42 -0700 | [diff] [blame] | 171 | include $(BUILD_HOST_EXECUTABLE) |
172 | |||||
Ken Sumrall | 671cd21 | 2011-06-09 21:24:42 -0700 | [diff] [blame] | 173 | |
Joe Onorato | 3f1eb99 | 2012-07-21 16:31:23 -0700 | [diff] [blame] | 174 | include $(CLEAR_VARS) |
Colin Cross | 3c97782 | 2010-08-03 13:49:43 -0700 | [diff] [blame] | 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 | ||||
Colin Cross | 3c97782 | 2010-08-03 13:49:43 -0700 | [diff] [blame] | 182 | include $(BUILD_PREBUILT) |
Scott Anderson | 523775a | 2012-02-08 17:36:28 -0800 | [diff] [blame] | 183 | |
Raphael Moll | 4605b3f | 2012-02-03 23:02:33 -0800 | [diff] [blame] | 184 | endif |