blob: 1e69e7a2cbc4521d974d6896c1475a755875c8e9 [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
19LOCAL_SRC_FILES := \
20 config.c \
21 commands.c \
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070022 commands/boot.c \
23 commands/flash.c \
24 commands/partitions.c \
Szymon Starzyckic50dfd12013-09-06 15:09:30 -070025 commands/virtual_partitions.c \
Colin Crossa3d386e2013-02-06 21:03:34 -080026 fastbootd.c \
27 protocol.c \
Szymon Starzyckibc849f12013-09-13 15:37:08 -070028 network_discovery.c \
Szymon Starzycki2a656c32013-09-05 14:26:28 -070029 socket_client.c \
Szymon Starzycki4662a112013-10-02 17:21:41 -070030 secure.c \
Colin Crossa3d386e2013-02-06 21:03:34 -080031 transport.c \
Szymon Starzycki2a656c32013-09-05 14:26:28 -070032 transport_socket.c \
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070033 trigger.c \
34 usb_linux_client.c \
Szymon Starzyckibc849f12013-09-13 15:37:08 -070035 utils.c \
Colin Crossa3d386e2013-02-06 21:03:34 -080036
37LOCAL_MODULE := fastbootd
38LOCAL_MODULE_TAGS := optional
Christopher Ferris51448eb2014-09-03 19:48:48 -070039LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter -Wno-deprecated-declarations -DFLASH_CERT
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070040LOCAL_LDFLAGS := -ldl
41
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070042LOCAL_STATIC_LIBRARIES := \
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070043 libc \
Alex Ray17ab4542014-03-19 15:47:58 -070044 libcrypto_static \
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070045 libcutils \
Alex Ray17ab4542014-03-19 15:47:58 -070046 libmdnssd \
47 libsparse_static \
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070048 libz
49
Alex Ray17ab4542014-03-19 15:47:58 -070050LOCAL_HAL_STATIC_LIBRARIES := libvendortrigger
51
52LOCAL_FORCE_STATIC_EXECUTABLE := true
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070053
54include $(BUILD_EXECUTABLE)
55
56include $(CLEAR_VARS)
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070057
58LOCAL_SRC_FILES := \
59 commands/partitions.c \
60 other/gptedit.c \
61 utils.c
62
63LOCAL_MODULE := gptedit
64LOCAL_MODULE_TAGS := optional
65LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
Colin Crossa3d386e2013-02-06 21:03:34 -080066
67LOCAL_STATIC_LIBRARIES := \
68 libsparse_static \
69 libc \
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070070 libcutils \
71 libz
Colin Crossa3d386e2013-02-06 21:03:34 -080072
73LOCAL_FORCE_STATIC_EXECUTABLE := true
74
75include $(BUILD_EXECUTABLE)
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070076
Alex Ray17ab4542014-03-19 15:47:58 -070077# vendor trigger HAL
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070078include $(CLEAR_VARS)
Alex Ray17ab4542014-03-19 15:47:58 -070079LOCAL_CFLAGS := -Wall -Werror
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070080LOCAL_MODULE := libvendortrigger.default
81LOCAL_MODULE_TAGS := optional
Alex Ray17ab4542014-03-19 15:47:58 -070082LOCAL_SRC_FILES := vendor_trigger_default.c
83LOCAL_STATIC_LIBRARIES := libcutils
84include $(BUILD_STATIC_LIBRARY)