blob: 751ed7243a473082679a12fae8f9124a14a7923d [file] [log] [blame]
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -08001LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
4commands_recovery_local_path := $(LOCAL_PATH)
5
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -08006LOCAL_SRC_FILES := \
Doug Zongker28ce47c2011-10-28 10:33:05 -07007 recovery.cpp \
8 bootloader.cpp \
9 install.cpp \
10 roots.cpp \
Doug Zongker32a0a472011-11-01 11:00:20 -070011 ui.cpp \
Doug Zongker211aebc2011-10-28 15:13:10 -070012 screen_ui.cpp \
Doug Zongker9270a202012-01-09 15:16:13 -080013 verifier.cpp \
14 adb_install.cpp
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080015
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080016LOCAL_MODULE := recovery
17
18LOCAL_FORCE_STATIC_EXECUTABLE := true
19
Doug Zongkere08991e2010-02-02 13:09:52 -080020RECOVERY_API_VERSION := 3
Doug Zongkerfb2e3af2009-06-17 17:29:40 -070021LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
22
Doug Zongker49c73a72010-06-29 17:36:28 -070023LOCAL_STATIC_LIBRARIES :=
24
25ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
26LOCAL_CFLAGS += -DUSE_EXT4
27LOCAL_C_INCLUDES += system/extras/ext4_utils
Colin Crosscde94f32012-04-24 18:23:27 -070028LOCAL_STATIC_LIBRARIES += libext4_utils libsparse libz
Doug Zongker49c73a72010-06-29 17:36:28 -070029endif
30
Stephen Smalley1a114492012-01-13 07:59:51 -050031ifeq ($(HAVE_SELINUX), true)
32LOCAL_C_INCLUDES += external/libselinux/include
33LOCAL_STATIC_LIBRARIES += libselinux
34LOCAL_CFLAGS += -DHAVE_SELINUX
35endif # HAVE_SELINUX
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080036
37# This binary is in the recovery ramdisk, which is otherwise a copy of root.
38# It gets copied there in config/Makefile. LOCAL_MODULE_TAGS suppresses
39# a (redundant) copy of the binary in /system/bin for user builds.
40# TODO: Build the ramdisk image in a more principled way.
Doug Zongkerddd6a282009-06-09 12:22:33 -070041
42LOCAL_MODULE_TAGS := eng
43
Doug Zongkerddd6a282009-06-09 12:22:33 -070044ifeq ($(TARGET_RECOVERY_UI_LIB),)
Doug Zongkerdaefc1d2011-10-31 09:34:15 -070045 LOCAL_SRC_FILES += default_device.cpp
Doug Zongkerddd6a282009-06-09 12:22:33 -070046else
47 LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB)
48endif
Colin Crosscde94f32012-04-24 18:23:27 -070049LOCAL_STATIC_LIBRARIES += libext4_utils libsparse
Elliott Hughes74a62792012-01-30 16:58:23 -080050LOCAL_STATIC_LIBRARIES += libminzip libz libmtdutils libmincrypt libminadbd
Doug Zongker19faefa2009-03-27 17:06:24 -070051LOCAL_STATIC_LIBRARIES += libminui libpixelflinger_static libpng libcutils
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080052LOCAL_STATIC_LIBRARIES += libstdc++ libc
53
Stephen Smalley1a114492012-01-13 07:59:51 -050054ifeq ($(HAVE_SELINUX),true)
55LOCAL_C_INCLUDES += external/libselinux/include
56LOCAL_STATIC_LIBRARIES += libselinux
57LOCAL_CFLAGS += -DHAVE_SELINUX
58endif # HAVE_SELINUX
59
Doug Zongkercc8cd3f2010-09-20 12:16:13 -070060LOCAL_C_INCLUDES += system/extras/ext4_utils
61
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080062include $(BUILD_EXECUTABLE)
63
Doug Zongker73ae31c2009-12-09 17:01:45 -080064
65include $(CLEAR_VARS)
66
Doug Zongker32a0a472011-11-01 11:00:20 -070067LOCAL_SRC_FILES := verifier_test.cpp verifier.cpp ui.cpp
Doug Zongker73ae31c2009-12-09 17:01:45 -080068
Doug Zongkerdaefc1d2011-10-31 09:34:15 -070069LOCAL_MODULE := verifier_test
Doug Zongker73ae31c2009-12-09 17:01:45 -080070
Doug Zongkerdaefc1d2011-10-31 09:34:15 -070071LOCAL_FORCE_STATIC_EXECUTABLE := true
Doug Zongker73ae31c2009-12-09 17:01:45 -080072
Doug Zongkerdaefc1d2011-10-31 09:34:15 -070073LOCAL_MODULE_TAGS := tests
Doug Zongker73ae31c2009-12-09 17:01:45 -080074
Doug Zongker32a0a472011-11-01 11:00:20 -070075LOCAL_STATIC_LIBRARIES := libmincrypt libminui libcutils libstdc++ libc
Doug Zongker73ae31c2009-12-09 17:01:45 -080076
Doug Zongkerdaefc1d2011-10-31 09:34:15 -070077include $(BUILD_EXECUTABLE)
Doug Zongker73ae31c2009-12-09 17:01:45 -080078
79
Doug Zongkerddd6a282009-06-09 12:22:33 -070080include $(commands_recovery_local_path)/minui/Android.mk
Hristo Bojinovdb314d62010-08-02 10:29:49 -070081include $(commands_recovery_local_path)/minelf/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080082include $(commands_recovery_local_path)/minzip/Android.mk
Doug Zongker9270a202012-01-09 15:16:13 -080083include $(commands_recovery_local_path)/minadbd/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080084include $(commands_recovery_local_path)/mtdutils/Android.mk
85include $(commands_recovery_local_path)/tools/Android.mk
Doug Zongker9931f7f2009-06-10 14:11:53 -070086include $(commands_recovery_local_path)/edify/Android.mk
87include $(commands_recovery_local_path)/updater/Android.mk
Doug Zongker512536a2010-02-17 16:11:44 -080088include $(commands_recovery_local_path)/applypatch/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080089commands_recovery_local_path :=