Revert "Add ramdisk_available to init_first_stage's deps" Revert "Add ramdisk_available to init_first_stage's deps" Revert "Add ramdisk_available to init_first_stage's deps" Revert "Add ramdisk_available to init_first_stage's deps" Revert "Add ramdisk_available to init_first_stage's deps" Revert "Add ramdisk_available to init_first_stage's deps" Revert "Add ramdisk_available to init_first_stage's deps" Revert "Update init_first_stage" Revert "Add ramdisk_available to init_first_stage's deps" Revert "Add ramdisk_available to init_first_stage's deps" Revert "Add BOARD_BUILD_SYSTEM_ROOT_IMAGE to config vars" Revert "Add install_in_root to cc_binary" Revert "Add ramdisk_available to init_first_stage's deps" Revert submission 15071196-init_first_stage_soong Reason for revert: fixes b/192248690 Reverted Changes: I23cf4f975:Add ramdisk_available to init_first_stage's deps Icd98c7e24:Add ramdisk_available to init_first_stage's deps If9da9ba16:Add ramdisk_available to init_first_stage's deps Ibc8668029:Add ramdisk_available to init_first_stage's deps I3b4b8c475:Add ramdisk_available to init_first_stage's deps I59cd149e0:Completely migrate init first stage to Soong I36d789578:Add ramdisk_available to init_first_stage's deps I2a0daa612:Add BUILD_USES_RECOVERY_AS_BOOT to soong config Ic76c325ce:Directly create ramdisk dirs in ramdisk image rule... I4c5374deb:Add BOARD_BUILD_SYSTEM_ROOT_IMAGE to config vars I8aab5faf3:Add ramdisk_available to init_first_stage's deps I9d5a10661:Add ramdisk_available to init_first_stage's deps Iaa2edeb4a:Add ramdisk_available to init_first_stage's deps I7cb582ca0:Update init_first_stage I06091d15e:Add ramdisk_available to init_first_stage's deps I8bdb8dda3:Add ramdisk_available to init_first_stage's deps I7436b8dd1:Add ramdisk_available to init_first_stage's deps I39693fd86:Add ramdisk_available to init_first_stage's deps I0a9ba90f0:Add ramdisk_available to init_first_stage's deps Ib66b4c4ea:Add ramdisk_available to init_first_stage's deps I31ce63d23:Add ramdisk_available to init_first_stage's deps Icb580f97c:Add ramdisk_available to init_first_stage's deps I044a075b7:Add ramdisk_available to init_first_stage's deps I33164a7e7:Fix ndk and aml arch order Ib8d92904a:Add ramdisk_available to sysprop_library Ibc3516453:Add install_in_root to cc_binary Change-Id: I147777bb1c4a3b818bc0118c6cf44ccfbf7970a0
116 lines
2.5 KiB
Text
116 lines
2.5 KiB
Text
//
|
|
// 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.
|
|
//
|
|
|
|
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
cc_library_headers {
|
|
name: "libfiemap_headers",
|
|
recovery_available: true,
|
|
export_include_dirs: ["include"],
|
|
}
|
|
|
|
filegroup {
|
|
name: "libfiemap_srcs",
|
|
srcs: [
|
|
"fiemap_writer.cpp",
|
|
"fiemap_status.cpp",
|
|
"image_manager.cpp",
|
|
"metadata.cpp",
|
|
"split_fiemap_writer.cpp",
|
|
"utility.cpp",
|
|
],
|
|
}
|
|
|
|
filegroup {
|
|
name: "libfiemap_binder_srcs",
|
|
srcs: [
|
|
"binder.cpp",
|
|
],
|
|
}
|
|
|
|
cc_defaults {
|
|
name: "libfiemap_binder_defaults",
|
|
srcs: [":libfiemap_binder_srcs"],
|
|
whole_static_libs: [
|
|
"gsi_aidl_interface-cpp",
|
|
"libgsi",
|
|
"libgsid",
|
|
],
|
|
shared_libs: [
|
|
"libbinder",
|
|
"libutils",
|
|
],
|
|
}
|
|
|
|
// Open up a passthrough IImageManager interface. Use libfiemap_binder whenever
|
|
// possible. This should only be used when binder is not available.
|
|
filegroup {
|
|
name: "libfiemap_passthrough_srcs",
|
|
srcs: [
|
|
"passthrough.cpp",
|
|
],
|
|
}
|
|
|
|
cc_test {
|
|
name: "fiemap_writer_test",
|
|
static_libs: [
|
|
"libbase",
|
|
"libdm",
|
|
"libfs_mgr",
|
|
"liblog",
|
|
"libgsi",
|
|
],
|
|
|
|
data: [
|
|
"testdata/unaligned_file",
|
|
"testdata/file_4k",
|
|
"testdata/file_32k",
|
|
],
|
|
|
|
srcs: [
|
|
"fiemap_writer_test.cpp",
|
|
],
|
|
|
|
test_suites: ["vts", "device-tests"],
|
|
auto_gen_config: true,
|
|
test_min_api_level: 29,
|
|
require_root: true,
|
|
}
|
|
|
|
cc_test {
|
|
name: "fiemap_image_test",
|
|
static_libs: [
|
|
"libcrypto_utils",
|
|
"libdm",
|
|
"libext4_utils",
|
|
"libfs_mgr",
|
|
"liblp",
|
|
],
|
|
shared_libs: [
|
|
"libbase",
|
|
"libcrypto",
|
|
"libcutils",
|
|
"liblog",
|
|
],
|
|
srcs: [
|
|
"image_test.cpp",
|
|
],
|
|
test_suites: ["device-tests"],
|
|
auto_gen_config: true,
|
|
require_root: true,
|
|
}
|