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 | LOCAL_LDFLAGS := -ldl |
| 41 | |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 42 | LOCAL_STATIC_LIBRARIES := \ |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 43 | libc \ |
Alex Ray | 17ab454 | 2014-03-19 15:47:58 -0700 | [diff] [blame] | 44 | libcrypto_static \ |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 45 | libcutils \ |
Alex Ray | 17ab454 | 2014-03-19 15:47:58 -0700 | [diff] [blame] | 46 | libmdnssd \ |
| 47 | libsparse_static \ |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 48 | libz |
| 49 | |
Alex Ray | 17ab454 | 2014-03-19 15:47:58 -0700 | [diff] [blame] | 50 | LOCAL_HAL_STATIC_LIBRARIES := libvendortrigger |
| 51 | |
| 52 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 53 | |
| 54 | include $(BUILD_EXECUTABLE) |
| 55 | |
| 56 | include $(CLEAR_VARS) |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 57 | |
| 58 | LOCAL_SRC_FILES := \ |
| 59 | commands/partitions.c \ |
| 60 | other/gptedit.c \ |
| 61 | utils.c |
| 62 | |
| 63 | LOCAL_MODULE := gptedit |
| 64 | LOCAL_MODULE_TAGS := optional |
| 65 | LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter |
Colin Cross | a3d386e | 2013-02-06 21:03:34 -0800 | [diff] [blame] | 66 | |
| 67 | LOCAL_STATIC_LIBRARIES := \ |
| 68 | libsparse_static \ |
| 69 | libc \ |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 70 | libcutils \ |
| 71 | libz |
Colin Cross | a3d386e | 2013-02-06 21:03:34 -0800 | [diff] [blame] | 72 | |
| 73 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 74 | |
| 75 | include $(BUILD_EXECUTABLE) |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 76 | |
Alex Ray | 17ab454 | 2014-03-19 15:47:58 -0700 | [diff] [blame] | 77 | # vendor trigger HAL |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 78 | include $(CLEAR_VARS) |
Alex Ray | 17ab454 | 2014-03-19 15:47:58 -0700 | [diff] [blame] | 79 | LOCAL_CFLAGS := -Wall -Werror |
Szymon Starzycki | b6c5f28 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 80 | LOCAL_MODULE := libvendortrigger.default |
| 81 | LOCAL_MODULE_TAGS := optional |
Alex Ray | 17ab454 | 2014-03-19 15:47:58 -0700 | [diff] [blame] | 82 | LOCAL_SRC_FILES := vendor_trigger_default.c |
| 83 | LOCAL_STATIC_LIBRARIES := libcutils |
| 84 | include $(BUILD_STATIC_LIBRARY) |