blob: c74f906a62ffd2bc74d8ad406a3f344711f6cd7e [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 -070040
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070041LOCAL_STATIC_LIBRARIES := \
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070042 libc \
Alex Ray17ab4542014-03-19 15:47:58 -070043 libcrypto_static \
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070044 libcutils \
Alex Ray17ab4542014-03-19 15:47:58 -070045 libmdnssd \
46 libsparse_static \
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070047 libz
48
Alex Ray17ab4542014-03-19 15:47:58 -070049LOCAL_HAL_STATIC_LIBRARIES := libvendortrigger
50
51LOCAL_FORCE_STATIC_EXECUTABLE := true
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070052
53include $(BUILD_EXECUTABLE)
54
55include $(CLEAR_VARS)
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070056
57LOCAL_SRC_FILES := \
58 commands/partitions.c \
59 other/gptedit.c \
60 utils.c
61
62LOCAL_MODULE := gptedit
63LOCAL_MODULE_TAGS := optional
64LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
Colin Crossa3d386e2013-02-06 21:03:34 -080065
66LOCAL_STATIC_LIBRARIES := \
67 libsparse_static \
68 libc \
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070069 libcutils \
70 libz
Colin Crossa3d386e2013-02-06 21:03:34 -080071
72LOCAL_FORCE_STATIC_EXECUTABLE := true
73
74include $(BUILD_EXECUTABLE)
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070075
Alex Ray17ab4542014-03-19 15:47:58 -070076# vendor trigger HAL
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070077include $(CLEAR_VARS)
Alex Ray17ab4542014-03-19 15:47:58 -070078LOCAL_CFLAGS := -Wall -Werror
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070079LOCAL_MODULE := libvendortrigger.default
80LOCAL_MODULE_TAGS := optional
Alex Ray17ab4542014-03-19 15:47:58 -070081LOCAL_SRC_FILES := vendor_trigger_default.c
82LOCAL_STATIC_LIBRARIES := libcutils
83include $(BUILD_STATIC_LIBRARY)