Doug Zongker | ddd6a28 | 2009-06-09 12:22:33 -0700 | [diff] [blame] | 1 | ifneq ($(TARGET_SIMULATOR),true) |
| 2 | ifeq ($(TARGET_ARCH),arm) |
| 3 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 4 | LOCAL_PATH := $(call my-dir) |
| 5 | include $(CLEAR_VARS) |
| 6 | |
| 7 | commands_recovery_local_path := $(LOCAL_PATH) |
| 8 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 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 | |
Doug Zongker | ddd6a28 | 2009-06-09 12:22:33 -0700 | [diff] [blame] | 32 | LOCAL_STATIC_LIBRARIES := |
| 33 | ifeq ($(TARGET_RECOVERY_UI_LIB),) |
| 34 | LOCAL_SRC_FILES += default_recovery_ui.c |
| 35 | else |
| 36 | LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB) |
| 37 | endif |
| 38 | LOCAL_STATIC_LIBRARIES += libminzip libunz libamend libmtdutils libmincrypt |
Doug Zongker | 19faefa | 2009-03-27 17:06:24 -0700 | [diff] [blame] | 39 | LOCAL_STATIC_LIBRARIES += libminui libpixelflinger_static libpng libcutils |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 40 | LOCAL_STATIC_LIBRARIES += libstdc++ libc |
| 41 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 42 | include $(BUILD_EXECUTABLE) |
| 43 | |
Doug Zongker | ddd6a28 | 2009-06-09 12:22:33 -0700 | [diff] [blame] | 44 | include $(commands_recovery_local_path)/minui/Android.mk |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 45 | include $(commands_recovery_local_path)/amend/Android.mk |
| 46 | include $(commands_recovery_local_path)/minzip/Android.mk |
| 47 | include $(commands_recovery_local_path)/mtdutils/Android.mk |
| 48 | include $(commands_recovery_local_path)/tools/Android.mk |
| 49 | commands_recovery_local_path := |
Doug Zongker | c3885fa | 2009-06-11 17:05:58 -0700 | [diff] [blame^] | 50 | |
| 51 | endif # TARGET_ARCH == arm |
| 52 | endif # !TARGET_SIMULATOR |
| 53 | |