blob: b085568a4224077505eac057496aae7013f1d713 [file] [log] [blame]
The Android Open Source Project23580ca2008-10-21 07:00:00 -07001LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
4commands_recovery_local_path := $(LOCAL_PATH)
5
6ifneq ($(TARGET_SIMULATOR),true)
7
8LOCAL_SRC_FILES := \
9 recovery.c \
10 bootloader.c \
11 commands.c \
12 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
24# This binary is in the recovery ramdisk, which is otherwise a copy of root.
25# It gets copied there in config/Makefile. LOCAL_MODULE_TAGS suppresses
26# a (redundant) copy of the binary in /system/bin for user builds.
27# TODO: Build the ramdisk image in a more principled way.
28
29LOCAL_MODULE_TAGS := eng
30
31LOCAL_STATIC_LIBRARIES := libminzip libunz libamend libmtdutils libmincrypt
32LOCAL_STATIC_LIBRARIES += libminui libpixelflinger_static libcutils
33LOCAL_STATIC_LIBRARIES += libstdc++ libc
34
35# Specify a C-includable file containing the OTA public keys.
36# This is built in config/Makefile.
37# *** THIS IS A TOTAL HACK; EXECUTABLES MUST NOT CHANGE BETWEEN DIFFERENT
38# PRODUCTS/BUILD TYPES. ***
39# TODO: make recovery read the keys from an external file.
40RECOVERY_INSTALL_OTA_KEYS_INC := \
41 $(call intermediates-dir-for,PACKAGING,ota_keys_inc)/keys.inc
42# Let install.c say #include "keys.inc"
43LOCAL_C_INCLUDES += $(dir $(RECOVERY_INSTALL_OTA_KEYS_INC))
44
45include $(BUILD_EXECUTABLE)
46
47# Depend on the generated keys.inc containing the OTA public keys.
48$(intermediates)/install.o: $(RECOVERY_INSTALL_OTA_KEYS_INC)
49
50include $(commands_recovery_local_path)/minui/Android.mk
51
52endif # !TARGET_SIMULATOR
53
54include $(commands_recovery_local_path)/amend/Android.mk
55include $(commands_recovery_local_path)/minzip/Android.mk
56include $(commands_recovery_local_path)/mtdutils/Android.mk
57commands_recovery_local_path :=