blob: 0367fef7085d4190fa74c97ae547d1d0cac9b256 [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 \
12 commands.c \
13 firmware.c \
14 install.c \
15 roots.c \
16 ui.c \
17 verifier.c
18
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
35LOCAL_STATIC_LIBRARIES := libminzip libunz libamend libmtdutils libmincrypt
Doug Zongker58bde312009-03-27 13:25:30 -070036LOCAL_STATIC_LIBRARIES += libminui libpixelflinger_static libpng libcutils
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080037LOCAL_STATIC_LIBRARIES += libstdc++ libc
38
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080039include $(BUILD_EXECUTABLE)
40
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080041include $(commands_recovery_local_path)/minui/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080042include $(commands_recovery_local_path)/amend/Android.mk
43include $(commands_recovery_local_path)/minzip/Android.mk
44include $(commands_recovery_local_path)/mtdutils/Android.mk
45include $(commands_recovery_local_path)/tools/Android.mk
Doug Zongker9931f7f2009-06-10 14:11:53 -070046include $(commands_recovery_local_path)/edify/Android.mk
47include $(commands_recovery_local_path)/updater/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080048commands_recovery_local_path :=
Doug Zongker9dbc0272009-06-11 17:32:55 -070049
50endif # TARGET_ARCH == arm
51endif # !TARGET_SIMULATOR
52