The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
| 4 | commands_recovery_local_path := $(LOCAL_PATH) |
| 5 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 6 | LOCAL_SRC_FILES := \ |
Doug Zongker | 28ce47c | 2011-10-28 10:33:05 -0700 | [diff] [blame] | 7 | recovery.cpp \ |
| 8 | bootloader.cpp \ |
| 9 | install.cpp \ |
| 10 | roots.cpp \ |
Doug Zongker | 32a0a47 | 2011-11-01 11:00:20 -0700 | [diff] [blame] | 11 | ui.cpp \ |
Doug Zongker | 211aebc | 2011-10-28 15:13:10 -0700 | [diff] [blame] | 12 | screen_ui.cpp \ |
Doug Zongker | 9270a20 | 2012-01-09 15:16:13 -0800 | [diff] [blame] | 13 | verifier.cpp \ |
| 14 | adb_install.cpp |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 15 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 16 | LOCAL_MODULE := recovery |
| 17 | |
| 18 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 19 | |
Doug Zongker | e08991e | 2010-02-02 13:09:52 -0800 | [diff] [blame] | 20 | RECOVERY_API_VERSION := 3 |
Doug Zongker | fb2e3af | 2009-06-17 17:29:40 -0700 | [diff] [blame] | 21 | LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION) |
| 22 | |
Doug Zongker | 49c73a7 | 2010-06-29 17:36:28 -0700 | [diff] [blame] | 23 | LOCAL_STATIC_LIBRARIES := |
| 24 | |
| 25 | ifeq ($(TARGET_USERIMAGES_USE_EXT4), true) |
| 26 | LOCAL_CFLAGS += -DUSE_EXT4 |
| 27 | LOCAL_C_INCLUDES += system/extras/ext4_utils |
Colin Cross | cde94f3 | 2012-04-24 18:23:27 -0700 | [diff] [blame] | 28 | LOCAL_STATIC_LIBRARIES += libext4_utils libsparse libz |
Doug Zongker | 49c73a7 | 2010-06-29 17:36:28 -0700 | [diff] [blame] | 29 | endif |
| 30 | |
Stephen Smalley | 1a11449 | 2012-01-13 07:59:51 -0500 | [diff] [blame] | 31 | ifeq ($(HAVE_SELINUX), true) |
| 32 | LOCAL_C_INCLUDES += external/libselinux/include |
| 33 | LOCAL_STATIC_LIBRARIES += libselinux |
| 34 | LOCAL_CFLAGS += -DHAVE_SELINUX |
| 35 | endif # HAVE_SELINUX |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 36 | |
| 37 | # This binary is in the recovery ramdisk, which is otherwise a copy of root. |
| 38 | # It gets copied there in config/Makefile. LOCAL_MODULE_TAGS suppresses |
| 39 | # a (redundant) copy of the binary in /system/bin for user builds. |
| 40 | # TODO: Build the ramdisk image in a more principled way. |
Doug Zongker | ddd6a28 | 2009-06-09 12:22:33 -0700 | [diff] [blame] | 41 | |
| 42 | LOCAL_MODULE_TAGS := eng |
| 43 | |
Doug Zongker | ddd6a28 | 2009-06-09 12:22:33 -0700 | [diff] [blame] | 44 | ifeq ($(TARGET_RECOVERY_UI_LIB),) |
Doug Zongker | daefc1d | 2011-10-31 09:34:15 -0700 | [diff] [blame] | 45 | LOCAL_SRC_FILES += default_device.cpp |
Doug Zongker | ddd6a28 | 2009-06-09 12:22:33 -0700 | [diff] [blame] | 46 | else |
| 47 | LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB) |
| 48 | endif |
Colin Cross | cde94f3 | 2012-04-24 18:23:27 -0700 | [diff] [blame] | 49 | LOCAL_STATIC_LIBRARIES += libext4_utils libsparse |
Elliott Hughes | 74a6279 | 2012-01-30 16:58:23 -0800 | [diff] [blame] | 50 | LOCAL_STATIC_LIBRARIES += libminzip libz libmtdutils libmincrypt libminadbd |
Doug Zongker | 19faefa | 2009-03-27 17:06:24 -0700 | [diff] [blame] | 51 | LOCAL_STATIC_LIBRARIES += libminui libpixelflinger_static libpng libcutils |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 52 | LOCAL_STATIC_LIBRARIES += libstdc++ libc |
| 53 | |
Stephen Smalley | 1a11449 | 2012-01-13 07:59:51 -0500 | [diff] [blame] | 54 | ifeq ($(HAVE_SELINUX),true) |
| 55 | LOCAL_C_INCLUDES += external/libselinux/include |
| 56 | LOCAL_STATIC_LIBRARIES += libselinux |
| 57 | LOCAL_CFLAGS += -DHAVE_SELINUX |
| 58 | endif # HAVE_SELINUX |
| 59 | |
Doug Zongker | cc8cd3f | 2010-09-20 12:16:13 -0700 | [diff] [blame] | 60 | LOCAL_C_INCLUDES += system/extras/ext4_utils |
| 61 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 62 | include $(BUILD_EXECUTABLE) |
| 63 | |
Doug Zongker | 73ae31c | 2009-12-09 17:01:45 -0800 | [diff] [blame] | 64 | |
| 65 | include $(CLEAR_VARS) |
| 66 | |
Doug Zongker | 32a0a47 | 2011-11-01 11:00:20 -0700 | [diff] [blame] | 67 | LOCAL_SRC_FILES := verifier_test.cpp verifier.cpp ui.cpp |
Doug Zongker | 73ae31c | 2009-12-09 17:01:45 -0800 | [diff] [blame] | 68 | |
Doug Zongker | daefc1d | 2011-10-31 09:34:15 -0700 | [diff] [blame] | 69 | LOCAL_MODULE := verifier_test |
Doug Zongker | 73ae31c | 2009-12-09 17:01:45 -0800 | [diff] [blame] | 70 | |
Doug Zongker | daefc1d | 2011-10-31 09:34:15 -0700 | [diff] [blame] | 71 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
Doug Zongker | 73ae31c | 2009-12-09 17:01:45 -0800 | [diff] [blame] | 72 | |
Doug Zongker | daefc1d | 2011-10-31 09:34:15 -0700 | [diff] [blame] | 73 | LOCAL_MODULE_TAGS := tests |
Doug Zongker | 73ae31c | 2009-12-09 17:01:45 -0800 | [diff] [blame] | 74 | |
Doug Zongker | 32a0a47 | 2011-11-01 11:00:20 -0700 | [diff] [blame] | 75 | LOCAL_STATIC_LIBRARIES := libmincrypt libminui libcutils libstdc++ libc |
Doug Zongker | 73ae31c | 2009-12-09 17:01:45 -0800 | [diff] [blame] | 76 | |
Doug Zongker | daefc1d | 2011-10-31 09:34:15 -0700 | [diff] [blame] | 77 | include $(BUILD_EXECUTABLE) |
Doug Zongker | 73ae31c | 2009-12-09 17:01:45 -0800 | [diff] [blame] | 78 | |
| 79 | |
Doug Zongker | ddd6a28 | 2009-06-09 12:22:33 -0700 | [diff] [blame] | 80 | include $(commands_recovery_local_path)/minui/Android.mk |
Hristo Bojinov | db314d6 | 2010-08-02 10:29:49 -0700 | [diff] [blame] | 81 | include $(commands_recovery_local_path)/minelf/Android.mk |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 82 | include $(commands_recovery_local_path)/minzip/Android.mk |
Doug Zongker | 9270a20 | 2012-01-09 15:16:13 -0800 | [diff] [blame] | 83 | include $(commands_recovery_local_path)/minadbd/Android.mk |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 84 | include $(commands_recovery_local_path)/mtdutils/Android.mk |
| 85 | include $(commands_recovery_local_path)/tools/Android.mk |
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 86 | include $(commands_recovery_local_path)/edify/Android.mk |
| 87 | include $(commands_recovery_local_path)/updater/Android.mk |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 88 | include $(commands_recovery_local_path)/applypatch/Android.mk |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 89 | commands_recovery_local_path := |