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