blob: 6aa74002063063055a58741aba12b4307e557ff1 [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
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070048LOCAL_STATIC_LIBRARIES := \
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070049 libc \
Alex Ray17ab4542014-03-19 15:47:58 -070050 libcrypto_static \
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070051 libcutils \
Alex Ray17ab4542014-03-19 15:47:58 -070052 libmdnssd \
53 libsparse_static \
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070054 libz
55
Alex Ray17ab4542014-03-19 15:47:58 -070056LOCAL_HAL_STATIC_LIBRARIES := libvendortrigger
57
58LOCAL_FORCE_STATIC_EXECUTABLE := true
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070059
60include $(BUILD_EXECUTABLE)
61
62include $(CLEAR_VARS)
63LOCAL_C_INCLUDES := \
64 external/zlib/
65
66LOCAL_SRC_FILES := \
67 commands/partitions.c \
68 other/gptedit.c \
69 utils.c
70
71LOCAL_MODULE := gptedit
72LOCAL_MODULE_TAGS := optional
73LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
Colin Crossa3d386e2013-02-06 21:03:34 -080074
75LOCAL_STATIC_LIBRARIES := \
76 libsparse_static \
77 libc \
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070078 libcutils \
79 libz
Colin Crossa3d386e2013-02-06 21:03:34 -080080
81LOCAL_FORCE_STATIC_EXECUTABLE := true
82
83include $(BUILD_EXECUTABLE)
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070084
Alex Ray17ab4542014-03-19 15:47:58 -070085# vendor trigger HAL
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070086include $(CLEAR_VARS)
Alex Ray17ab4542014-03-19 15:47:58 -070087LOCAL_CFLAGS := -Wall -Werror
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070088LOCAL_MODULE := libvendortrigger.default
89LOCAL_MODULE_TAGS := optional
Alex Ray17ab4542014-03-19 15:47:58 -070090LOCAL_SRC_FILES := vendor_trigger_default.c
91LOCAL_STATIC_LIBRARIES := libcutils
92include $(BUILD_STATIC_LIBRARY)