blob: 0f1facb9859874ec0dc3fe8ebe538604ec540b9e [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 Starzyckie160f812013-07-24 17:08:04 -070019LOCAL_C_INCLUDES := \
20 external/openssl/include \
21 $(LOCAL_PATH)/include \
22 external/zlib/ \
23
Colin Crossa3d386e2013-02-06 21:03:34 -080024LOCAL_SRC_FILES := \
25 config.c \
26 commands.c \
Szymon Starzyckie160f812013-07-24 17:08:04 -070027 commands/boot.c \
28 commands/flash.c \
29 commands/partitions.c \
Szymon Starzycki585af582013-09-06 15:09:30 -070030 commands/virtual_partitions.c \
Colin Crossa3d386e2013-02-06 21:03:34 -080031 fastbootd.c \
32 protocol.c \
Szymon Starzycki5ccecfd2013-08-19 16:42:25 -070033 secure.c \
Colin Crossa3d386e2013-02-06 21:03:34 -080034 transport.c \
Szymon Starzyckie160f812013-07-24 17:08:04 -070035 trigger.c \
36 usb_linux_client.c \
37 utils.c
Colin Crossa3d386e2013-02-06 21:03:34 -080038
39LOCAL_MODULE := fastbootd
40LOCAL_MODULE_TAGS := optional
Szymon Starzycki5ccecfd2013-08-19 16:42:25 -070041LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter -DFLASH_CERT
Szymon Starzyckie160f812013-07-24 17:08:04 -070042LOCAL_LDFLAGS := -ldl
43
44LOCAL_SHARED_LIBRARIES := \
45 libhardware \
Szymon Starzycki5ccecfd2013-08-19 16:42:25 -070046 libcrypto \
Szymon Starzyckie160f812013-07-24 17:08:04 -070047 libhardware_legacy
48
49LOCAL_STATIC_LIBRARIES := \
50 libsparse_static \
51 libc \
52 libcutils \
53 libz
54
55#LOCAL_FORCE_STATIC_EXECUTABLE := true
56
57include $(BUILD_EXECUTABLE)
58
59include $(CLEAR_VARS)
60LOCAL_C_INCLUDES := \
61 external/zlib/
62
63LOCAL_SRC_FILES := \
64 commands/partitions.c \
65 other/gptedit.c \
66 utils.c
67
68LOCAL_MODULE := gptedit
69LOCAL_MODULE_TAGS := optional
70LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
Colin Crossa3d386e2013-02-06 21:03:34 -080071
72LOCAL_STATIC_LIBRARIES := \
73 libsparse_static \
74 libc \
Szymon Starzyckie160f812013-07-24 17:08:04 -070075 libcutils \
76 libz
Colin Crossa3d386e2013-02-06 21:03:34 -080077
78LOCAL_FORCE_STATIC_EXECUTABLE := true
79
80include $(BUILD_EXECUTABLE)
Szymon Starzyckie160f812013-07-24 17:08:04 -070081
82include $(CLEAR_VARS)
83
84LOCAL_C_INCLUDES := \
85 $(LOCAL_PATH)/include \
86
87LOCAL_STATIC_LIBRARIES := \
88 $(EXTRA_STATIC_LIBS) \
89 libcutils
90
91LOCAL_SRC_FILES := \
92 other/vendor_trigger.c
93
94LOCAL_MODULE := libvendortrigger.default
95LOCAL_MODULE_TAGS := optional
96LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
97
98
99include $(BUILD_SHARED_LIBRARY)