diff options
author | Hridya Valsaraju <hridya@google.com> | 2018-08-20 14:03:21 -0700 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2023-06-12 20:26:53 +0800 |
commit | 9426afcd7f01f4000c2d321297eeaff09eb527c8 (patch) | |
tree | c835465c3fb44ca446ca2669514c77c5590f5aab | |
parent | 86f0ae9017d5f8192d9708ac1cf2323102e43fa2 (diff) |
Build bootctrl.sdm845 using Android.bp
This is required to build a recovery variant of the
same to be used by fastbootd.
Bug: 78793464
Test: make
Change-Id: I2774c5cdb7013be2f59f10d84cfff94cb1a842c4
-rw-r--r-- | Android.bp | 34 | ||||
-rw-r--r-- | Android.mk | 22 |
2 files changed, 34 insertions, 22 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..13d6821 --- /dev/null +++ b/Android.bp @@ -0,0 +1,34 @@ +soong_namespace { +} + +filegroup { + name: "bootctrl_hal_src", + srcs: [ + "boot_control.cpp", + ], +} + +cc_defaults { + name: "bootctrl_hal_defaults", + proprietary: true, + recovery_available: true, + header_libs: [ + "libhardware_headers", + "libsystem_headers", + ], + shared_libs: [ + "libcutils", + "liblog", + "libz", + ], + owner: "qti", + relative_install_path: "hw", + cflags: [ + "-Wall", + "-Werror", + ], + srcs: [ + ":bootctrl_hal_src", + ], + +} diff --git a/Android.mk b/Android.mk deleted file mode 100644 index 191be1a..0000000 --- a/Android.mk +++ /dev/null @@ -1,22 +0,0 @@ -ifeq ($(AB_OTA_UPDATER),true) -LOCAL_PATH := $(call my-dir) -include $(CLEAR_VARS) -LOCAL_CFLAGS += -Wall -Werror -LOCAL_SHARED_LIBRARIES += liblog libcutils -LOCAL_HEADER_LIBRARIES += libhardware_headers -LOCAL_SRC_FILES := boot_control.cpp -LOCAL_MODULE_RELATIVE_PATH := hw -LOCAL_MODULE := bootctrl.$(TARGET_BOARD_PLATFORM) -LOCAL_MODULE_OWNER := qti -LOCAL_VENDOR_MODULE := true -include $(BUILD_SHARED_LIBRARY) - -include $(CLEAR_VARS) -LOCAL_CFLAGS += -Wall -Werror -LOCAL_SHARED_LIBRARIES += liblog libcutils -LOCAL_HEADER_LIBRARIES := libhardware_headers -LOCAL_SRC_FILES := boot_control.cpp -LOCAL_MODULE := bootctrl.$(TARGET_BOARD_PLATFORM) -include $(BUILD_STATIC_LIBRARY) - -endif |