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