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 \ |
Oscar Montemayor | 0523156 | 2009-11-30 08:40:57 -0800 | [diff] [blame] | 12 | install.c \ |
| 13 | roots.c \ |
| 14 | ui.c \ |
| 15 | verifier.c \ |
Oscar Montemayor | 31f6ee8 | 2010-02-25 16:47:02 -0800 | [diff] [blame] | 16 | encryptedfs_provisioning.c |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 17 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 18 | LOCAL_MODULE := recovery |
| 19 | |
| 20 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 21 | |
Doug Zongker | e08991e | 2010-02-02 13:09:52 -0800 | [diff] [blame] | 22 | RECOVERY_API_VERSION := 3 |
Doug Zongker | fb2e3af | 2009-06-17 17:29:40 -0700 | [diff] [blame] | 23 | LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION) |
| 24 | |
Doug Zongker | 49c73a7 | 2010-06-29 17:36:28 -0700 | [diff] [blame] | 25 | LOCAL_STATIC_LIBRARIES := |
| 26 | |
| 27 | ifeq ($(TARGET_USERIMAGES_USE_EXT4), true) |
| 28 | LOCAL_CFLAGS += -DUSE_EXT4 |
| 29 | LOCAL_C_INCLUDES += system/extras/ext4_utils |
| 30 | LOCAL_STATIC_LIBRARIES += libext4_utils libz |
| 31 | endif |
| 32 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 33 | # This binary is in the recovery ramdisk, which is otherwise a copy of root. |
| 34 | # It gets copied there in config/Makefile. LOCAL_MODULE_TAGS suppresses |
| 35 | # a (redundant) copy of the binary in /system/bin for user builds. |
| 36 | # TODO: Build the ramdisk image in a more principled way. |
| 37 | |
| 38 | LOCAL_MODULE_TAGS := eng |
| 39 | |
Doug Zongker | ddd6a28 | 2009-06-09 12:22:33 -0700 | [diff] [blame] | 40 | ifeq ($(TARGET_RECOVERY_UI_LIB),) |
| 41 | LOCAL_SRC_FILES += default_recovery_ui.c |
| 42 | else |
| 43 | LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB) |
| 44 | endif |
Doug Zongker | cc8cd3f | 2010-09-20 12:16:13 -0700 | [diff] [blame] | 45 | LOCAL_STATIC_LIBRARIES += libext4_utils libz |
Doug Zongker | 608fa02 | 2009-07-15 18:10:28 -0700 | [diff] [blame] | 46 | LOCAL_STATIC_LIBRARIES += libminzip libunz libmtdutils libmincrypt |
Doug Zongker | 19faefa | 2009-03-27 17:06:24 -0700 | [diff] [blame] | 47 | LOCAL_STATIC_LIBRARIES += libminui libpixelflinger_static libpng libcutils |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 48 | LOCAL_STATIC_LIBRARIES += libstdc++ libc |
| 49 | |
Doug Zongker | cc8cd3f | 2010-09-20 12:16:13 -0700 | [diff] [blame] | 50 | LOCAL_C_INCLUDES += system/extras/ext4_utils |
| 51 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 52 | include $(BUILD_EXECUTABLE) |
| 53 | |
Doug Zongker | 73ae31c | 2009-12-09 17:01:45 -0800 | [diff] [blame] | 54 | |
| 55 | include $(CLEAR_VARS) |
| 56 | |
| 57 | LOCAL_SRC_FILES := verifier_test.c verifier.c |
| 58 | |
| 59 | LOCAL_MODULE := verifier_test |
| 60 | |
| 61 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 62 | |
| 63 | LOCAL_MODULE_TAGS := tests |
| 64 | |
| 65 | LOCAL_STATIC_LIBRARIES := libmincrypt libcutils libstdc++ libc |
| 66 | |
| 67 | include $(BUILD_EXECUTABLE) |
| 68 | |
| 69 | |
Doug Zongker | ddd6a28 | 2009-06-09 12:22:33 -0700 | [diff] [blame] | 70 | include $(commands_recovery_local_path)/minui/Android.mk |
Hristo Bojinov | db314d6 | 2010-08-02 10:29:49 -0700 | [diff] [blame] | 71 | include $(commands_recovery_local_path)/minelf/Android.mk |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 72 | include $(commands_recovery_local_path)/minzip/Android.mk |
| 73 | include $(commands_recovery_local_path)/mtdutils/Android.mk |
| 74 | include $(commands_recovery_local_path)/tools/Android.mk |
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 75 | include $(commands_recovery_local_path)/edify/Android.mk |
| 76 | include $(commands_recovery_local_path)/updater/Android.mk |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 77 | include $(commands_recovery_local_path)/applypatch/Android.mk |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 78 | commands_recovery_local_path := |
Doug Zongker | c3885fa | 2009-06-11 17:05:58 -0700 | [diff] [blame] | 79 | |
| 80 | endif # TARGET_ARCH == arm |
Oscar Montemayor | 0523156 | 2009-11-30 08:40:57 -0800 | [diff] [blame] | 81 | endif # !TARGET_SIMULATOR |
Doug Zongker | c3885fa | 2009-06-11 17:05:58 -0700 | [diff] [blame] | 82 | |