• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 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_C_INCLUDES := \
20    external/openssl/include \
21    external/mdnsresponder/mDNSShared \
22    $(LOCAL_PATH)/include \
23    external/zlib/ \
24
25LOCAL_SRC_FILES := \
26    config.c \
27    commands.c \
28    commands/boot.c \
29    commands/flash.c \
30    commands/partitions.c \
31    commands/virtual_partitions.c \
32    fastbootd.c \
33    protocol.c \
34    network_discovery.c \
35    socket_client.c \
36    secure.c \
37    transport.c \
38    transport_socket.c \
39    trigger.c \
40    usb_linux_client.c \
41    utils.c \
42
43LOCAL_MODULE := fastbootd
44LOCAL_MODULE_TAGS := optional
45LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter -DFLASH_CERT
46LOCAL_LDFLAGS := -ldl
47
48LOCAL_STATIC_LIBRARIES := \
49    libc \
50    libcrypto_static \
51    libcutils \
52    libmdnssd \
53    libsparse_static \
54    libz
55
56LOCAL_HAL_STATIC_LIBRARIES := libvendortrigger
57
58LOCAL_FORCE_STATIC_EXECUTABLE := true
59
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
74
75LOCAL_STATIC_LIBRARIES := \
76    libsparse_static \
77    libc \
78    libcutils \
79    libz
80
81LOCAL_FORCE_STATIC_EXECUTABLE := true
82
83include $(BUILD_EXECUTABLE)
84
85# vendor trigger HAL
86include $(CLEAR_VARS)
87LOCAL_CFLAGS := -Wall -Werror
88LOCAL_MODULE := libvendortrigger.default
89LOCAL_MODULE_TAGS := optional
90LOCAL_SRC_FILES := vendor_trigger_default.c
91LOCAL_STATIC_LIBRARIES := libcutils
92include $(BUILD_STATIC_LIBRARY)
93