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 |
Chris Fries | 79f3384 | 2013-09-05 13:19:21 -0500 | [diff] [blame^] | 7 | LOCAL_SRC_FILES += fs_mgr_format.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 |
Geremy Condra | 3ad3d1c | 2013-02-22 18:11:41 -0800 | [diff] [blame] | 15 | LOCAL_STATIC_LIBRARIES := liblogwrap libmincrypt libext4_utils_static |
| 16 | LOCAL_C_INCLUDES += system/extras/ext4_utils |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 17 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
Mark Salyzyn | 86e3f22 | 2014-04-30 15:35:00 -0700 | [diff] [blame] | 18 | LOCAL_CFLAGS := -Werror |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 19 | |
Paul Lawrence | bbb3631 | 2014-10-09 14:22:49 +0000 | [diff] [blame] | 20 | ifneq (,$(filter userdebug,$(TARGET_BUILD_VARIANT))) |
| 21 | LOCAL_CFLAGS += -DALLOW_ADBD_DISABLE_VERITY=1 |
| 22 | endif |
| 23 | |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 24 | include $(BUILD_STATIC_LIBRARY) |
| 25 | |
| 26 | |
| 27 | |
| 28 | include $(CLEAR_VARS) |
| 29 | |
| 30 | LOCAL_SRC_FILES:= fs_mgr_main.c |
| 31 | |
| 32 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include |
| 33 | |
| 34 | LOCAL_MODULE:= fs_mgr |
| 35 | |
| 36 | LOCAL_MODULE_TAGS := optional |
| 37 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 38 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/sbin |
| 39 | LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED) |
| 40 | |
Geremy Condra | 3ad3d1c | 2013-02-22 18:11:41 -0800 | [diff] [blame] | 41 | LOCAL_STATIC_LIBRARIES := libfs_mgr liblogwrap libcutils liblog libc libmincrypt libext4_utils_static |
Chris Fries | 79f3384 | 2013-09-05 13:19:21 -0500 | [diff] [blame^] | 42 | LOCAL_STATIC_LIBRARIES += libsparse_static libz libselinux |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 43 | |
Mark Salyzyn | 86e3f22 | 2014-04-30 15:35:00 -0700 | [diff] [blame] | 44 | LOCAL_CFLAGS := -Werror |
| 45 | |
Ken Sumrall | 7574c03 | 2012-01-06 19:09:42 -0800 | [diff] [blame] | 46 | include $(BUILD_EXECUTABLE) |
| 47 | |