blob: e89b2258caf30fcf634460cdc89070a2cd9f3ca0 [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 \
12 firmware.c \
13 install.c \
14 roots.c \
15 ui.c \
16 verifier.c \
17 efs_migration.c
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080018
19LOCAL_SRC_FILES += test_roots.c
20
21LOCAL_MODULE := recovery
22
23LOCAL_FORCE_STATIC_EXECUTABLE := true
24
Doug Zongkerfb2e3af2009-06-17 17:29:40 -070025RECOVERY_API_VERSION := 2
26LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
27
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080028# This binary is in the recovery ramdisk, which is otherwise a copy of root.
29# It gets copied there in config/Makefile. LOCAL_MODULE_TAGS suppresses
30# a (redundant) copy of the binary in /system/bin for user builds.
31# TODO: Build the ramdisk image in a more principled way.
32
33LOCAL_MODULE_TAGS := eng
34
Doug Zongkerddd6a282009-06-09 12:22:33 -070035LOCAL_STATIC_LIBRARIES :=
36ifeq ($(TARGET_RECOVERY_UI_LIB),)
37 LOCAL_SRC_FILES += default_recovery_ui.c
38else
39 LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB)
40endif
Doug Zongker608fa022009-07-15 18:10:28 -070041LOCAL_STATIC_LIBRARIES += libminzip libunz libmtdutils libmincrypt
Doug Zongker19faefa2009-03-27 17:06:24 -070042LOCAL_STATIC_LIBRARIES += libminui libpixelflinger_static libpng libcutils
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080043LOCAL_STATIC_LIBRARIES += libstdc++ libc
44
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080045include $(BUILD_EXECUTABLE)
46
Doug Zongker73ae31c2009-12-09 17:01:45 -080047
48include $(CLEAR_VARS)
49
50LOCAL_SRC_FILES := verifier_test.c verifier.c
51
52LOCAL_MODULE := verifier_test
53
54LOCAL_FORCE_STATIC_EXECUTABLE := true
55
56LOCAL_MODULE_TAGS := tests
57
58LOCAL_STATIC_LIBRARIES := libmincrypt libcutils libstdc++ libc
59
60include $(BUILD_EXECUTABLE)
61
62
Doug Zongkerddd6a282009-06-09 12:22:33 -070063include $(commands_recovery_local_path)/minui/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080064include $(commands_recovery_local_path)/minzip/Android.mk
65include $(commands_recovery_local_path)/mtdutils/Android.mk
66include $(commands_recovery_local_path)/tools/Android.mk
Doug Zongker9931f7f2009-06-10 14:11:53 -070067include $(commands_recovery_local_path)/edify/Android.mk
68include $(commands_recovery_local_path)/updater/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080069commands_recovery_local_path :=
Doug Zongkerc3885fa2009-06-11 17:05:58 -070070
71endif # TARGET_ARCH == arm
Oscar Montemayor05231562009-11-30 08:40:57 -080072endif # !TARGET_SIMULATOR
Doug Zongkerc3885fa2009-06-11 17:05:58 -070073