platform_build_soong/android
Jingwen Chen 1e347860d5 bp2build: allowlist //external/libcap/...
This builds cap_names.list.h, which uses an eponymous filegroup
"generate_cap_names_list.awk" in Soong, but uses the file target
directly in Bazel.

This also improve filegroup support for mixed builds, by issuing a
cquery call _without_ arch. Filegroups in Soong don't have configurable
properties, so don't generate Bazel filegroups into buildroot's
config_nodes (which was x86_64 by default).

The mixed_build_root now looks like this:

```
config_node(...)
config_node(...)
config_node(...)
config_node(...)

...

filegroup(name = "common",
    srcs = ["@//bionic/linker:linker_sources_x86",
            "@//bionic/libc:kernel_input_headers",
            "@//system/timezone/apex:com.android.tzdata-androidManifest",
            "@//external/libcap:generate_cap_names_list.awk",
            "@//bionic/linker:linker_sources_arm64",
            "@//bionic/linker:linker_sources",
            "@//bionic/libc:libc_sources_shared_arm",
            "@//bionic/linker:linker_sources_x86_64",
            "@//bionic/libc:all_kernel_uapi_headers",
            "@//build/bazel/examples/apex/minimal:build.bazel.examples.apex.minimal-file_contexts",
            "@//system/core/libcutils:android_filesystem_config_header",
            "@//bionic/libc:libc_sources_static",
            "@//bionic/linker:linker_sources_arm",
            "@//bionic/libc/tools:bionic-gensyscalls",
            "@//bionic/tools:bionic-generate-version-script",
            "@//bionic/libc:libc_sources_shared"],
)

mixed_build_root(name = "buildroot",
    deps = [":x86",
            ":arm64",
            ":arm",
            ":common",
            ":x86_64"],
)
```

