diff --git a/Android.bp b/Android.bp index 9515b257..885256c1 100644 --- a/Android.bp +++ b/Android.bp @@ -1,2 +1,5 @@ soong_namespace { + imports: [ + "hardware/qcom/bootctrl", + ], } diff --git a/bootctrl/Android.bp b/bootctrl/Android.bp new file mode 100644 index 00000000..b420e875 --- /dev/null +++ b/bootctrl/Android.bp @@ -0,0 +1,21 @@ +// +// Copyright (C) 2019 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +cc_library { + name: "bootctrl.msm8998", + defaults: ["bootctrl_hal_defaults"], + static_libs: ["libgptutils.msm8998"], +} diff --git a/device.mk b/device.mk index 9750522e..04c1d319 100644 --- a/device.mk +++ b/device.mk @@ -91,18 +91,14 @@ TARGET_SCREEN_WIDTH := 1312 # Boot control PRODUCT_PACKAGES += \ android.hardware.boot@1.0-impl:64 \ + android.hardware.boot@1.0-impl.recovery:64 \ android.hardware.boot@1.0-service \ bootctrl.msm8998 \ + bootctrl.msm8998.recovery PRODUCT_PACKAGES_DEBUG += \ bootctl -PRODUCT_STATIC_BOOT_CONTROL_HAL := \ - bootctrl.msm8998 \ - libcutils \ - libgptutils \ - libz - # Bluetooth PRODUCT_PACKAGES += \ android.hardware.bluetooth@1.0-impl-mata:64 \ diff --git a/recovery/gpt-utils/Android.bp b/recovery/gpt-utils/Android.bp new file mode 100644 index 00000000..8a8301c9 --- /dev/null +++ b/recovery/gpt-utils/Android.bp @@ -0,0 +1,38 @@ +// +// Copyright (C) 2016 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +cc_library { + name: "libgptutils.msm8998", + vendor: true, + recovery_available: true, + shared_libs: [ + "libcutils", + "liblog", + "libz", + ], + cflags: [ + "-Wall", + "-Werror", + ], + srcs: [ + "gpt-utils.cpp", + ], + owner: "qti", + header_libs: [ + "device_kernel_headers", + ], + export_include_dirs: ["."], +} diff --git a/recovery/gpt-utils/Android.mk b/recovery/gpt-utils/Android.mk deleted file mode 100644 index 6dd1a448..00000000 --- a/recovery/gpt-utils/Android.mk +++ /dev/null @@ -1,46 +0,0 @@ -# -# Copyright 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) -LOCAL_SRC_FILES := gpt-utils.cpp -ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true) -LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include -LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr -endif -LOCAL_SHARED_LIBRARIES := liblog libz -LOCAL_MODULE := libgptutils -LOCAL_MODULE_OWNER := qti -include $(BUILD_STATIC_LIBRARY) - -include $(CLEAR_VARS) -LOCAL_SRC_FILES := gpt-utils.cpp -ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true) -LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include -LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr -endif -LOCAL_SHARED_LIBRARIES += liblog libcutils libz -LOCAL_EXPORT_HEADER_LIBRARY_HEADERS := libgptutils_headers -LOCAL_MODULE := libgptutils -LOCAL_MODULE_OWNER := qti -LOCAL_PROPRIETARY_MODULE := true -include $(BUILD_SHARED_LIBRARY) - -include $(CLEAR_VARS) -LOCAL_MODULE := libgptutils_headers -LOCAL_EXPORT_C_INCLUDE_DIRS:=$(LOCAL_PATH) -include $(BUILD_HEADER_LIBRARY)