Android.mk 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 := bootctrl.cpp
  22. LOCAL_MODULE_TAGS := optional
  23. LOCAL_C_INCLUDES += \
  24. system/core/fs_mgr/include_fstab/fstab \
  25. device/mediatek/common/kernel-headers \
  26. bootable/recovery/bootloader_message/include
  27. LOCAL_HEADER_LIBRARIES := libhardware_headers libsystem_headers
  28. LOCAL_SHARED_LIBRARIES += liblog libbase libcutils
  29. LOCAL_STATIC_LIBRARIES += libfstab
  30. include $(BUILD_SHARED_LIBRARY)
  31. # Static library for the update_engine_sideload from recovery.
  32. include $(CLEAR_VARS)
  33. LOCAL_MODULE := bootctrl.$(MTK_PLATFORM_DIR)
  34. LOCAL_MODULE_OWNER := mtk
  35. LOCAL_SRC_FILES := bootctrl.cpp
  36. LOCAL_MODULE_TAGS := optional
  37. LOCAL_C_INCLUDES += \
  38. system/core/fs_mgr/include_fstab/fstab \
  39. device/mediatek/common/kernel-headers \
  40. bootable/recovery/bootloader_message/include
  41. LOCAL_HEADER_LIBRARIES := libhardware_headers libsystem_headers
  42. LOCAL_SHARED_LIBRARIES += liblog libbase libcutils
  43. LOCAL_STATIC_LIBRARIES += libfstab
  44. include $(BUILD_STATIC_LIBRARY)