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 | |
| 6 | ifneq ($(TARGET_SIMULATOR),true) |
| 7 | ifeq ($(TARGET_ARCH),arm) |
| 8 | |
| 9 | LOCAL_SRC_FILES := \ |
| 10 | recovery.c \ |
| 11 | bootloader.c \ |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 12 | firmware.c \ |
| 13 | install.c \ |
| 14 | roots.c \ |
| 15 | ui.c \ |
| 16 | verifier.c |
| 17 | |
| 18 | LOCAL_SRC_FILES += test_roots.c |
| 19 | |
| 20 | LOCAL_MODULE := recovery |
| 21 | |
| 22 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 23 | |
Doug Zongker | fb2e3af | 2009-06-17 17:29:40 -0700 | [diff] [blame] | 24 | RECOVERY_API_VERSION := 2 |
| 25 | LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION) |
| 26 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 27 | # This binary is in the recovery ramdisk, which is otherwise a copy of root. |
| 28 | # It gets copied there in config/Makefile. LOCAL_MODULE_TAGS suppresses |
| 29 | # a (redundant) copy of the binary in /system/bin for user builds. |
| 30 | # TODO: Build the ramdisk image in a more principled way. |
| 31 | |
| 32 | LOCAL_MODULE_TAGS := eng |
| 33 | |
Doug Zongker | 64893cc | 2009-07-14 16:31:56 -0700 | [diff] [blame] | 34 | LOCAL_STATIC_LIBRARIES := libminzip libunz libmtdutils libmincrypt |
Doug Zongker | 58bde31 | 2009-03-27 13:25:30 -0700 | [diff] [blame] | 35 | LOCAL_STATIC_LIBRARIES += libminui libpixelflinger_static libpng libcutils |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 36 | LOCAL_STATIC_LIBRARIES += libstdc++ libc |
| 37 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 38 | include $(BUILD_EXECUTABLE) |
| 39 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 40 | include $(commands_recovery_local_path)/minui/Android.mk |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 41 | include $(commands_recovery_local_path)/minzip/Android.mk |
| 42 | include $(commands_recovery_local_path)/mtdutils/Android.mk |
| 43 | include $(commands_recovery_local_path)/tools/Android.mk |
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 44 | include $(commands_recovery_local_path)/edify/Android.mk |
| 45 | include $(commands_recovery_local_path)/updater/Android.mk |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 46 | commands_recovery_local_path := |
Doug Zongker | 9dbc027 | 2009-06-11 17:32:55 -0700 | [diff] [blame] | 47 | |
| 48 | endif # TARGET_ARCH == arm |
| 49 | endif # !TARGET_SIMULATOR |
| 50 | |