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 := \ |
Oscar Montemayor | 0523156 | 2009-11-30 08:40:57 -0800 | [diff] [blame] | 10 | recovery.c \ |
| 11 | bootloader.c \ |
| 12 | firmware.c \ |
| 13 | install.c \ |
| 14 | roots.c \ |
| 15 | ui.c \ |
| 16 | verifier.c \ |
| 17 | efs_migration.c |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 18 | |
| 19 | LOCAL_SRC_FILES += test_roots.c |
| 20 | |
| 21 | LOCAL_MODULE := recovery |
| 22 | |
| 23 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 24 | |
Doug Zongker | fb2e3af | 2009-06-17 17:29:40 -0700 | [diff] [blame] | 25 | RECOVERY_API_VERSION := 2 |
| 26 | LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION) |
| 27 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 28 | # 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 | |
| 33 | LOCAL_MODULE_TAGS := eng |
| 34 | |
Doug Zongker | ddd6a28 | 2009-06-09 12:22:33 -0700 | [diff] [blame] | 35 | LOCAL_STATIC_LIBRARIES := |
| 36 | ifeq ($(TARGET_RECOVERY_UI_LIB),) |
| 37 | LOCAL_SRC_FILES += default_recovery_ui.c |
| 38 | else |
| 39 | LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB) |
| 40 | endif |
Doug Zongker | 608fa02 | 2009-07-15 18:10:28 -0700 | [diff] [blame] | 41 | LOCAL_STATIC_LIBRARIES += libminzip libunz libmtdutils libmincrypt |
Doug Zongker | 19faefa | 2009-03-27 17:06:24 -0700 | [diff] [blame] | 42 | LOCAL_STATIC_LIBRARIES += libminui libpixelflinger_static libpng libcutils |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 43 | LOCAL_STATIC_LIBRARIES += libstdc++ libc |
| 44 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 45 | include $(BUILD_EXECUTABLE) |
| 46 | |
Doug Zongker | 73ae31c | 2009-12-09 17:01:45 -0800 | [diff] [blame] | 47 | |
| 48 | include $(CLEAR_VARS) |
| 49 | |
| 50 | LOCAL_SRC_FILES := verifier_test.c verifier.c |
| 51 | |
| 52 | LOCAL_MODULE := verifier_test |
| 53 | |
| 54 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 55 | |
| 56 | LOCAL_MODULE_TAGS := tests |
| 57 | |
| 58 | LOCAL_STATIC_LIBRARIES := libmincrypt libcutils libstdc++ libc |
| 59 | |
| 60 | include $(BUILD_EXECUTABLE) |
| 61 | |
| 62 | |
Doug Zongker | ddd6a28 | 2009-06-09 12:22:33 -0700 | [diff] [blame] | 63 | include $(commands_recovery_local_path)/minui/Android.mk |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 64 | include $(commands_recovery_local_path)/minzip/Android.mk |
| 65 | include $(commands_recovery_local_path)/mtdutils/Android.mk |
| 66 | include $(commands_recovery_local_path)/tools/Android.mk |
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 67 | include $(commands_recovery_local_path)/edify/Android.mk |
| 68 | include $(commands_recovery_local_path)/updater/Android.mk |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 69 | commands_recovery_local_path := |
Doug Zongker | c3885fa | 2009-06-11 17:05:58 -0700 | [diff] [blame] | 70 | |
| 71 | endif # TARGET_ARCH == arm |
Oscar Montemayor | 0523156 | 2009-11-30 08:40:57 -0800 | [diff] [blame] | 72 | endif # !TARGET_SIMULATOR |
Doug Zongker | c3885fa | 2009-06-11 17:05:58 -0700 | [diff] [blame] | 73 | |