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 \ |
Mattias Nissler | 097b6bb | 2016-03-31 16:32:09 +0200 | [diff] [blame] | 10 | libcrypto_utils_static \ |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 11 | libcrypto_static \ |
| 12 | libext4_utils_static \ |
| 13 | libsquashfs_utils |
| 14 | |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 15 | include $(CLEAR_VARS) |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 16 | LOCAL_CLANG := true |
| 17 | LOCAL_SANITIZE := integer |
| 18 | LOCAL_SRC_FILES:= \ |
| 19 | fs_mgr.c \ |
| 20 | fs_mgr_format.c \ |
| 21 | fs_mgr_fstab.c \ |
| 22 | fs_mgr_slotselect.c \ |
| 23 | fs_mgr_verity.cpp |
| 24 | LOCAL_C_INCLUDES := \ |
| 25 | $(LOCAL_PATH)/include \ |
Chris Fries | 79f3384 | 2013-09-05 13:19:21 -0500 | [diff] [blame] | 26 | system/vold \ |
| 27 | system/extras/ext4_utils \ |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 28 | external/openssl/include \ |
| 29 | bootable/recovery |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 30 | LOCAL_MODULE:= libfs_mgr |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 31 | LOCAL_STATIC_LIBRARIES := $(common_static_libraries) |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 32 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
Mark Salyzyn | 86e3f22 | 2014-04-30 15:35:00 -0700 | [diff] [blame] | 33 | LOCAL_CFLAGS := -Werror |
Paul Lawrence | ec900bb | 2014-10-09 14:22:49 +0000 | [diff] [blame] | 34 | ifneq (,$(filter userdebug,$(TARGET_BUILD_VARIANT))) |
| 35 | LOCAL_CFLAGS += -DALLOW_ADBD_DISABLE_VERITY=1 |
| 36 | endif |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 37 | include $(BUILD_STATIC_LIBRARY) |
| 38 | |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 39 | include $(CLEAR_VARS) |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 40 | LOCAL_CLANG := true |
| 41 | LOCAL_SANITIZE := integer |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 42 | LOCAL_SRC_FILES:= fs_mgr_main.c |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 43 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 44 | LOCAL_MODULE:= fs_mgr |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 45 | LOCAL_MODULE_TAGS := optional |
| 46 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 47 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/sbin |
| 48 | LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED) |
Sami Tolvanen | 99e3a92 | 2015-05-22 15:43:50 +0100 | [diff] [blame] | 49 | LOCAL_STATIC_LIBRARIES := libfs_mgr \ |
| 50 | $(common_static_libraries) \ |
| 51 | libcutils \ |
| 52 | liblog \ |
| 53 | libc \ |
| 54 | libsparse_static \ |
| 55 | libz \ |
| 56 | libselinux |
Dan Albert | bbbc634 | 2015-04-01 13:26:04 -0700 | [diff] [blame] | 57 | LOCAL_CXX_STL := libc++_static |
Mark Salyzyn | 86e3f22 | 2014-04-30 15:35:00 -0700 | [diff] [blame] | 58 | LOCAL_CFLAGS := -Werror |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 59 | include $(BUILD_EXECUTABLE) |