blob: 5f74064665094f7b50ddc3bdfe512dbf82ee06a4 [file] [log] [blame]
Doug Zongkerddd6a282009-06-09 12:22:33 -07001ifneq ($(TARGET_SIMULATOR),true)
2ifeq ($(TARGET_ARCH),arm)
3
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -08004LOCAL_PATH := $(call my-dir)
5include $(CLEAR_VARS)
6
7commands_recovery_local_path := $(LOCAL_PATH)
8
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -08009LOCAL_SRC_FILES := \
Oscar Montemayor05231562009-11-30 08:40:57 -080010 recovery.c \
11 bootloader.c \
Oscar Montemayor05231562009-11-30 08:40:57 -080012 install.c \
13 roots.c \
14 ui.c \
15 verifier.c \
16 efs_migration.c
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080017
18LOCAL_SRC_FILES += test_roots.c
19
20LOCAL_MODULE := recovery
21
22LOCAL_FORCE_STATIC_EXECUTABLE := true
23
Doug Zongkere08991e2010-02-02 13:09:52 -080024RECOVERY_API_VERSION := 3
Doug Zongkerfb2e3af2009-06-17 17:29:40 -070025LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
26
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080027# This binary is in the recovery ramdisk, which is otherwise a copy of root.
28# It gets copied there in config/Makefile. LOCAL_MODULE_TAGS suppresses
29# a (redundant) copy of the binary in /system/bin for user builds.
30# TODO: Build the ramdisk image in a more principled way.
31
32LOCAL_MODULE_TAGS := eng
33
Doug Zongkerddd6a282009-06-09 12:22:33 -070034LOCAL_STATIC_LIBRARIES :=
35ifeq ($(TARGET_RECOVERY_UI_LIB),)
36 LOCAL_SRC_FILES += default_recovery_ui.c
37else
38 LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB)
39endif
Doug Zongker608fa022009-07-15 18:10:28 -070040LOCAL_STATIC_LIBRARIES += libminzip libunz libmtdutils libmincrypt
Doug Zongker19faefa2009-03-27 17:06:24 -070041LOCAL_STATIC_LIBRARIES += libminui libpixelflinger_static libpng libcutils
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080042LOCAL_STATIC_LIBRARIES += libstdc++ libc
43
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080044include $(BUILD_EXECUTABLE)
45
Doug Zongker73ae31c2009-12-09 17:01:45 -080046
47include $(CLEAR_VARS)
48
49LOCAL_SRC_FILES := verifier_test.c verifier.c
50
51LOCAL_MODULE := verifier_test
52
53LOCAL_FORCE_STATIC_EXECUTABLE := true
54
55LOCAL_MODULE_TAGS := tests
56
57LOCAL_STATIC_LIBRARIES := libmincrypt libcutils libstdc++ libc
58
59include $(BUILD_EXECUTABLE)
60
61
Doug Zongkerddd6a282009-06-09 12:22:33 -070062include $(commands_recovery_local_path)/minui/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080063include $(commands_recovery_local_path)/minzip/Android.mk
64include $(commands_recovery_local_path)/mtdutils/Android.mk
65include $(commands_recovery_local_path)/tools/Android.mk
Doug Zongker9931f7f2009-06-10 14:11:53 -070066include $(commands_recovery_local_path)/edify/Android.mk
67include $(commands_recovery_local_path)/updater/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080068commands_recovery_local_path :=
Doug Zongkerc3885fa2009-06-11 17:05:58 -070069
70endif # TARGET_ARCH == arm
Oscar Montemayor05231562009-11-30 08:40:57 -080071endif # !TARGET_SIMULATOR
Doug Zongkerc3885fa2009-06-11 17:05:58 -070072