blob: e6c354759b93ac5c1b00a4e119f5642a17b9bd87 [file] [log] [blame]
Doug Zongkerddd6a282009-06-09 12:22:33 -07001ifneq ($(TARGET_SIMULATOR),true)
2ifeq ($(TARGET_ARCH),arm)
3
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -08004LOCAL_PATH := $(call my-dir)
5include $(CLEAR_VARS)
6
7commands_recovery_local_path := $(LOCAL_PATH)
8
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -08009LOCAL_SRC_FILES := \
Oscar Montemayor05231562009-11-30 08:40:57 -080010 recovery.c \
11 bootloader.c \
Oscar Montemayor05231562009-11-30 08:40:57 -080012 install.c \
13 roots.c \
14 ui.c \
15 verifier.c \
Oscar Montemayor52219a62010-02-25 16:47:02 -080016 encryptedfs_provisioning.c
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080017
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080018LOCAL_MODULE := recovery
19
20LOCAL_FORCE_STATIC_EXECUTABLE := true
21
Doug Zongkere08991e2010-02-02 13:09:52 -080022RECOVERY_API_VERSION := 3
Doug Zongkerfb2e3af2009-06-17 17:29:40 -070023LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
24
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080025# This binary is in the recovery ramdisk, which is otherwise a copy of root.
26# It gets copied there in config/Makefile. LOCAL_MODULE_TAGS suppresses
27# a (redundant) copy of the binary in /system/bin for user builds.
28# TODO: Build the ramdisk image in a more principled way.
29
30LOCAL_MODULE_TAGS := eng
31
Doug Zongkerddd6a282009-06-09 12:22:33 -070032LOCAL_STATIC_LIBRARIES :=
33ifeq ($(TARGET_RECOVERY_UI_LIB),)
34 LOCAL_SRC_FILES += default_recovery_ui.c
35else
36 LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB)
37endif
Doug Zongkerd4208f92010-09-20 12:16:13 -070038LOCAL_STATIC_LIBRARIES += libext4_utils libz
Doug Zongker608fa022009-07-15 18:10:28 -070039LOCAL_STATIC_LIBRARIES += libminzip libunz libmtdutils libmincrypt
Doug Zongker19faefa2009-03-27 17:06:24 -070040LOCAL_STATIC_LIBRARIES += libminui libpixelflinger_static libpng libcutils
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080041LOCAL_STATIC_LIBRARIES += libstdc++ libc
42
Doug Zongkerd4208f92010-09-20 12:16:13 -070043LOCAL_C_INCLUDES += system/extras/ext4_utils
44
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080045include $(BUILD_EXECUTABLE)
46
Doug Zongker73ae31c2009-12-09 17:01:45 -080047
48include $(CLEAR_VARS)
49
50LOCAL_SRC_FILES := verifier_test.c verifier.c
51
52LOCAL_MODULE := verifier_test
53
54LOCAL_FORCE_STATIC_EXECUTABLE := true
55
56LOCAL_MODULE_TAGS := tests
57
58LOCAL_STATIC_LIBRARIES := libmincrypt libcutils libstdc++ libc
59
60include $(BUILD_EXECUTABLE)
61
62
Doug Zongkerddd6a282009-06-09 12:22:33 -070063include $(commands_recovery_local_path)/minui/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080064include $(commands_recovery_local_path)/minzip/Android.mk
65include $(commands_recovery_local_path)/mtdutils/Android.mk
66include $(commands_recovery_local_path)/tools/Android.mk
Doug Zongker9931f7f2009-06-10 14:11:53 -070067include $(commands_recovery_local_path)/edify/Android.mk
68include $(commands_recovery_local_path)/updater/Android.mk
Doug Zongker512536a2010-02-17 16:11:44 -080069include $(commands_recovery_local_path)/applypatch/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080070commands_recovery_local_path :=
Doug Zongkerc3885fa2009-06-11 17:05:58 -070071
72endif # TARGET_ARCH == arm
Oscar Montemayor05231562009-11-30 08:40:57 -080073endif # !TARGET_SIMULATOR
Doug Zongkerc3885fa2009-06-11 17:05:58 -070074