blob: 282862fc95942cb3650c801d11257bd0fd016337 [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 := \
Oscar Montemayor05231562009-11-30 08:40:57 -08007 recovery.c \
8 bootloader.c \
Oscar Montemayor05231562009-11-30 08:40:57 -08009 install.c \
10 roots.c \
11 ui.c \
Doug Zongker540d57f2011-01-18 13:36:58 -080012 verifier.c
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080013
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080014LOCAL_MODULE := recovery
15
16LOCAL_FORCE_STATIC_EXECUTABLE := true
17
Doug Zongkere08991e2010-02-02 13:09:52 -080018RECOVERY_API_VERSION := 3
Doug Zongkerfb2e3af2009-06-17 17:29:40 -070019LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
20
Doug Zongker49c73a72010-06-29 17:36:28 -070021LOCAL_STATIC_LIBRARIES :=
22
23ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
24LOCAL_CFLAGS += -DUSE_EXT4
25LOCAL_C_INCLUDES += system/extras/ext4_utils
26LOCAL_STATIC_LIBRARIES += libext4_utils libz
27endif
28
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080029# This binary is in the recovery ramdisk, which is otherwise a copy of root.
30# It gets copied there in config/Makefile. LOCAL_MODULE_TAGS suppresses
31# a (redundant) copy of the binary in /system/bin for user builds.
32# TODO: Build the ramdisk image in a more principled way.
33
34LOCAL_MODULE_TAGS := eng
35
Doug Zongkerddd6a282009-06-09 12:22:33 -070036ifeq ($(TARGET_RECOVERY_UI_LIB),)
37 LOCAL_SRC_FILES += default_recovery_ui.c
38else
39 LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB)
40endif
Doug Zongkercc8cd3f2010-09-20 12:16:13 -070041LOCAL_STATIC_LIBRARIES += libext4_utils libz
Doug Zongker608fa022009-07-15 18:10:28 -070042LOCAL_STATIC_LIBRARIES += libminzip libunz libmtdutils libmincrypt
Doug Zongker19faefa2009-03-27 17:06:24 -070043LOCAL_STATIC_LIBRARIES += libminui libpixelflinger_static libpng libcutils
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080044LOCAL_STATIC_LIBRARIES += libstdc++ libc
45
Doug Zongkercc8cd3f2010-09-20 12:16:13 -070046LOCAL_C_INCLUDES += system/extras/ext4_utils
47
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080048include $(BUILD_EXECUTABLE)
49
Doug Zongker73ae31c2009-12-09 17:01:45 -080050
51include $(CLEAR_VARS)
52
53LOCAL_SRC_FILES := verifier_test.c verifier.c
54
55LOCAL_MODULE := verifier_test
56
57LOCAL_FORCE_STATIC_EXECUTABLE := true
58
59LOCAL_MODULE_TAGS := tests
60
61LOCAL_STATIC_LIBRARIES := libmincrypt libcutils libstdc++ libc
62
63include $(BUILD_EXECUTABLE)
64
65
Doug Zongkerddd6a282009-06-09 12:22:33 -070066include $(commands_recovery_local_path)/minui/Android.mk
Hristo Bojinovdb314d62010-08-02 10:29:49 -070067include $(commands_recovery_local_path)/minelf/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080068include $(commands_recovery_local_path)/minzip/Android.mk
69include $(commands_recovery_local_path)/mtdutils/Android.mk
70include $(commands_recovery_local_path)/tools/Android.mk
Doug Zongker9931f7f2009-06-10 14:11:53 -070071include $(commands_recovery_local_path)/edify/Android.mk
72include $(commands_recovery_local_path)/updater/Android.mk
Doug Zongker512536a2010-02-17 16:11:44 -080073include $(commands_recovery_local_path)/applypatch/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080074commands_recovery_local_path :=