blob: deec80ae4ce4d391e986fc63da609aa658df5844 [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 := \
10 recovery.c \
11 bootloader.c \
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080012 firmware.c \
13 install.c \
14 roots.c \
15 ui.c \
16 verifier.c
17
18LOCAL_SRC_FILES += test_roots.c
19
20LOCAL_MODULE := recovery
21
22LOCAL_FORCE_STATIC_EXECUTABLE := true
23
Doug Zongkerfb2e3af2009-06-17 17:29:40 -070024RECOVERY_API_VERSION := 2
25LOCAL_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 Zongkerddd6a282009-06-09 12:22:33 -070046include $(commands_recovery_local_path)/minui/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080047include $(commands_recovery_local_path)/minzip/Android.mk
48include $(commands_recovery_local_path)/mtdutils/Android.mk
49include $(commands_recovery_local_path)/tools/Android.mk
Doug Zongker9931f7f2009-06-10 14:11:53 -070050include $(commands_recovery_local_path)/edify/Android.mk
51include $(commands_recovery_local_path)/updater/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080052commands_recovery_local_path :=
Doug Zongkerc3885fa2009-06-11 17:05:58 -070053
54endif # TARGET_ARCH == arm
55endif # !TARGET_SIMULATOR
56