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