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) |
| 4 | include $(CLEAR_VARS) |
| 5 | |
Colin Cross | 5edee2a | 2014-01-23 14:22:48 -0800 | [diff] [blame] | 6 | LOCAL_SRC_FILES:= fs_mgr.c fs_mgr_verity.c fs_mgr_fstab.c |
David Zeuthen | 1c7060e | 2015-09-09 12:40:16 -0400 | [diff] [blame] | 7 | LOCAL_SRC_FILES += fs_mgr_format.c fs_mgr_slotselect.c |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 8 | |
Chris Fries | 79f3384 | 2013-09-05 13:19:21 -0500 | [diff] [blame] | 9 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include \ |
| 10 | system/vold \ |
| 11 | system/extras/ext4_utils \ |
| 12 | external/openssl/include |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 13 | |
| 14 | LOCAL_MODULE:= libfs_mgr |
Mohamad Ayyash | 030ef359 | 2015-04-08 17:59:19 -0700 | [diff] [blame] | 15 | LOCAL_STATIC_LIBRARIES := liblogwrap libmincrypt libext4_utils_static libsquashfs_utils |
David Zeuthen | 227ef3c | 2015-09-03 12:23:12 -0400 | [diff] [blame] | 16 | LOCAL_C_INCLUDES += system/extras/ext4_utils system/extras/squashfs_utils \ |
| 17 | bootable/recovery |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 18 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
Mark Salyzyn | 86e3f22 | 2014-04-30 15:35:00 -0700 | [diff] [blame] | 19 | LOCAL_CFLAGS := -Werror |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 20 | |
Paul Lawrence | ec900bb | 2014-10-09 14:22:49 +0000 | [diff] [blame] | 21 | ifneq (,$(filter userdebug,$(TARGET_BUILD_VARIANT))) |
| 22 | LOCAL_CFLAGS += -DALLOW_ADBD_DISABLE_VERITY=1 |
| 23 | endif |
| 24 | |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 25 | include $(BUILD_STATIC_LIBRARY) |
| 26 | |
| 27 | |
| 28 | |
| 29 | include $(CLEAR_VARS) |
| 30 | |
| 31 | LOCAL_SRC_FILES:= fs_mgr_main.c |
| 32 | |
| 33 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include |
| 34 | |
| 35 | LOCAL_MODULE:= fs_mgr |
| 36 | |
| 37 | LOCAL_MODULE_TAGS := optional |
| 38 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 39 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/sbin |
| 40 | LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED) |
| 41 | |
Mohamad Ayyash | 030ef359 | 2015-04-08 17:59:19 -0700 | [diff] [blame] | 42 | LOCAL_STATIC_LIBRARIES := libfs_mgr liblogwrap libcutils liblog libc libmincrypt libext4_utils_static libsquashfs_utils |
Chris Fries | 79f3384 | 2013-09-05 13:19:21 -0500 | [diff] [blame] | 43 | LOCAL_STATIC_LIBRARIES += libsparse_static libz libselinux |
Dan Albert | bbbc634 | 2015-04-01 13:26:04 -0700 | [diff] [blame] | 44 | LOCAL_CXX_STL := libc++_static |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 45 | |
Mark Salyzyn | 86e3f22 | 2014-04-30 15:35:00 -0700 | [diff] [blame] | 46 | LOCAL_CFLAGS := -Werror |
| 47 | |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 48 | include $(BUILD_EXECUTABLE) |
| 49 | |