blob: a94ecc668903f5a2d03e7afc918f81757c2cc74e [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 Zongker10e418d2011-10-28 10:33:05 -07007 recovery.cpp \
8 bootloader.cpp \
9 install.cpp \
10 roots.cpp \
Doug Zongkera4e88e42011-11-01 11:00:20 -070011 ui.cpp \
Doug Zongker74406302011-10-28 15:13:10 -070012 screen_ui.cpp \
Doug Zongker10e418d2011-10-28 10:33:05 -070013 verifier.cpp
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080014
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080015LOCAL_MODULE := recovery
16
17LOCAL_FORCE_STATIC_EXECUTABLE := true
18
Doug Zongkere08991e2010-02-02 13:09:52 -080019RECOVERY_API_VERSION := 3
Doug Zongkerfb2e3af2009-06-17 17:29:40 -070020LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
21
Doug Zongker49c73a72010-06-29 17:36:28 -070022LOCAL_STATIC_LIBRARIES :=
23
24ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
25LOCAL_CFLAGS += -DUSE_EXT4
26LOCAL_C_INCLUDES += system/extras/ext4_utils
27LOCAL_STATIC_LIBRARIES += libext4_utils libz
28endif
29
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080030# This binary is in the recovery ramdisk, which is otherwise a copy of root.
31# It gets copied there in config/Makefile. LOCAL_MODULE_TAGS suppresses
32# a (redundant) copy of the binary in /system/bin for user builds.
33# TODO: Build the ramdisk image in a more principled way.
34
35LOCAL_MODULE_TAGS := eng
36
Doug Zongkerddd6a282009-06-09 12:22:33 -070037ifeq ($(TARGET_RECOVERY_UI_LIB),)
Doug Zongker7d0542f2011-10-31 09:34:15 -070038 LOCAL_SRC_FILES += default_device.cpp
Doug Zongkerddd6a282009-06-09 12:22:33 -070039else
40 LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB)
41endif
Doug Zongkercc8cd3f2010-09-20 12:16:13 -070042LOCAL_STATIC_LIBRARIES += libext4_utils libz
Doug Zongker608fa022009-07-15 18:10:28 -070043LOCAL_STATIC_LIBRARIES += libminzip libunz libmtdutils libmincrypt
Doug Zongker19faefa2009-03-27 17:06:24 -070044LOCAL_STATIC_LIBRARIES += libminui libpixelflinger_static libpng libcutils
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080045LOCAL_STATIC_LIBRARIES += libstdc++ libc
46
Doug Zongkercc8cd3f2010-09-20 12:16:13 -070047LOCAL_C_INCLUDES += system/extras/ext4_utils
48
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080049include $(BUILD_EXECUTABLE)
50
Doug Zongker73ae31c2009-12-09 17:01:45 -080051
52include $(CLEAR_VARS)
53
Doug Zongkerd538eb72011-11-01 12:42:30 -070054LOCAL_SRC_FILES := verifier_test.cpp verifier.cpp ui.cpp
Doug Zongker73ae31c2009-12-09 17:01:45 -080055
56LOCAL_MODULE := verifier_test
57
58LOCAL_FORCE_STATIC_EXECUTABLE := true
59
60LOCAL_MODULE_TAGS := tests
61
Doug Zongkerd538eb72011-11-01 12:42:30 -070062LOCAL_STATIC_LIBRARIES := libmincrypt libminui libcutils libstdc++ libc
Doug Zongker73ae31c2009-12-09 17:01:45 -080063
64include $(BUILD_EXECUTABLE)
65
66
Doug Zongkerddd6a282009-06-09 12:22:33 -070067include $(commands_recovery_local_path)/minui/Android.mk
Hristo Bojinovdb314d62010-08-02 10:29:49 -070068include $(commands_recovery_local_path)/minelf/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080069include $(commands_recovery_local_path)/minzip/Android.mk
70include $(commands_recovery_local_path)/mtdutils/Android.mk
71include $(commands_recovery_local_path)/tools/Android.mk
Doug Zongker9931f7f2009-06-10 14:11:53 -070072include $(commands_recovery_local_path)/edify/Android.mk
73include $(commands_recovery_local_path)/updater/Android.mk
Doug Zongker512536a2010-02-17 16:11:44 -080074include $(commands_recovery_local_path)/applypatch/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080075commands_recovery_local_path :=