blob: 0f32dbfcb3c2cc4f73c162f31ab4ce66fe6dd25b [file] [log] [blame]
Colin Crossa3d386e2013-02-06 21:03:34 -08001# Copyright (C) 2013 Google Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15LOCAL_PATH:= $(call my-dir)
16
17include $(CLEAR_VARS)
18
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070019LOCAL_C_INCLUDES := \
20 external/openssl/include \
Szymon Starzyckibc849f12013-09-13 15:37:08 -070021 external/mdnsresponder/mDNSShared \
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070022 $(LOCAL_PATH)/include \
23 external/zlib/ \
24
Colin Crossa3d386e2013-02-06 21:03:34 -080025LOCAL_SRC_FILES := \
26 config.c \
27 commands.c \
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070028 commands/boot.c \
29 commands/flash.c \
30 commands/partitions.c \
Szymon Starzyckic50dfd12013-09-06 15:09:30 -070031 commands/virtual_partitions.c \
Colin Crossa3d386e2013-02-06 21:03:34 -080032 fastbootd.c \
33 protocol.c \
Szymon Starzyckibc849f12013-09-13 15:37:08 -070034 network_discovery.c \
Szymon Starzycki2a656c32013-09-05 14:26:28 -070035 socket_client.c \
Szymon Starzycki4662a112013-10-02 17:21:41 -070036 secure.c \
Colin Crossa3d386e2013-02-06 21:03:34 -080037 transport.c \
Szymon Starzycki2a656c32013-09-05 14:26:28 -070038 transport_socket.c \
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070039 trigger.c \
40 usb_linux_client.c \
Szymon Starzyckibc849f12013-09-13 15:37:08 -070041 utils.c \
Colin Crossa3d386e2013-02-06 21:03:34 -080042
43LOCAL_MODULE := fastbootd
44LOCAL_MODULE_TAGS := optional
Szymon Starzycki4662a112013-10-02 17:21:41 -070045LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter -DFLASH_CERT
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070046LOCAL_LDFLAGS := -ldl
47
48LOCAL_SHARED_LIBRARIES := \
49 libhardware \
Szymon Starzyckibc849f12013-09-13 15:37:08 -070050 libcrypto \
51 libhardware_legacy \
52 libmdnssd
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070053
54LOCAL_STATIC_LIBRARIES := \
55 libsparse_static \
56 libc \
57 libcutils \
58 libz
59
60#LOCAL_FORCE_STATIC_EXECUTABLE := true
61
62include $(BUILD_EXECUTABLE)
63
64include $(CLEAR_VARS)
65LOCAL_C_INCLUDES := \
66 external/zlib/
67
68LOCAL_SRC_FILES := \
69 commands/partitions.c \
70 other/gptedit.c \
71 utils.c
72
73LOCAL_MODULE := gptedit
74LOCAL_MODULE_TAGS := optional
75LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
Colin Crossa3d386e2013-02-06 21:03:34 -080076
77LOCAL_STATIC_LIBRARIES := \
78 libsparse_static \
79 libc \
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070080 libcutils \
81 libz
Colin Crossa3d386e2013-02-06 21:03:34 -080082
83LOCAL_FORCE_STATIC_EXECUTABLE := true
84
85include $(BUILD_EXECUTABLE)
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070086
87include $(CLEAR_VARS)
88
89LOCAL_C_INCLUDES := \
90 $(LOCAL_PATH)/include \
91
92LOCAL_STATIC_LIBRARIES := \
93 $(EXTRA_STATIC_LIBS) \
94 libcutils
95
96LOCAL_SRC_FILES := \
97 other/vendor_trigger.c
98
99LOCAL_MODULE := libvendortrigger.default
100LOCAL_MODULE_TAGS := optional
101LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
102
103
104include $(BUILD_SHARED_LIBRARY)