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 \ |
bowgotsai | b51722b | 2017-01-11 22:21:38 +0800 | [diff] [blame] | 14 | libselinux \ |
| 15 | libavb |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 16 | |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 17 | include $(CLEAR_VARS) |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 18 | LOCAL_CLANG := true |
| 19 | LOCAL_SANITIZE := integer |
| 20 | LOCAL_SRC_FILES:= \ |
bowgotsai | cea7ea7 | 2017-01-16 21:49:49 +0800 | [diff] [blame^] | 21 | fs_mgr.cpp \ |
bowgotsai | 3de625d | 2016-11-11 21:05:44 +0800 | [diff] [blame] | 22 | fs_mgr_dm_ioctl.cpp \ |
bowgotsai | cea7ea7 | 2017-01-16 21:49:49 +0800 | [diff] [blame^] | 23 | fs_mgr_format.cpp \ |
| 24 | fs_mgr_fstab.cpp \ |
| 25 | fs_mgr_slotselect.cpp \ |
bowgotsai | b51722b | 2017-01-11 22:21:38 +0800 | [diff] [blame] | 26 | fs_mgr_verity.cpp \ |
| 27 | fs_mgr_avb.cpp \ |
| 28 | fs_mgr_avb_ops.cpp |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 29 | LOCAL_C_INCLUDES := \ |
| 30 | $(LOCAL_PATH)/include \ |
Chris Fries | 79f3384 | 2013-09-05 13:19:21 -0500 | [diff] [blame] | 31 | system/vold \ |
| 32 | system/extras/ext4_utils \ |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 33 | bootable/recovery |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 34 | LOCAL_MODULE:= libfs_mgr |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 35 | LOCAL_STATIC_LIBRARIES := $(common_static_libraries) |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 36 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
Mark Salyzyn | 86e3f22 | 2014-04-30 15:35:00 -0700 | [diff] [blame] | 37 | LOCAL_CFLAGS := -Werror |
Keun-young Park | 22e8199 | 2017-01-09 16:39:49 -0800 | [diff] [blame] | 38 | ifeq ($(TARGET_USERIMAGES_USE_EXT4), true) |
| 39 | ifeq ($(TARGET_USES_MKE2FS), true) |
| 40 | LOCAL_CFLAGS += -DTARGET_USES_MKE2FS |
| 41 | endif |
| 42 | endif |
Paul Lawrence | ec900bb | 2014-10-09 14:22:49 +0000 | [diff] [blame] | 43 | ifneq (,$(filter userdebug,$(TARGET_BUILD_VARIANT))) |
| 44 | LOCAL_CFLAGS += -DALLOW_ADBD_DISABLE_VERITY=1 |
| 45 | endif |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 46 | include $(BUILD_STATIC_LIBRARY) |
| 47 | |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 48 | include $(CLEAR_VARS) |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 49 | LOCAL_CLANG := true |
| 50 | LOCAL_SANITIZE := integer |
bowgotsai | cea7ea7 | 2017-01-16 21:49:49 +0800 | [diff] [blame^] | 51 | LOCAL_SRC_FILES:= fs_mgr_main.cpp |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 52 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 53 | LOCAL_MODULE:= fs_mgr |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 54 | LOCAL_MODULE_TAGS := optional |
| 55 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 56 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/sbin |
| 57 | LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED) |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 58 | LOCAL_STATIC_LIBRARIES := libfs_mgr \ |
| 59 | $(common_static_libraries) \ |
| 60 | libcutils \ |
| 61 | liblog \ |
| 62 | libc \ |
Alex Deymo | b0c3959 | 2017-01-11 14:37:50 -0800 | [diff] [blame] | 63 | libsparse \ |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 64 | libz \ |
| 65 | libselinux |
Dan Albert | bbbc634 | 2015-04-01 13:26:04 -0700 | [diff] [blame] | 66 | LOCAL_CXX_STL := libc++_static |
Mark Salyzyn | 86e3f22 | 2014-04-30 15:35:00 -0700 | [diff] [blame] | 67 | LOCAL_CFLAGS := -Werror |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 68 | include $(BUILD_EXECUTABLE) |