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
113 lines
2.5 KiB
Text
113 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"],
|
|
}
|
|
|
|
liblp_lib_deps = [
|
|
"libbase",
|
|
"liblog",
|
|
"libcrypto_utils",
|
|
"libsparse",
|
|
"libext4_utils",
|
|
"libz",
|
|
]
|
|
|
|
cc_library {
|
|
name: "liblp",
|
|
host_supported: true,
|
|
recovery_available: true,
|
|
defaults: ["fs_mgr_defaults"],
|
|
cppflags: [
|
|
"-D_FILE_OFFSET_BITS=64",
|
|
],
|
|
srcs: [
|
|
"builder.cpp",
|
|
"images.cpp",
|
|
"partition_opener.cpp",
|
|
"property_fetcher.cpp",
|
|
"reader.cpp",
|
|
"utility.cpp",
|
|
"writer.cpp",
|
|
],
|
|
shared_libs: [
|
|
"libcrypto",
|
|
] + liblp_lib_deps,
|
|
target: {
|
|
windows: {
|
|
enabled: true,
|
|
},
|
|
android: {
|
|
shared_libs: [
|
|
"libcutils",
|
|
],
|
|
},
|
|
},
|
|
export_include_dirs: ["include"],
|
|
}
|
|
|
|
filegroup {
|
|
name: "liblp_test_srcs",
|
|
srcs: [
|
|
"builder_test.cpp",
|
|
"device_test.cpp",
|
|
"io_test.cpp",
|
|
"test_partition_opener.cpp",
|
|
"utility_test.cpp",
|
|
],
|
|
}
|
|
|
|
cc_defaults {
|
|
name: "liblp_test_defaults",
|
|
defaults: ["fs_mgr_defaults"],
|
|
cppflags: [
|
|
"-Wno-unused-parameter",
|
|
],
|
|
static_libs: [
|
|
"libcutils",
|
|
"libgmock",
|
|
"libfs_mgr",
|
|
"liblp",
|
|
"libcrypto_static",
|
|
] + liblp_lib_deps,
|
|
header_libs: [
|
|
"libstorage_literals_headers",
|
|
],
|
|
stl: "libc++_static",
|
|
srcs: [":liblp_test_srcs"],
|
|
}
|
|
|
|
cc_test {
|
|
name: "liblp_test",
|
|
defaults: ["liblp_test_defaults"],
|
|
test_config: "liblp_test.xml",
|
|
test_suites: ["device-tests"],
|
|
}
|
|
|
|
cc_test {
|
|
name: "vts_core_liblp_test",
|
|
defaults: ["liblp_test_defaults"],
|
|
test_suites: ["vts"],
|
|
auto_gen_config: true,
|
|
test_min_api_level: 29,
|
|
require_root: true,
|
|
}
|
|
|
|
cc_test {
|
|
name: "vts_kernel_liblp_test",
|
|
defaults: ["liblp_test_defaults"],
|
|
}
|