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) |
Koushik K. Dutta | 6060e5c | 2010-02-11 22:27:06 -0800 | [diff] [blame] | 8 | # LOCAL_CPP_EXTENSION := .c |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 9 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 10 | LOCAL_SRC_FILES := \ |
Koushik K. Dutta | 6060e5c | 2010-02-11 22:27:06 -0800 | [diff] [blame] | 11 | extendedcommands.c \ |
Koushik K. Dutta | 4c1eed2 | 2010-02-11 18:59:58 -0800 | [diff] [blame] | 12 | legacy.c \ |
Koushik K. Dutta | 6060e5c | 2010-02-11 22:27:06 -0800 | [diff] [blame] | 13 | commands.c \ |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 14 | recovery.c \ |
| 15 | bootloader.c \ |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 16 | firmware.c \ |
| 17 | install.c \ |
| 18 | roots.c \ |
| 19 | ui.c \ |
| 20 | verifier.c |
| 21 | |
| 22 | LOCAL_SRC_FILES += test_roots.c |
| 23 | |
| 24 | LOCAL_MODULE := recovery |
| 25 | |
| 26 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 27 | |
Doug Zongker | fb2e3af | 2009-06-17 17:29:40 -0700 | [diff] [blame] | 28 | RECOVERY_API_VERSION := 2 |
| 29 | LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION) |
| 30 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 31 | # This binary is in the recovery ramdisk, which is otherwise a copy of root. |
| 32 | # It gets copied there in config/Makefile. LOCAL_MODULE_TAGS suppresses |
| 33 | # a (redundant) copy of the binary in /system/bin for user builds. |
| 34 | # TODO: Build the ramdisk image in a more principled way. |
| 35 | |
| 36 | LOCAL_MODULE_TAGS := eng |
| 37 | |
Doug Zongker | ddd6a28 | 2009-06-09 12:22:33 -0700 | [diff] [blame] | 38 | LOCAL_STATIC_LIBRARIES := |
| 39 | ifeq ($(TARGET_RECOVERY_UI_LIB),) |
| 40 | LOCAL_SRC_FILES += default_recovery_ui.c |
| 41 | else |
| 42 | LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB) |
| 43 | endif |
Koushik K. Dutta | 1a7ee53 | 2010-02-21 17:52:30 -0800 | [diff] [blame^] | 44 | LOCAL_STATIC_LIBRARIES += libamend |
Doug Zongker | 608fa02 | 2009-07-15 18:10:28 -0700 | [diff] [blame] | 45 | LOCAL_STATIC_LIBRARIES += libminzip libunz libmtdutils libmincrypt |
Doug Zongker | 19faefa | 2009-03-27 17:06:24 -0700 | [diff] [blame] | 46 | LOCAL_STATIC_LIBRARIES += libminui libpixelflinger_static libpng libcutils |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 47 | LOCAL_STATIC_LIBRARIES += libstdc++ libc |
| 48 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 49 | include $(BUILD_EXECUTABLE) |
| 50 | |
Koushik K. Dutta | 4c1eed2 | 2010-02-11 18:59:58 -0800 | [diff] [blame] | 51 | include $(commands_recovery_local_path)/amend/Android.mk |
Koushik K. Dutta | 8ce0be4 | 2010-02-20 15:59:06 -0800 | [diff] [blame] | 52 | include $(commands_recovery_local_path)/nandroid/Android.mk |
Doug Zongker | ddd6a28 | 2009-06-09 12:22:33 -0700 | [diff] [blame] | 53 | include $(commands_recovery_local_path)/minui/Android.mk |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 54 | include $(commands_recovery_local_path)/minzip/Android.mk |
| 55 | include $(commands_recovery_local_path)/mtdutils/Android.mk |
| 56 | include $(commands_recovery_local_path)/tools/Android.mk |
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 57 | include $(commands_recovery_local_path)/edify/Android.mk |
| 58 | include $(commands_recovery_local_path)/updater/Android.mk |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 59 | commands_recovery_local_path := |
Doug Zongker | c3885fa | 2009-06-11 17:05:58 -0700 | [diff] [blame] | 60 | |
| 61 | endif # TARGET_ARCH == arm |
| 62 | endif # !TARGET_SIMULATOR |
| 63 | |