platform_build_soong/android
Jiyong Park 87788b5247 Don't assume host arch is always x86
This change fixes some places where host arch is assumed to be x86 to
form a path element like linux-x86. In preparation for non-x86 host
targets, the host arch part is derived from the context.

In addition, InstallForceOS() is refactored so that it can override not
only OsType, but also ArchType. Without this, the paths for the
robolectic modules will be changed from linux-x86 to linux-common, which
breaks several other places where the old paths are expected.

Bug: 134795810
Test: m
Change-Id: Ib38c715948ae546e55021ece82bac1d82e9e5da0
2020-09-08 15:12:10 +09:00
..
soongconfig Soong package structure refactoring 2020-06-01 13:44:48 -07:00
Android.bp Merge "Reland "Add prebuilt_build_tool to allow genrules to use prebuilt tools"" 2020-08-07 20:27:40 +00:00
android_test.go Share buildDir for android/soong/android tests 2019-06-10 15:51:06 -07:00
androidmk.go Merge "Fix droiddoc disting when WITHOUT_CHECK_API is true." 2020-08-10 05:22:24 +00:00
androidmk_test.go Fix dist(s)-with-tag and add tests to prevent regression. 2020-07-21 12:30:39 +00:00
apex.go Reland: Deduplicate APEX variants that would build identically 2020-08-19 10:21:17 -07:00
apex_test.go Reland: Deduplicate APEX variants that would build identically 2020-08-19 10:21:17 -07:00
api_levels.go Merge "Apex: support codenames for min_sdk_version" 2020-04-25 04:41:44 +00:00
arch.go Don't assume host arch is always x86 2020-09-08 15:12:10 +09:00
arch_test.go Make it possible to specify separate rules for native_bridge case 2020-06-09 13:31:37 +02:00
bazel_overlay.go Create a AOSP Bazel overlay workspace with Soong 2020-08-06 10:24:21 +00:00
config.go Introduce BOARD_CURRENT_API_LEVEL_FOR_VENDOR_MODULES 2020-08-27 23:09:54 +09:00
config_test.go Fix `go vet` issues 2018-07-22 21:18:45 -07:00
csuite_config.go Create C-Suite config module 2019-10-18 18:28:00 +00:00
csuite_config_test.go Move filesystem into Config 2019-12-18 08:19:10 -08:00
defaults.go Remove unnecessary methods/fields of DefaultsModule/Base 2020-09-03 10:12:10 +01:00
defaults_test.go Fix product variables in defaults modules 2020-02-06 17:43:29 -08:00
defs.go Reland "Add prebuilt_build_tool to allow genrules to use prebuilt tools" 2020-08-06 15:56:38 -07:00
depset.go Add DepSets 2020-07-16 12:50:11 -07:00
depset_test.go Add DepSets 2020-07-16 12:50:11 -07:00
env.go Call Delve using exec() instead of "dlv attach". 2020-05-18 09:50:18 +02:00
expand.go Fix android.Expand and ninja escaping 2019-07-11 14:52:17 -07:00
expand_test.go Fix android.Expand and ninja escaping 2019-07-11 14:52:17 -07:00
filegroup.go Reland "Support per-module MakeVars" 2020-08-06 15:56:09 -07:00
hooks.go Add SrcPath to InstallHookContext 2020-06-04 01:26:16 +01:00
image.go Add ramdisk image. 2020-01-22 16:54:18 -08:00
makefile_goal.go Add makefile_goal. 2020-07-28 09:51:15 -07:00
makevars.go Reland "Support per-module MakeVars" 2020-08-06 15:56:09 -07:00
metrics.go Collect metrics from inside soong_build 2020-02-25 20:50:00 +00:00
module.go Don't assume host arch is always x86 2020-09-08 15:12:10 +09:00
module_test.go Move filesystem into Config 2019-12-18 08:19:10 -08:00
mutator.go Revert "Create os and arch variants for GoBinaryTool modules" 2020-09-03 03:45:42 +00:00
mutator_test.go Add FinalDeps mutator phase, where CreateVariations is disallowed. 2020-01-21 11:40:02 +00:00
namespace.go Simplify vendor conditionals 2020-01-24 16:43:40 -08:00
namespace_test.go Move filesystem into Config 2019-12-18 08:19:10 -08:00
neverallow.go Update neverallows path for sdkextensions 2020-08-11 10:32:21 +01:00
neverallow_test.go Add makefile_goal. 2020-07-28 09:51:15 -07:00
notices.go Make a soong-only copy of generate-notice-files.py 2020-03-03 13:50:53 -08:00
onceper.go Convert droidstubs to android.RuleBuilder 2019-07-18 14:28:14 -07:00
onceper_test.go Prevent hangs in OncePer when the callback panics 2019-05-14 18:40:13 +00:00
override_module.go Capture list of unused methods when shrinking in R8 2020-08-19 11:19:14 -07:00
package.go Simplify package by using LoadHook instead of mutators 2020-05-05 20:47:04 +01:00
package_ctx.go Refactor RBE support for Javac/R8/D8 to use the remoteexec package. 2020-04-28 11:37:20 -04:00
package_test.go Simplify package by using LoadHook instead of mutators 2020-05-05 20:47:04 +01:00
path_properties.go Dedup path properties across property structs 2019-07-16 09:52:23 -07:00
path_properties_test.go Move filesystem into Config 2019-12-18 08:19:10 -08:00
paths.go Don't assume host arch is always x86 2020-09-08 15:12:10 +09:00
paths_test.go Don't assume host arch is always x86 2020-09-08 15:12:10 +09:00
phony.go Define Soong phony rules in Make 2020-06-09 14:38:50 -07:00
prebuilt.go Do not consider disabled prebuilt variants. 2020-07-15 14:27:13 +01:00
prebuilt_build_tool.go Reland "Add prebuilt_build_tool to allow genrules to use prebuilt tools" 2020-08-06 15:56:38 -07:00
prebuilt_test.go Do not consider disabled prebuilt variants. 2020-07-15 14:27:13 +01:00
proto.go Add method to determine variations from a Target 2019-10-16 14:52:30 -07:00
register.go Define Soong phony rules in Make 2020-06-09 14:38:50 -07:00
rule_builder.go Add sandbox property to the javadoc rule. 2020-06-17 22:57:42 -04:00
rule_builder_test.go Add support for order-only dependencies to RuleBuilder 2020-02-28 18:16:13 +00:00
sandbox.go Sandbox soong_build by changing to root directory 2020-01-11 01:11:46 +00:00
sdk.go Disable all host OS variants except those explicitly included. 2020-08-03 21:06:50 +01:00
singleton.go Define Soong phony rules in Make 2020-06-09 14:38:50 -07:00
soong_config_modules.go Merge "soong config: add value_variable substitution" 2020-04-09 20:16:08 +00:00
soong_config_modules_test.go soong config: add value_variable substitution 2020-03-24 07:15:16 -07:00
test_suites.go Don't assume host arch is always x86 2020-09-08 15:12:10 +09:00
testing.go Return all rules when TestingModule.Rule fails 2020-08-28 08:15:09 +00:00
util.go Use common helper functions for getting sorted map keys. 2020-08-20 12:37:03 +01:00
util_test.go Optimize FirstUniqueStrings and FirstUniquePaths 2020-03-02 15:00:15 -08:00
variable.go Introduce BOARD_CURRENT_API_LEVEL_FOR_VENDOR_MODULES 2020-08-27 23:09:54 +09:00
variable_test.go Fix product variables in defaults modules 2020-02-06 17:43:29 -08:00
visibility.go Fix special case when appending a visibility rule to //visibility:private. 2020-05-14 16:52:24 +01:00
visibility_test.go Add //visibility:override to allow control over inheritance 2020-05-12 20:07:46 +01:00
vts_config.go Rename VTS to VTS10 2020-03-28 16:42:17 -07:00
vts_config_test.go Move filesystem into Config 2019-12-18 08:19:10 -08:00
writedocs.go Add missing soong_docs inputs 2020-06-26 10:36:18 -04:00