blob: ecf26401f880d3fdad8337ef2bb5f65c9338cc8b [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
6ifneq ($(TARGET_SIMULATOR),true)
7ifeq ($(TARGET_ARCH),arm)
8
9LOCAL_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 Zongker64893cc2009-07-14 16:31:56 -070034LOCAL_STATIC_LIBRARIES := libminzip libunz libmtdutils libmincrypt
Doug Zongker58bde312009-03-27 13:25:30 -070035LOCAL_STATIC_LIBRARIES += libminui libpixelflinger_static libpng libcutils
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080036LOCAL_STATIC_LIBRARIES += libstdc++ libc
37
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080038include $(BUILD_EXECUTABLE)
39
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080040include $(commands_recovery_local_path)/minui/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080041include $(commands_recovery_local_path)/minzip/Android.mk
42include $(commands_recovery_local_path)/mtdutils/Android.mk
43include $(commands_recovery_local_path)/tools/Android.mk
Doug Zongker9931f7f2009-06-10 14:11:53 -070044include $(commands_recovery_local_path)/edify/Android.mk
45include $(commands_recovery_local_path)/updater/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080046commands_recovery_local_path :=
Doug Zongker9dbc0272009-06-11 17:32:55 -070047
48endif # TARGET_ARCH == arm
49endif # !TARGET_SIMULATOR
50