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)
|
|
|
|
|
2012-06-01 08:21:46 +02:00
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
2009-03-04 04:28:42 +01:00
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
2011-10-28 19:33:05 +02:00
|
|
|
recovery.cpp \
|
|
|
|
bootloader.cpp \
|
|
|
|
install.cpp \
|
|
|
|
roots.cpp \
|
2011-11-01 19:00:20 +01:00
|
|
|
ui.cpp \
|
2011-10-29 00:13:10 +02:00
|
|
|
screen_ui.cpp \
|
2012-01-10 00:16:13 +01:00
|
|
|
verifier.cpp \
|
|
|
|
adb_install.cpp
|
2009-03-04 04:28:42 +01:00
|
|
|
|
|
|
|
LOCAL_MODULE := recovery
|
|
|
|
|
|
|
|
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
|
|
|
|
2010-02-02 22:09:52 +01:00
|
|
|
RECOVERY_API_VERSION := 3
|
2013-02-13 21:59:35 +01:00
|
|
|
RECOVERY_FSTAB_VERSION := 2
|
2009-06-18 02:29:40 +02:00
|
|
|
LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
|
|
|
|
|
2012-06-01 08:21:46 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
|
|
libext4_utils_static \
|
2012-07-24 04:14:30 +02:00
|
|
|
libsparse_static \
|
2012-06-01 08:21:46 +02:00
|
|
|
libminzip \
|
|
|
|
libz \
|
|
|
|
libmtdutils \
|
|
|
|
libmincrypt \
|
|
|
|
libminadbd \
|
|
|
|
libminui \
|
|
|
|
libpixelflinger_static \
|
|
|
|
libpng \
|
2013-02-13 21:59:35 +01:00
|
|
|
libfs_mgr \
|
2012-06-01 08:21:46 +02:00
|
|
|
libcutils \
|
2013-04-10 06:41:29 +02:00
|
|
|
liblog \
|
2012-10-16 19:47:27 +02:00
|
|
|
libselinux \
|
2012-06-01 08:21:46 +02:00
|
|
|
libstdc++ \
|
2012-08-24 00:20:16 +02:00
|
|
|
libm \
|
2012-06-01 08:21:46 +02:00
|
|
|
libc
|
2010-06-30 02:36:28 +02:00
|
|
|
|
|
|
|
ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
|
2012-06-01 08:21:46 +02:00
|
|
|
LOCAL_CFLAGS += -DUSE_EXT4
|
|
|
|
LOCAL_C_INCLUDES += system/extras/ext4_utils
|
|
|
|
LOCAL_STATIC_LIBRARIES += libext4_utils_static libz
|
2010-06-30 02:36:28 +02:00
|
|
|
endif
|
|
|
|
|
2009-03-04 04:28:42 +01:00
|
|
|
# This binary is in the recovery ramdisk, which is otherwise a copy of root.
|
|
|
|
# It gets copied there in config/Makefile. LOCAL_MODULE_TAGS suppresses
|
|
|
|
# a (redundant) copy of the binary in /system/bin for user builds.
|
|
|
|
# TODO: Build the ramdisk image in a more principled way.
|
|
|
|
LOCAL_MODULE_TAGS := eng
|
|
|
|
|
2009-06-09 21:22:33 +02:00
|
|
|
ifeq ($(TARGET_RECOVERY_UI_LIB),)
|
2011-10-31 17:34:15 +01:00
|
|
|
LOCAL_SRC_FILES += default_device.cpp
|
2009-06-09 21:22:33 +02:00
|
|
|
else
|
|
|
|
LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB)
|
|
|
|
endif
|
2009-03-04 04:28:42 +01:00
|
|
|
|
2010-09-20 21:16:13 +02:00
|
|
|
LOCAL_C_INCLUDES += system/extras/ext4_utils
|
|
|
|
|
2009-03-04 04:28:42 +01:00
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
2009-12-10 02:01:45 +01:00
|
|
|
|
|
|
|
|
2012-06-01 08:21:46 +02:00
|
|
|
include $(CLEAR_VARS)
|
2011-10-31 17:34:15 +01:00
|
|
|
LOCAL_MODULE := verifier_test
|
|
|
|
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
2012-06-01 08:21:46 +02:00
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
verifier_test.cpp \
|
|
|
|
verifier.cpp \
|
|
|
|
ui.cpp
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
|
|
libmincrypt \
|
|
|
|
libminui \
|
|
|
|
libcutils \
|
|
|
|
libstdc++ \
|
|
|
|
libc
|
2011-10-31 17:34:15 +01:00
|
|
|
include $(BUILD_EXECUTABLE)
|
2009-12-10 02:01:45 +01:00
|
|
|
|
|
|
|
|
2012-06-01 08:21:46 +02:00
|
|
|
include $(LOCAL_PATH)/minui/Android.mk \
|
|
|
|
$(LOCAL_PATH)/minelf/Android.mk \
|
|
|
|
$(LOCAL_PATH)/minzip/Android.mk \
|
|
|
|
$(LOCAL_PATH)/minadbd/Android.mk \
|
|
|
|
$(LOCAL_PATH)/mtdutils/Android.mk \
|
|
|
|
$(LOCAL_PATH)/tools/Android.mk \
|
|
|
|
$(LOCAL_PATH)/edify/Android.mk \
|
|
|
|
$(LOCAL_PATH)/updater/Android.mk \
|
|
|
|
$(LOCAL_PATH)/applypatch/Android.mk
|