Android.mk.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Copyright (C) 2016 The Android Open Source Project
  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. # HAL Shared library the for libhardware.
  15. LOCAL_PATH := $(call my-dir)
  16. include $(CLEAR_VARS)
  17. LOCAL_MODULE := bootctrl.$(MTK_PLATFORM_DIR)
  18. LOCAL_MODULE_RELATIVE_PATH := hw
  19. LOCAL_PROPRIETARY_MODULE := true
  20. LOCAL_MODULE_OWNER := mtk
  21. LOCAL_SRC_FILES := \
  22. bootctrl.cpp \
  23. avb/libavb/avb_util.c \
  24. avb/libavb/avb_crc32.c
  25. LOCAL_MODULE_TAGS := optional
  26. LOCAL_C_INCLUDES += \
  27. system/core/fs_mgr/include_fstab/fstab \
  28. device/mediatek/common/kernel-headers \
  29. bootable/recovery/bootloader_message/include
  30. LOCAL_HEADER_LIBRARIES := libhardware_headers libsystem_headers
  31. LOCAL_SHARED_LIBRARIES += liblog libbase libcutils
  32. LOCAL_STATIC_LIBRARIES += libfstab
  33. include $(BUILD_SHARED_LIBRARY)
  34. # Static library for the update_engine_sideload from recovery.
  35. include $(CLEAR_VARS)
  36. LOCAL_MODULE := bootctrl.$(MTK_PLATFORM_DIR)
  37. LOCAL_MODULE_OWNER := mtk
  38. LOCAL_SRC_FILES := \
  39. bootctrl.cpp \
  40. avb/libavb/avb_util.c \
  41. avb/libavb/avb_crc32.c
  42. LOCAL_MODULE_TAGS := optional
  43. LOCAL_C_INCLUDES += \
  44. system/core/fs_mgr/include_fstab/fstab \
  45. device/mediatek/common/kernel-headers \
  46. bootable/recovery/bootloader_message/include
  47. LOCAL_HEADER_LIBRARIES := libhardware_headers libsystem_headers
  48. LOCAL_SHARED_LIBRARIES += liblog libbase libcutils
  49. LOCAL_STATIC_LIBRARIES += libfstab
  50. include $(BUILD_STATIC_LIBRARY)