Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 1 | # Copyright 2011 The Android Open Source Project |
| 2 | |
| 3 | LOCAL_PATH:= $(call my-dir) |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 4 | |
| 5 | common_static_libraries := \ |
| 6 | liblogwrap \ |
| 7 | libfec \ |
| 8 | libfec_rs \ |
| 9 | libbase \ |
Josh Gao | 47763c3 | 2016-08-05 15:47:57 -0700 | [diff] [blame] | 10 | libcrypto_utils \ |
| 11 | libcrypto \ |
Alex Deymo | 705353a | 2017-01-11 14:03:11 -0800 | [diff] [blame] | 12 | libext4_utils \ |
William Roberts | 875476d | 2016-05-13 11:19:42 -0700 | [diff] [blame] | 13 | libsquashfs_utils \ |
| 14 | libselinux |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 15 | |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 16 | include $(CLEAR_VARS) |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 17 | LOCAL_CLANG := true |
| 18 | LOCAL_SANITIZE := integer |
| 19 | LOCAL_SRC_FILES:= \ |
| 20 | fs_mgr.c \ |
bowgotsai | 3de625d | 2016-11-11 21:05:44 +0800 | [diff] [blame^] | 21 | fs_mgr_dm_ioctl.cpp \ |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 22 | fs_mgr_format.c \ |
| 23 | fs_mgr_fstab.c \ |
| 24 | fs_mgr_slotselect.c \ |
| 25 | fs_mgr_verity.cpp |
| 26 | LOCAL_C_INCLUDES := \ |
| 27 | $(LOCAL_PATH)/include \ |
Chris Fries | 79f3384 | 2013-09-05 13:19:21 -0500 | [diff] [blame] | 28 | system/vold \ |
| 29 | system/extras/ext4_utils \ |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 30 | external/openssl/include \ |
| 31 | bootable/recovery |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 32 | LOCAL_MODULE:= libfs_mgr |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 33 | LOCAL_STATIC_LIBRARIES := $(common_static_libraries) |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 34 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
Mark Salyzyn | 86e3f22 | 2014-04-30 15:35:00 -0700 | [diff] [blame] | 35 | LOCAL_CFLAGS := -Werror |
Keun-young Park | 22e8199 | 2017-01-09 16:39:49 -0800 | [diff] [blame] | 36 | ifeq ($(TARGET_USERIMAGES_USE_EXT4), true) |
| 37 | ifeq ($(TARGET_USES_MKE2FS), true) |
| 38 | LOCAL_CFLAGS += -DTARGET_USES_MKE2FS |
| 39 | endif |
| 40 | endif |
Paul Lawrence | ec900bb | 2014-10-09 14:22:49 +0000 | [diff] [blame] | 41 | ifneq (,$(filter userdebug,$(TARGET_BUILD_VARIANT))) |
| 42 | LOCAL_CFLAGS += -DALLOW_ADBD_DISABLE_VERITY=1 |
| 43 | endif |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 44 | include $(BUILD_STATIC_LIBRARY) |
| 45 | |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 46 | include $(CLEAR_VARS) |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 47 | LOCAL_CLANG := true |
| 48 | LOCAL_SANITIZE := integer |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 49 | LOCAL_SRC_FILES:= fs_mgr_main.c |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 50 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 51 | LOCAL_MODULE:= fs_mgr |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 52 | LOCAL_MODULE_TAGS := optional |
| 53 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 54 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/sbin |
| 55 | LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED) |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 56 | LOCAL_STATIC_LIBRARIES := libfs_mgr \ |
| 57 | $(common_static_libraries) \ |
| 58 | libcutils \ |
| 59 | liblog \ |
| 60 | libc \ |
Alex Deymo | b0c3959 | 2017-01-11 14:37:50 -0800 | [diff] [blame] | 61 | libsparse \ |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 62 | libz \ |
| 63 | libselinux |
Dan Albert | bbbc634 | 2015-04-01 13:26:04 -0700 | [diff] [blame] | 64 | LOCAL_CXX_STL := libc++_static |
Mark Salyzyn | 86e3f22 | 2014-04-30 15:35:00 -0700 | [diff] [blame] | 65 | LOCAL_CFLAGS := -Werror |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 66 | include $(BUILD_EXECUTABLE) |