2012-06-01 08:21:46 +02:00
|
|
|
# Copyright (C) 2007 The Android Open Source Project
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
2017-04-11 01:55:57 +02:00
|
|
|
# Needed by build/make/core/Makefile.
|
|
|
|
RECOVERY_API_VERSION := 3
|
|
|
|
RECOVERY_FSTAB_VERSION := 2
|
|
|
|
|
2016-06-10 02:41:22 +02:00
|
|
|
# libmounts (static library)
|
|
|
|
# ===============================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := mounts.cpp
|
2017-03-29 06:12:36 +02:00
|
|
|
LOCAL_CFLAGS := \
|
|
|
|
-Wall \
|
|
|
|
-Werror
|
2016-06-10 02:41:22 +02:00
|
|
|
LOCAL_MODULE := libmounts
|
2017-03-29 06:12:36 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES := libbase
|
2016-06-10 02:41:22 +02:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
2017-04-11 01:55:57 +02:00
|
|
|
# librecovery (static library)
|
|
|
|
# ===============================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
install.cpp
|
2017-04-21 02:54:27 +02:00
|
|
|
LOCAL_CFLAGS := -Wall -Werror
|
2017-04-11 01:55:57 +02:00
|
|
|
LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
|
2017-04-13 08:52:20 +02:00
|
|
|
|
|
|
|
ifeq ($(AB_OTA_UPDATER),true)
|
|
|
|
LOCAL_CFLAGS += -DAB_OTA_UPDATER=1
|
|
|
|
endif
|
|
|
|
|
2017-04-11 01:55:57 +02:00
|
|
|
LOCAL_MODULE := librecovery
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
|
|
libminui \
|
2017-10-03 23:37:21 +02:00
|
|
|
libotautil \
|
2017-04-11 01:55:57 +02:00
|
|
|
libvintf_recovery \
|
2017-04-11 01:55:57 +02:00
|
|
|
libcrypto_utils \
|
|
|
|
libcrypto \
|
2017-06-28 17:00:17 +02:00
|
|
|
libbase \
|
|
|
|
libziparchive \
|
2017-04-11 01:55:57 +02:00
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
2018-03-21 00:07:39 +01:00
|
|
|
# librecovery_ui (static library)
|
2016-03-03 20:43:47 +01:00
|
|
|
# ===============================
|
2012-06-01 08:21:46 +02:00
|
|
|
include $(CLEAR_VARS)
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_SRC_FILES := \
|
2011-10-29 00:13:10 +02:00
|
|
|
screen_ui.cpp \
|
2015-04-09 22:40:31 +02:00
|
|
|
ui.cpp \
|
2017-06-13 01:08:33 +02:00
|
|
|
vr_ui.cpp \
|
2018-03-21 00:07:39 +01:00
|
|
|
wear_ui.cpp
|
2009-03-04 04:28:42 +01:00
|
|
|
|
2018-03-21 00:07:39 +01:00
|
|
|
LOCAL_CFLAGS := -Wall -Werror
|
2014-06-17 04:07:39 +02:00
|
|
|
|
2018-03-21 00:07:39 +01:00
|
|
|
LOCAL_MODULE := librecovery_ui
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
|
|
libminui \
|
|
|
|
libbase
|
2009-06-18 02:29:40 +02:00
|
|
|
|
2017-06-21 03:11:21 +02:00
|
|
|
ifneq ($(TARGET_RECOVERY_UI_MARGIN_HEIGHT),)
|
|
|
|
LOCAL_CFLAGS += -DRECOVERY_UI_MARGIN_HEIGHT=$(TARGET_RECOVERY_UI_MARGIN_HEIGHT)
|
|
|
|
else
|
|
|
|
LOCAL_CFLAGS += -DRECOVERY_UI_MARGIN_HEIGHT=0
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(TARGET_RECOVERY_UI_MARGIN_WIDTH),)
|
|
|
|
LOCAL_CFLAGS += -DRECOVERY_UI_MARGIN_WIDTH=$(TARGET_RECOVERY_UI_MARGIN_WIDTH)
|
|
|
|
else
|
|
|
|
LOCAL_CFLAGS += -DRECOVERY_UI_MARGIN_WIDTH=0
|
|
|
|
endif
|
|
|
|
|
2017-07-28 09:05:40 +02:00
|
|
|
ifneq ($(TARGET_RECOVERY_UI_TOUCH_LOW_THRESHOLD),)
|
|
|
|
LOCAL_CFLAGS += -DRECOVERY_UI_TOUCH_LOW_THRESHOLD=$(TARGET_RECOVERY_UI_TOUCH_LOW_THRESHOLD)
|
|
|
|
else
|
|
|
|
LOCAL_CFLAGS += -DRECOVERY_UI_TOUCH_LOW_THRESHOLD=50
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(TARGET_RECOVERY_UI_TOUCH_HIGH_THRESHOLD),)
|
|
|
|
LOCAL_CFLAGS += -DRECOVERY_UI_TOUCH_HIGH_THRESHOLD=$(TARGET_RECOVERY_UI_TOUCH_HIGH_THRESHOLD)
|
|
|
|
else
|
|
|
|
LOCAL_CFLAGS += -DRECOVERY_UI_TOUCH_HIGH_THRESHOLD=90
|
|
|
|
endif
|
|
|
|
|
2017-08-03 02:11:04 +02:00
|
|
|
ifneq ($(TARGET_RECOVERY_UI_PROGRESS_BAR_BASELINE),)
|
|
|
|
LOCAL_CFLAGS += -DRECOVERY_UI_PROGRESS_BAR_BASELINE=$(TARGET_RECOVERY_UI_PROGRESS_BAR_BASELINE)
|
|
|
|
else
|
|
|
|
LOCAL_CFLAGS += -DRECOVERY_UI_PROGRESS_BAR_BASELINE=259
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(TARGET_RECOVERY_UI_ANIMATION_FPS),)
|
|
|
|
LOCAL_CFLAGS += -DRECOVERY_UI_ANIMATION_FPS=$(TARGET_RECOVERY_UI_ANIMATION_FPS)
|
|
|
|
else
|
|
|
|
LOCAL_CFLAGS += -DRECOVERY_UI_ANIMATION_FPS=30
|
|
|
|
endif
|
|
|
|
|
2017-08-11 22:50:24 +02:00
|
|
|
ifneq ($(TARGET_RECOVERY_UI_MENU_UNUSABLE_ROWS),)
|
|
|
|
LOCAL_CFLAGS += -DRECOVERY_UI_MENU_UNUSABLE_ROWS=$(TARGET_RECOVERY_UI_MENU_UNUSABLE_ROWS)
|
|
|
|
else
|
|
|
|
LOCAL_CFLAGS += -DRECOVERY_UI_MENU_UNUSABLE_ROWS=9
|
|
|
|
endif
|
|
|
|
|
2017-06-23 23:33:46 +02:00
|
|
|
ifneq ($(TARGET_RECOVERY_UI_VR_STEREO_OFFSET),)
|
|
|
|
LOCAL_CFLAGS += -DRECOVERY_UI_VR_STEREO_OFFSET=$(TARGET_RECOVERY_UI_VR_STEREO_OFFSET)
|
|
|
|
else
|
|
|
|
LOCAL_CFLAGS += -DRECOVERY_UI_VR_STEREO_OFFSET=0
|
|
|
|
endif
|
|
|
|
|
2018-03-21 00:07:39 +01:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
# recovery (static executable)
|
|
|
|
# ===============================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
adb_install.cpp \
|
|
|
|
device.cpp \
|
|
|
|
fuse_sdcard_provider.cpp \
|
|
|
|
recovery.cpp \
|
|
|
|
roots.cpp \
|
|
|
|
rotate_logs.cpp \
|
|
|
|
|
|
|
|
|
|
|
|
LOCAL_MODULE := recovery
|
|
|
|
|
|
|
|
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
|
|
|
|
|
|
|
LOCAL_REQUIRED_MODULES := e2fsdroid_static mke2fs_static mke2fs.conf
|
|
|
|
|
|
|
|
ifeq ($(TARGET_USERIMAGES_USE_F2FS),true)
|
|
|
|
ifeq ($(HOST_OS),linux)
|
|
|
|
LOCAL_REQUIRED_MODULES += sload.f2fs mkfs.f2fs
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
|
|
|
|
LOCAL_CFLAGS += -Wall -Werror
|
|
|
|
|
2015-02-19 00:58:15 +01:00
|
|
|
LOCAL_C_INCLUDES += \
|
|
|
|
system/vold \
|
2014-11-06 14:53:50 +01:00
|
|
|
|
2018-03-21 00:07:39 +01:00
|
|
|
LOCAL_STATIC_LIBRARIES := librecovery
|
|
|
|
|
|
|
|
# If $(TARGET_RECOVERY_UI_LIB) is defined, the recovery calls make_device() from the
|
|
|
|
# $(TARGET_RECOVERY_UI_LIB), which depends on the librecovery_ui.
|
|
|
|
ifeq ($(TARGET_RECOVERY_UI_LIB),)
|
|
|
|
LOCAL_SRC_FILES += default_device.cpp
|
|
|
|
else
|
|
|
|
LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB)
|
|
|
|
endif
|
|
|
|
|
|
|
|
LOCAL_STATIC_LIBRARIES += \
|
2017-04-17 00:22:13 +02:00
|
|
|
libverifier \
|
2016-02-17 21:21:52 +01:00
|
|
|
libbatterymonitor \
|
2016-06-25 03:22:02 +02:00
|
|
|
libbootloader_message \
|
2017-04-21 23:36:12 +02:00
|
|
|
libfs_mgr \
|
2017-01-11 23:02:13 +01:00
|
|
|
libext4_utils \
|
2017-01-11 23:38:20 +01:00
|
|
|
libsparse \
|
2016-09-09 05:10:11 +02:00
|
|
|
libziparchive \
|
|
|
|
libotautil \
|
2016-06-10 02:41:22 +02:00
|
|
|
libmounts \
|
2012-06-01 08:21:46 +02:00
|
|
|
libminadbd \
|
2017-07-14 03:17:35 +02:00
|
|
|
libasyncio \
|
2014-07-10 16:31:46 +02:00
|
|
|
libfusesideload \
|
2018-03-21 00:07:39 +01:00
|
|
|
librecovery_ui \
|
2012-06-01 08:21:46 +02:00
|
|
|
libminui \
|
|
|
|
libpng \
|
2016-08-06 00:59:05 +02:00
|
|
|
libcrypto_utils \
|
|
|
|
libcrypto \
|
2017-04-11 01:55:57 +02:00
|
|
|
libvintf_recovery \
|
|
|
|
libvintf \
|
2018-03-07 02:59:58 +01:00
|
|
|
libhidl-gen-utils \
|
2017-04-11 01:55:57 +02:00
|
|
|
libtinyxml2 \
|
2015-04-13 23:36:02 +02:00
|
|
|
libbase \
|
2012-06-01 08:21:46 +02:00
|
|
|
libcutils \
|
2016-02-17 21:21:52 +01:00
|
|
|
libutils \
|
2013-04-10 06:41:29 +02:00
|
|
|
liblog \
|
2017-11-03 19:52:33 +01:00
|
|
|
libselinux \
|
|
|
|
libz
|
2010-06-30 02:36:28 +02:00
|
|
|
|
2016-02-17 21:21:52 +01:00
|
|
|
LOCAL_HAL_STATIC_LIBRARIES := libhealthd
|
|
|
|
|
2016-05-24 02:43:41 +02:00
|
|
|
ifeq ($(AB_OTA_UPDATER),true)
|
|
|
|
LOCAL_CFLAGS += -DAB_OTA_UPDATER=1
|
|
|
|
endif
|
|
|
|
|
2015-03-10 19:56:56 +01:00
|
|
|
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
|
2009-03-04 04:28:42 +01:00
|
|
|
|
2016-03-09 23:58:16 +01:00
|
|
|
ifeq ($(BOARD_CACHEIMAGE_PARTITION_SIZE),)
|
2017-04-21 23:36:12 +02:00
|
|
|
LOCAL_REQUIRED_MODULES += recovery-persist recovery-refresh
|
2016-03-09 23:58:16 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
# recovery-persist (system partition dynamic executable run after /data mounts)
|
|
|
|
# ===============================
|
|
|
|
include $(CLEAR_VARS)
|
2016-10-22 02:46:13 +02:00
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
recovery-persist.cpp \
|
|
|
|
rotate_logs.cpp
|
2016-03-09 23:58:16 +01:00
|
|
|
LOCAL_MODULE := recovery-persist
|
|
|
|
LOCAL_SHARED_LIBRARIES := liblog libbase
|
2017-08-28 23:15:07 +02:00
|
|
|
LOCAL_CFLAGS := -Wall -Werror
|
2016-03-09 23:58:16 +01:00
|
|
|
LOCAL_INIT_RC := recovery-persist.rc
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
# recovery-refresh (system partition dynamic executable run at init)
|
|
|
|
# ===============================
|
|
|
|
include $(CLEAR_VARS)
|
2016-10-22 02:46:13 +02:00
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
recovery-refresh.cpp \
|
|
|
|
rotate_logs.cpp
|
2016-03-09 23:58:16 +01:00
|
|
|
LOCAL_MODULE := recovery-refresh
|
2016-10-22 02:46:13 +02:00
|
|
|
LOCAL_SHARED_LIBRARIES := liblog libbase
|
2017-08-28 23:15:07 +02:00
|
|
|
LOCAL_CFLAGS := -Wall -Werror
|
2016-03-09 23:58:16 +01:00
|
|
|
LOCAL_INIT_RC := recovery-refresh.rc
|
2009-03-04 04:28:42 +01:00
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
2016-03-03 20:43:47 +01:00
|
|
|
# libverifier (static library)
|
|
|
|
# ===============================
|
2013-10-09 19:14:35 +02:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := libverifier
|
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
asn1_decoder.cpp \
|
2017-03-18 17:24:11 +01:00
|
|
|
verifier.cpp
|
2017-01-17 06:16:58 +01:00
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
2017-09-29 23:39:33 +02:00
|
|
|
libotautil \
|
2017-01-17 06:16:58 +01:00
|
|
|
libcrypto_utils \
|
|
|
|
libcrypto \
|
|
|
|
libbase
|
2017-08-28 23:15:07 +02:00
|
|
|
LOCAL_CFLAGS := -Wall -Werror
|
2016-02-04 02:02:09 +01:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
2009-12-10 02:01:45 +01:00
|
|
|
|
2017-08-03 02:11:04 +02:00
|
|
|
# Wear default device
|
|
|
|
# ===============================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := wear_device.cpp
|
2017-08-28 23:15:07 +02:00
|
|
|
LOCAL_CFLAGS := -Wall -Werror
|
2017-08-03 02:11:04 +02:00
|
|
|
|
|
|
|
# Should match TARGET_RECOVERY_UI_LIB in BoardConfig.mk.
|
|
|
|
LOCAL_MODULE := librecovery_ui_wear
|
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
2017-06-13 01:08:33 +02:00
|
|
|
# vr headset default device
|
|
|
|
# ===============================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := vr_device.cpp
|
2017-08-28 23:15:07 +02:00
|
|
|
LOCAL_CFLAGS := -Wall -Werror
|
2017-06-13 01:08:33 +02:00
|
|
|
|
|
|
|
# should match TARGET_RECOVERY_UI_LIB set in BoardConfig.mk
|
|
|
|
LOCAL_MODULE := librecovery_ui_vr
|
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
2016-06-25 03:22:02 +02:00
|
|
|
include \
|
2016-11-09 00:46:07 +01:00
|
|
|
$(LOCAL_PATH)/boot_control/Android.mk \
|
2016-06-25 03:22:02 +02:00
|
|
|
$(LOCAL_PATH)/minui/Android.mk \
|
2013-10-09 19:14:35 +02:00
|
|
|
$(LOCAL_PATH)/tests/Android.mk \
|
2012-06-01 08:21:46 +02:00
|
|
|
$(LOCAL_PATH)/tools/Android.mk \
|
|
|
|
$(LOCAL_PATH)/updater/Android.mk \
|
2015-12-06 06:21:27 +01:00
|
|
|
$(LOCAL_PATH)/update_verifier/Android.mk \
|