blob: 27ffec70f25468beb7d826e6152fa59976e937d6 [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 Montemayor31f6ee82010-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
Doug Zongker49c73a72010-06-29 17:36:28 -070025LOCAL_STATIC_LIBRARIES :=
26
27ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
28LOCAL_CFLAGS += -DUSE_EXT4
29LOCAL_C_INCLUDES += system/extras/ext4_utils
30LOCAL_STATIC_LIBRARIES += libext4_utils libz
31endif
32
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080033# 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
38LOCAL_MODULE_TAGS := eng
39
Doug Zongkerddd6a282009-06-09 12:22:33 -070040ifeq ($(TARGET_RECOVERY_UI_LIB),)
41 LOCAL_SRC_FILES += default_recovery_ui.c
42else
43 LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB)
44endif
Doug Zongkercc8cd3f2010-09-20 12:16:13 -070045LOCAL_STATIC_LIBRARIES += libext4_utils libz
Doug Zongker608fa022009-07-15 18:10:28 -070046LOCAL_STATIC_LIBRARIES += libminzip libunz libmtdutils libmincrypt
Doug Zongker19faefa2009-03-27 17:06:24 -070047LOCAL_STATIC_LIBRARIES += libminui libpixelflinger_static libpng libcutils
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080048LOCAL_STATIC_LIBRARIES += libstdc++ libc
49
Doug Zongkercc8cd3f2010-09-20 12:16:13 -070050LOCAL_C_INCLUDES += system/extras/ext4_utils
51
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080052include $(BUILD_EXECUTABLE)
53
Doug Zongker73ae31c2009-12-09 17:01:45 -080054
55include $(CLEAR_VARS)
56
57LOCAL_SRC_FILES := verifier_test.c verifier.c
58
59LOCAL_MODULE := verifier_test
60
61LOCAL_FORCE_STATIC_EXECUTABLE := true
62
63LOCAL_MODULE_TAGS := tests
64
65LOCAL_STATIC_LIBRARIES := libmincrypt libcutils libstdc++ libc
66
67include $(BUILD_EXECUTABLE)
68
69
Doug Zongkerddd6a282009-06-09 12:22:33 -070070include $(commands_recovery_local_path)/minui/Android.mk
Hristo Bojinovdb314d62010-08-02 10:29:49 -070071include $(commands_recovery_local_path)/minelf/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080072include $(commands_recovery_local_path)/minzip/Android.mk
73include $(commands_recovery_local_path)/mtdutils/Android.mk
74include $(commands_recovery_local_path)/tools/Android.mk
Doug Zongker9931f7f2009-06-10 14:11:53 -070075include $(commands_recovery_local_path)/edify/Android.mk
76include $(commands_recovery_local_path)/updater/Android.mk
Doug Zongker512536a2010-02-17 16:11:44 -080077include $(commands_recovery_local_path)/applypatch/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080078commands_recovery_local_path :=
Doug Zongkerc3885fa2009-06-11 17:05:58 -070079
80endif # TARGET_ARCH == arm
Oscar Montemayor05231562009-11-30 08:40:57 -080081endif # !TARGET_SIMULATOR
Doug Zongkerc3885fa2009-06-11 17:05:58 -070082