Skip to content

Commit

Permalink
tissot: Build bootctrl.msm8953 using Soong
Browse files Browse the repository at this point in the history
This is required to build the recovery variant of the
same to be used by fastbootd.

Bug: 78793464
Test: make
Change-Id: I16eddcb853bda1a9969810f258884ebdbbfc1f5c
  • Loading branch information
Hridya Valsaraju authored and Abhinavgupta371 committed Jun 23, 2020
1 parent 62f4391 commit d7bd2b6
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
1 change: 1 addition & 0 deletions Android.bp
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
soong_namespace {
imports: ["hardware/qcom/bootctrl"],
}
21 changes: 21 additions & 0 deletions bootctrl/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//
// Copyright (C) 2018 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.msm8953",
defaults: ["bootctrl_hal_defaults"],
static_libs: ["libgptutils.tissot"],
}
10 changes: 4 additions & 6 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ PRODUCT_PACKAGES += \
otapreopt_script

# Boot control
PRODUCT_PACKAGES += \
[email protected] \
bootctrl.msm8953.recovery

PRODUCT_PACKAGES += \
[email protected] \
[email protected] \
Expand All @@ -49,12 +53,6 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES_DEBUG += \
bootctl

PRODUCT_STATIC_BOOT_CONTROL_HAL := \
bootctrl.msm8953 \
libcutils \
libgptutils.tissot.recovery \
libz

# Audio configuration
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
Expand Down

0 comments on commit d7bd2b6

Please sign in to comment.