Home | History | Annotate | Download | only in fastbootd
      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_C_INCLUDES := \
     20     external/openssl/include \
     21     external/mdnsresponder/mDNSShared \
     22     $(LOCAL_PATH)/include \
     23     external/zlib/ \
     24 
     25 LOCAL_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 
     43 LOCAL_MODULE := fastbootd
     44 LOCAL_MODULE_TAGS := optional
     45 LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter -DFLASH_CERT
     46 LOCAL_LDFLAGS := -ldl
     47 
     48 LOCAL_STATIC_LIBRARIES := \
     49     libc \
     50     libcrypto_static \
     51     libcutils \
     52     libmdnssd \
     53     libsparse_static \
     54     libz
     55 
     56 LOCAL_HAL_STATIC_LIBRARIES := libvendortrigger
     57 
     58 LOCAL_FORCE_STATIC_EXECUTABLE := true
     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
     74 
     75 LOCAL_STATIC_LIBRARIES := \
     76     libsparse_static \
     77     libc \
     78     libcutils \
     79     libz
     80 
     81 LOCAL_FORCE_STATIC_EXECUTABLE := true
     82 
     83 include $(BUILD_EXECUTABLE)
     84 
     85 # vendor trigger HAL
     86 include $(CLEAR_VARS)
     87 LOCAL_CFLAGS := -Wall -Werror
     88 LOCAL_MODULE := libvendortrigger.default
     89 LOCAL_MODULE_TAGS := optional
     90 LOCAL_SRC_FILES := vendor_trigger_default.c
     91 LOCAL_STATIC_LIBRARIES := libcutils
     92 include $(BUILD_STATIC_LIBRARY)
     93