Colin Cross | a3d386e | 2013-02-06 21:03:34 -0800 | [diff] [blame] | 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 | |
| 15 | LOCAL_PATH:= $(call my-dir) |
| 16 | |
| 17 | include $(CLEAR_VARS) |
| 18 | |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 19 | LOCAL_C_INCLUDES := \ |
| 20 | external/openssl/include \ |
Szymon Starzycki | bc849f1 | 2013-09-13 15:37:08 -0700 | [diff] [blame] | 21 | external/mdnsresponder/mDNSShared \ |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 22 | $(LOCAL_PATH)/include \ |
| 23 | external/zlib/ \ |
| 24 | |
Colin Cross | a3d386e | 2013-02-06 21:03:34 -0800 | [diff] [blame] | 25 | LOCAL_SRC_FILES := \ |
| 26 | config.c \ |
| 27 | commands.c \ |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 28 | commands/boot.c \ |
| 29 | commands/flash.c \ |
| 30 | commands/partitions.c \ |
Szymon Starzycki | c50dfd1 | 2013-09-06 15:09:30 -0700 | [diff] [blame] | 31 | commands/virtual_partitions.c \ |
Colin Cross | a3d386e | 2013-02-06 21:03:34 -0800 | [diff] [blame] | 32 | fastbootd.c \ |
| 33 | protocol.c \ |
Szymon Starzycki | bc849f1 | 2013-09-13 15:37:08 -0700 | [diff] [blame] | 34 | network_discovery.c \ |
Szymon Starzycki | 2a656c3 | 2013-09-05 14:26:28 -0700 | [diff] [blame] | 35 | socket_client.c \ |
Szymon Starzycki | 4662a11 | 2013-10-02 17:21:41 -0700 | [diff] [blame] | 36 | secure.c \ |
Colin Cross | a3d386e | 2013-02-06 21:03:34 -0800 | [diff] [blame] | 37 | transport.c \ |
Szymon Starzycki | 2a656c3 | 2013-09-05 14:26:28 -0700 | [diff] [blame] | 38 | transport_socket.c \ |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 39 | trigger.c \ |
| 40 | usb_linux_client.c \ |
Szymon Starzycki | bc849f1 | 2013-09-13 15:37:08 -0700 | [diff] [blame] | 41 | utils.c \ |
Colin Cross | a3d386e | 2013-02-06 21:03:34 -0800 | [diff] [blame] | 42 | |
| 43 | LOCAL_MODULE := fastbootd |
| 44 | LOCAL_MODULE_TAGS := optional |
Szymon Starzycki | 4662a11 | 2013-10-02 17:21:41 -0700 | [diff] [blame] | 45 | LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter -DFLASH_CERT |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 46 | LOCAL_LDFLAGS := -ldl |
| 47 | |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 48 | LOCAL_STATIC_LIBRARIES := \ |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 49 | libc \ |
Alex Ray | 17ab454 | 2014-03-19 15:47:58 -0700 | [diff] [blame] | 50 | libcrypto_static \ |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 51 | libcutils \ |
Alex Ray | 17ab454 | 2014-03-19 15:47:58 -0700 | [diff] [blame] | 52 | libmdnssd \ |
| 53 | libsparse_static \ |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 54 | libz |
| 55 | |
Alex Ray | 17ab454 | 2014-03-19 15:47:58 -0700 | [diff] [blame] | 56 | LOCAL_HAL_STATIC_LIBRARIES := libvendortrigger |
| 57 | |
| 58 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 59 | |
| 60 | include $(BUILD_EXECUTABLE) |
| 61 | |
| 62 | include $(CLEAR_VARS) |
| 63 | LOCAL_C_INCLUDES := \ |
| 64 | external/zlib/ |
| 65 | |
| 66 | LOCAL_SRC_FILES := \ |
| 67 | commands/partitions.c \ |
| 68 | other/gptedit.c \ |
| 69 | utils.c |
| 70 | |
| 71 | LOCAL_MODULE := gptedit |
| 72 | LOCAL_MODULE_TAGS := optional |
| 73 | LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter |
Colin Cross | a3d386e | 2013-02-06 21:03:34 -0800 | [diff] [blame] | 74 | |
| 75 | LOCAL_STATIC_LIBRARIES := \ |
| 76 | libsparse_static \ |
| 77 | libc \ |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 78 | libcutils \ |
| 79 | libz |
Colin Cross | a3d386e | 2013-02-06 21:03:34 -0800 | [diff] [blame] | 80 | |
| 81 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 82 | |
| 83 | include $(BUILD_EXECUTABLE) |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 84 | |
Alex Ray | 17ab454 | 2014-03-19 15:47:58 -0700 | [diff] [blame] | 85 | # vendor trigger HAL |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 86 | include $(CLEAR_VARS) |
Alex Ray | 17ab454 | 2014-03-19 15:47:58 -0700 | [diff] [blame] | 87 | LOCAL_CFLAGS := -Wall -Werror |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 88 | LOCAL_MODULE := libvendortrigger.default |
| 89 | LOCAL_MODULE_TAGS := optional |
Alex Ray | 17ab454 | 2014-03-19 15:47:58 -0700 | [diff] [blame] | 90 | LOCAL_SRC_FILES := vendor_trigger_default.c |
| 91 | LOCAL_STATIC_LIBRARIES := libcutils |
| 92 | include $(BUILD_STATIC_LIBRARY) |