blob: cacb6282df83c7682865eb64cd33bd12b9d37dea [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 \
Doug Zongker540d57f2011-01-18 13:36:58 -080015 verifier.c
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080016
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080017LOCAL_MODULE := recovery
18
19LOCAL_FORCE_STATIC_EXECUTABLE := true
20
Doug Zongkere08991e2010-02-02 13:09:52 -080021RECOVERY_API_VERSION := 3
Doug Zongkerfb2e3af2009-06-17 17:29:40 -070022LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
23
Doug Zongker49c73a72010-06-29 17:36:28 -070024LOCAL_STATIC_LIBRARIES :=
25
26ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
27LOCAL_CFLAGS += -DUSE_EXT4
28LOCAL_C_INCLUDES += system/extras/ext4_utils
29LOCAL_STATIC_LIBRARIES += libext4_utils libz
30endif
31
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080032# This binary is in the recovery ramdisk, which is otherwise a copy of root.
33# It gets copied there in config/Makefile. LOCAL_MODULE_TAGS suppresses
34# a (redundant) copy of the binary in /system/bin for user builds.
35# TODO: Build the ramdisk image in a more principled way.
36
37LOCAL_MODULE_TAGS := eng
38
Doug Zongkerddd6a282009-06-09 12:22:33 -070039ifeq ($(TARGET_RECOVERY_UI_LIB),)
40 LOCAL_SRC_FILES += default_recovery_ui.c
41else
42 LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB)
43endif
Doug Zongkercc8cd3f2010-09-20 12:16:13 -070044LOCAL_STATIC_LIBRARIES += libext4_utils libz
Doug Zongker608fa022009-07-15 18:10:28 -070045LOCAL_STATIC_LIBRARIES += libminzip libunz libmtdutils libmincrypt
Doug Zongker19faefa2009-03-27 17:06:24 -070046LOCAL_STATIC_LIBRARIES += libminui libpixelflinger_static libpng libcutils
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080047LOCAL_STATIC_LIBRARIES += libstdc++ libc
48
Doug Zongkercc8cd3f2010-09-20 12:16:13 -070049LOCAL_C_INCLUDES += system/extras/ext4_utils
50
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080051include $(BUILD_EXECUTABLE)
52
Doug Zongker73ae31c2009-12-09 17:01:45 -080053
54include $(CLEAR_VARS)
55
56LOCAL_SRC_FILES := verifier_test.c verifier.c
57
58LOCAL_MODULE := verifier_test
59
60LOCAL_FORCE_STATIC_EXECUTABLE := true
61
62LOCAL_MODULE_TAGS := tests
63
64LOCAL_STATIC_LIBRARIES := libmincrypt libcutils libstdc++ libc
65
66include $(BUILD_EXECUTABLE)
67
68
Doug Zongkerddd6a282009-06-09 12:22:33 -070069include $(commands_recovery_local_path)/minui/Android.mk
Hristo Bojinovdb314d62010-08-02 10:29:49 -070070include $(commands_recovery_local_path)/minelf/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080071include $(commands_recovery_local_path)/minzip/Android.mk
72include $(commands_recovery_local_path)/mtdutils/Android.mk
73include $(commands_recovery_local_path)/tools/Android.mk
Doug Zongker9931f7f2009-06-10 14:11:53 -070074include $(commands_recovery_local_path)/edify/Android.mk
75include $(commands_recovery_local_path)/updater/Android.mk
Doug Zongker512536a2010-02-17 16:11:44 -080076include $(commands_recovery_local_path)/applypatch/Android.mk
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080077commands_recovery_local_path :=
Doug Zongkerc3885fa2009-06-11 17:05:58 -070078
79endif # TARGET_ARCH == arm
Oscar Montemayor05231562009-11-30 08:40:57 -080080endif # !TARGET_SIMULATOR
Doug Zongkerc3885fa2009-06-11 17:05:58 -070081