Test: CI
Fixes: 198595323
Fixes: 198235838
Change-Id: I6df9a14da556cf358d96e6a99b514f66a2638295
2021-09-09 07:54:16 +00:00
..
soongconfig Fix nested properties in soong config structs 2021-03-05 17:26:37 -08:00
Android.bp Invoke soong_docs from the bootstrap Ninja file. 2021-09-08 09:31:52 +02:00
android_test.go Remove uses of FixtureFactory from android package 2021-03-22 18:31:53 +00:00
androidmk.go Support musl builds in Make 2021-08-18 22:02:54 +00:00
androidmk_test.go Remove uses of FixtureFactory from android package 2021-03-22 18:31:53 +00:00
apex.go Merge changes from topic "stub_from_rust" 2021-06-25 17:52:43 +00:00
apex_test.go Add platform_apis property to APEX module type 2021-06-24 11:28:33 +09:00
api_levels.go cc/linker.go: check min_sdk_version. 2021-05-14 14:03:53 -07:00
arch.go Handle arch-specific/not properties the same. 2021-08-17 13:06:54 -04:00
arch_list.go [arm64] Build NDK with PAuth and BTI 2021-01-26 08:15:07 +01:00
arch_test.go Reland "Split the x86 host toolchain into glibc and musl variants" 2021-07-23 22:25:36 +00:00
bazel.go bp2build: allowlist //external/libcap/... 2021-09-09 07:54:16 +00:00
bazel_handler.go bp2build: allowlist //external/libcap/... 2021-09-09 07:54:16 +00:00
bazel_handler_test.go bp2build: allowlist //external/libcap/... 2021-09-09 07:54:16 +00:00
bazel_paths.go Rename BuildDir and NinjaBuildDir. 2021-08-27 10:08:49 +02:00
bazel_test.go bp2build: add allowlist for package-level conversions. 2021-03-24 02:27:19 -04:00
config.go Implement cleanups requested in aosp/1818245: 2021-09-08 15:33:37 +02:00
config_test.go Fix writing soong.variables . 2021-03-17 16:35:13 +01:00
csuite_config.go Convert android/csuite_config_test.go to test fixtures 2021-03-17 16:18:17 +00:00
csuite_config_test.go Remove uses of FixtureFactory from android package 2021-03-22 18:31:53 +00:00
deapexer.go Export boot image files from prebuilt_apex/apex_set 2021-06-17 23:05:43 +01:00
defaults.go Allow missing java_sdk_library files in AllowMissingDependencies builds 2021-05-20 18:00:37 -07:00
defaults_test.go Remove uses of FixtureFactory from android package 2021-03-22 18:31:53 +00:00
defs.go Move android package on top of remotexec 2021-03-18 16:17:34 -07:00
depset_generic.go Reimplement DepSet as a wrapper around a generic implementation 2020-12-07 12:27:50 -08:00
depset_paths.go Reimplement DepSet as a wrapper around a generic implementation 2020-12-07 12:27:50 -08:00
depset_test.go Reimplement DepSet as a wrapper around a generic implementation 2020-12-07 12:27:50 -08:00
deptag.go Annotate dependency tags for dependencies of installed files 2020-11-23 18:06:08 -08:00
deptag_test.go Remove uses of FixtureFactory from android package 2021-03-22 18:31:53 +00:00
expand.go
expand_test.go
filegroup.go bp2build: allowlist //external/libcap/... 2021-09-09 07:54:16 +00:00
fixture.go Rename BuildDir and NinjaBuildDir. 2021-08-27 10:08:49 +02:00
fixture_test.go Remove FixturePreparer.Extend() 2021-04-01 10:33:20 +01:00
hooks.go
image.go Update some comments about the image mutator. 2021-06-15 15:49:51 +02:00
license.go Switch Effective_license_text from []string to Paths 2021-05-11 08:24:59 +01:00
license_kind.go Revert^2 "Add ability to declare licenses in soong." 2021-01-06 20:48:24 -08:00
license_kind_test.go Do not modules in files called "Blueprints". 2021-09-02 11:46:24 +02:00
license_sdk_member.go Refactor SdkMemberType.AddDependencies() 2021-08-31 17:07:07 +01:00
license_test.go Do not modules in files called "Blueprints". 2021-09-02 11:46:24 +02:00
licenses.go Fix typo in exempt from licenses property list. 2021-09-03 17:25:35 +00:00
licenses_test.go Do not modules in files called "Blueprints". 2021-09-02 11:46:24 +02:00
makefile_goal.go Remove AndroidMkExtraFootersFunc entries param. 2020-12-07 10:23:54 -08:00
makevars.go Add a new SingletonModule type 2021-01-07 17:19:27 -08:00
metrics.go Upgrade to golang protobuf api v2 2021-07-23 11:12:05 -07:00
module.go Add tidy-soong, tidy-dir-path, module-tidy targets 2021-09-07 14:56:44 -07:00
module_test.go Use bazel syntax for fully qualified name in path property 2021-07-12 20:15:06 +01:00
mutator.go Don't create a new module for bp2build conversion. 2021-08-17 15:57:09 -04:00
mutator_test.go Remove uses of FixtureFactory from android package 2021-03-22 18:31:53 +00:00
namespace.go Extract preparer for namespace 2021-07-09 23:54:01 +01:00
namespace_test.go Extract preparer for namespace 2021-07-09 23:54:01 +01:00
neverallow.go Add install_in_root to cc_binary 2021-06-18 05:25:44 +00:00
neverallow_test.go start eating include_dirs from both ends 2021-04-27 02:56:03 +00:00
ninja_deps.go Store ninja file deps from PackageVarContext in the config 2020-11-17 10:50:19 -08:00
ninja_deps_test.go Remove uses of FixtureFactory from android package 2021-03-22 18:31:53 +00:00
notices.go
onceper.go
onceper_test.go
override_module.go Allows prebuilts in override_apex. 2021-09-02 09:28:52 -07:00
package.go Add error handling to test fixtures 2021-03-02 20:17:19 +00:00
package_ctx.go Move android package on top of remotexec 2021-03-18 16:17:34 -07:00
package_test.go Do not modules in files called "Blueprints". 2021-09-02 11:46:24 +02:00
packaging.go Generate linker config with packaged items. 2021-05-11 11:56:54 +09:00
packaging_test.go TransitivePackagingSpecs should follow "installable" deps 2021-07-27 19:26:10 +09:00
path_properties.go Support fully qualified names in android:"path" properties 2021-07-14 23:58:49 +01:00
path_properties_test.go Support customizing behavior around sourceOrOutputDependencyTag 2021-07-09 23:54:01 +01:00
paths.go Remove some unused args from Blueprint. 2021-08-31 11:42:48 +02:00
paths_test.go Support fully qualified names in android:"path" properties 2021-07-14 23:58:49 +01:00
phony.go Refactor 'in_make' to mean Kati is not skipped. 2020-11-23 00:29:18 -05:00
prebuilt.go Choose prebuilt or source via an Soong config variable 2021-07-14 20:23:06 +00:00
prebuilt_build_tool.go Replace android.BuildOs with Config.BuildOS 2021-07-20 12:46:48 -07:00
prebuilt_test.go Replace android.BuildOs with Config.BuildOS 2021-07-20 12:46:48 -07:00
proto.go Pass pctx and ctx to NewRuleBuilder 2020-12-01 16:22:16 -08:00
register.go Remove bp2build deps mutator 2021-07-22 18:09:34 -04:00
rule_builder.go Upgrade to golang protobuf api v2 2021-07-23 11:12:05 -07:00
rule_builder_test.go Add validations to RuleBuilderCommand 2021-04-21 11:46:50 -07:00
sandbox.go cd to / before running soong_build . 2021-03-03 09:14:22 +01:00
sdk.go Make sdk member type related types and vars type specific 2021-08-31 17:31:34 +01:00
sdk_version.go ApiLevel of "" and "core_platform" is FutureApiLevel 2021-04-15 16:53:23 +09:00
singleton.go Rename BuildDir and NinjaBuildDir. 2021-08-27 10:08:49 +02:00
singleton_module.go Add a new SingletonModule type 2021-01-07 17:19:27 -08:00
singleton_module_test.go Remove uses of FixtureFactory from android package 2021-03-22 18:31:53 +00:00
soong_config_modules.go Suggest using add_soong_config_ macros instead of direct variable assignments 2021-08-24 14:06:20 -07:00
soong_config_modules_test.go Add test to reproduce bug in error message. 2021-07-15 12:38:35 -04:00
test_asserts.go Rename BuildDir and NinjaBuildDir. 2021-08-27 10:08:49 +02:00
test_suites.go Replace android.BuildOs with Config.BuildOS 2021-07-20 12:46:48 -07:00
testing.go Rename BuildDir and NinjaBuildDir. 2021-08-27 10:08:49 +02:00
util.go Add FilterListPred. 2021-03-28 22:06:33 +01:00
util_test.go Add FilterListPred. 2021-03-28 22:06:33 +01:00
variable.go Merge "Add support for extension version in variables" 2021-09-01 09:00:15 +00:00
variable_test.go Remove uses of FixtureFactory from android package 2021-03-22 18:31:53 +00:00
visibility.go Simplify preparers now that tests use consistent registration order 2021-03-09 14:14:48 +00:00
visibility_test.go Do not modules in files called "Blueprints". 2021-09-02 11:46:24 +02:00