Commit graph

27459 commits

Author SHA1 Message Date
Alistair Delva
e172eaf67b Alpha sort rust allowed_list.go
Change-Id: If0e9938bb776f42037b57680505de19b9cd88771
2020-10-21 06:56:20 -07:00
Nikita Ioffe
7020ca00e5 Merge "Update allowed deps for sdkext apex" 2020-10-21 11:29:52 +00:00
Jingwen Chen
17958198a6 Merge "Add symlink_outputs support to Soong." 2020-10-21 08:59:16 +00:00
Treehugger Robot
81498621d3 Merge "Allow Strip in Debuggable" 2020-10-21 04:10:17 +00:00
Treehugger Robot
2e251afccc Merge "Use sysprop stub regarding to the install location" 2020-10-21 01:21:24 +00:00
Nikita Ioffe
dd203b6b34 Update allowed deps for sdkext apex
Test: m
Bug: 171096530
Bug: 171330443
Change-Id: Iacaa4e8c6ed2e3854ef973a84bb0e44c433c00d3
2020-10-20 21:08:41 +00:00
Treehugger Robot
7397707014 Merge "Revert "Add -fdebug-compilation-dir option"" 2020-10-20 19:58:46 +00:00
Philip Cuadra
328e0bf8cb Allow Strip in Debuggable
Allow Strip to be set in Debuggable builds.

Bug: 171273461
Test: manual confirmation
Change-Id: Ief259891e8e3fd19b31377e92fbbad28daa405ac
2020-10-20 12:22:00 -07:00
Martin Stjernholm
f657ff1d00 Merge "Move the intermediate directory for ART boot images." 2020-10-20 15:08:23 +00:00
Kousik Kumar
d207cbed65 Revert "Add -fdebug-compilation-dir option"
Revert submission 1461902-debug-compilation-dir

Reason for revert: "-Xclang" isn't being uniformly respected everywhere. For example, in ".S" compilations, when I pass `-Xclang -fdebug-compilation-dir=.", the assembler seems to be ignoring it and then inserting the `pwd` into the command, however when I pass "-fdebug-compilation-dir=.", it strips out the path to the current working directory.
This indicates that we need to update re-client's input processor so that we can pass -fdebug-compilation-dir=. without "-Xclang" and then remove `PWD` setting.
I'll followup with a patch to add -fdebug-compilation-dir.

Reverted Changes:
Ib0f271e55:Add -fdebug-compilation-dir option
Ifa0592af5:Remove env-var-allowlist

Change-Id: I12fa0bf2fb4975ac3d1bffaf1358331548abc339
2020-10-20 09:29:34 -04:00
Inseob Kim
fe61218f7f Use sysprop stub regarding to the install location
Rather than the owner of sysprop, the install location is important when
choosing a stub for sysprop_library.

Bug: 171170584
Test: soong test
Change-Id: Iba934d14dd235bd85d0bd631ef6bad83c1b4f551
2020-10-20 16:29:55 +09:00
Treehugger Robot
d9052d177c Merge "Deprecate both USE_GOMA and FORCE_USE_GOMA flags" 2020-10-20 03:21:59 +00:00
Jingwen Chen
f808c82a23 Merge "Bazel overlay: write all .bzl files in <bazel_overlay>/build/bazel/overlay_rules directory" 2020-10-20 01:40:23 +00:00
Treehugger Robot
4ccc616102 Merge "Set flag exporter provider for vendor snapshots" 2020-10-20 00:33:49 +00:00
Kiyoung Kim
3625d86396 Merge "Handle new filetype 'linker_config'" 2020-10-20 00:23:58 +00:00
Treehugger Robot
1537692837 Merge "Do not exclude VNDK modules from SoC/Product-specific modules" 2020-10-20 00:02:36 +00:00
Martin Stjernholm
ea581fc95d Move the intermediate directory for ART boot images.
Free up the directory $(PRODUCT_OUT)/apex/com.android.art for the
release ART APEX. Without this we'll get conflicting install paths in
make.

Test: build/soong/soong_ui.bash --make-mode \
    TARGET_PRODUCT=sdk_x86_64 TARGET_BUILD_VARIANT=userdebug nothing
  with http://r.android.com/q/topic:release-apex-rename+author:mast
  present to rename the ART release APEX to com.android.art.
Test: Build & boot on CF
Test: apct/device_boot_test and asit/perf/boottime_test on
  blueline_jitzygote-userdebug
Test: avd/avd_boot_health_check on cf_x86_phone-userdebug_coverage_art
Bug: 169639321
Change-Id: I0b263d5922d438834e5c804e55f69a2a1421ab73
Merged-In: I0b263d5922d438834e5c804e55f69a2a1421ab73
2020-10-19 20:42:46 +01:00
Liz Kammer
e72e1ff98b Merge "Error if visibility specifies a module" 2020-10-19 19:06:49 +00:00
Jooyung Han
18e990ec1d Merge "Move tradefed_binary.go into subdir" 2020-10-19 17:31:20 +00:00
Liz Kammer
15df2f2c5d Merge "Expand visiblity error" am: b51d6d13a8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1462691

Change-Id: I8824c97bd607c58e2b71a456bdeb05f2941043a8
2020-10-19 15:26:08 +00:00
Liz Kammer
b51d6d13a8 Merge "Expand visiblity error" 2020-10-19 15:01:09 +00:00
Jingwen Chen
311bd38082 Bazel overlay: write all .bzl files in <bazel_overlay>/build/bazel/overlay_rules directory
This keeps the top level directory clean, and leverages the
new "build/bazel" repo location / package path.

Test: m bazel_overlay && cd out/soong/bazel_overlay && bazel cquery //...

Bug: 171180724

Fixes: 171180724
Signed-off-by: Jingwen Chen <jingwen@google.com>
Change-Id: I151b8f3d2177167711e5974e5eabad8d6e910276
2020-10-19 07:59:46 -04:00
Kousik Kumar
b328f6dc85 Deprecate both USE_GOMA and FORCE_USE_GOMA flags
Test:
m USE_GOMA=true GOMA_DIR=$(goma_ctl goma_dir) toybox
m FORCE_USE_GOMA=true GOMA_DIR=$(goma_ctl goma_dir) toybox
both result in error message being printed.

Change-Id: I94ccaf217dba71aca990d88d205bad669a49a2f5
2020-10-19 01:48:23 -04:00
Jingwen Chen
ce679d29ec Add symlink_outputs support to Soong.
This CL adds symlink_outputs to various locations in Soong that creates
actions that creates symlink outputs, and explicitly mark them as such.

Test: m
Bug: 160568334
Change-Id: I322751bada52a9f49011c74731d84761586e03e7
2020-10-19 01:26:50 -04:00
Jooyung Han
1e611b858f Move tradefed_binary.go into subdir
Having two packages in the same directory makes it harder for go tools
to understande the directory structure.

For example, in build/soong, "go test ./cc/..." fails with cyclic
package imports.

Bug: n/a
Test: go test ./cc/... (in build/soong)
Change-Id: I7a040bf30b1e001680dd43fed9747e9651372274
2020-10-19 01:55:06 +00:00
Inseob Kim
67be732de1 Set flag exporter provider for vendor snapshots
Also, TestVendorSnapshotUse is amended so it can test whether vndk
snapshot and vendor snapshot modules export their flags correctly.

Bug: N/A
Test: manual test
Change-Id: Ie62ad1206449b1a40db8a2282af00616db693017
2020-10-19 10:15:28 +09:00
Treehugger Robot
85e95f70a0 Merge "Set flag exporter provider for vndk_prebuilt libs" am: 509a9d35ac
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1463642

Change-Id: Ia17fa272bda5bc9e647b9c8f31574471fc98333e
2020-10-18 12:30:48 +00:00
Treehugger Robot
509a9d35ac Merge "Set flag exporter provider for vndk_prebuilt libs" 2020-10-18 12:19:05 +00:00
Justin Yun
543f60bc31 Do not exclude VNDK modules from SoC/Product-specific modules
The VNDK modules were excluded from SoC/Product specific modules
because they were installed to system partition. However, as they
moved to VNDK APEX, we don't need to make a exception for VNDK
modules.

Bug: 170711679
Test: Follow the steps below:
$ lunch aosp_x86-eng
$ m nothing # ctrl-C while running soong_build
$ rm out/soong/.soong.in_make
$ m --skip-make libc

Change-Id: I001bc98e4031e5e8bcdea9cb920caa21b8744752
2020-10-18 02:06:48 +00:00
Julien Desprez
b1c6f59282 Merge "Add the Tradefed binary (suite) rules to soong" am: 34f0290582
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1463105

Change-Id: I36fb17ee6db5ee6bea294fabc4d2e0e417fdc685
2020-10-16 20:06:01 +00:00
Julien Desprez
34f0290582 Merge "Add the Tradefed binary (suite) rules to soong" 2020-10-16 20:00:22 +00:00
Inseob Kim
70cb3b63b4 Set flag exporter provider for vndk_prebuilt libs
vndk_prebuilt exports some flags, so the provider should be set.

Bug: N/A
Test: m
Change-Id: I6c4df4139e66f992b63686adfe0635f08bafa649
2020-10-16 16:23:05 +09:00
Kousik Kumar
157f088af3 Merge "Add -fdebug-compilation-dir option" am: 5109979468
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1460104

Change-Id: I1ff47b62bdb4e92872af68546e7ecf26dc8869a6
2020-10-16 06:08:28 +00:00
Kousik Kumar
5109979468 Merge "Add -fdebug-compilation-dir option" 2020-10-16 05:52:51 +00:00
Julien Desprez
37de54ea11 Add the Tradefed binary (suite) rules to soong
Test: make cts
Bug: 170967708
Change-Id: Ia9303dd1fd137e227b22db1a433bcf7140f083a5
2020-10-15 19:07:55 -07:00
Liz Kammer
873f4b612a Error if visibility specifies a module
Clarify that only __pkg__ and __subpackages__ are valid package
visibility specifications.

Test: go test soong tests
Test: m nothing
Bug: 168926331
Change-Id: I810e9ef92d081d85cd762e7f8c0b0716f0222883
2020-10-15 17:40:10 -07:00
Treehugger Robot
479ed0c3cf Merge "Add empty tag support for java_import" am: faf30e19d6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1462684

Change-Id: Ia8a1d365f8ac486c38e9850856e78c32b606a256
2020-10-15 22:50:19 +00:00
Liz Kammer
e501bb4d48 Expand visiblity error
Expands the error to suggest a potential fix, giving the package path
for the module that needs visiblity.

Test: go test soong tests
Bug: 168926331
Change-Id: Ie95dec03f5e2c3190bfaed1f0e5789eeb0ab1878
2020-10-15 15:38:27 -07:00
Treehugger Robot
faf30e19d6 Merge "Add empty tag support for java_import" 2020-10-15 21:47:11 +00:00
Tom Cherry
5a09f1ca3b Merge "Update liblog header paths after git project move" am: 2517c408e5
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1455957

Change-Id: I4bf066a21db526d0b6a2f1e8f69565ff279f6d85
2020-10-15 21:33:10 +00:00
Tom Cherry
2517c408e5 Merge "Update liblog header paths after git project move" 2020-10-15 21:24:58 +00:00
Liz Kammer
b524af7d01 Clarify error for soong_ui failing to parse args am: 0e7993e3d2
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1462685

Change-Id: I70d7bc3c58b7d0e0993b90661d9415714dd000c6
2020-10-15 21:19:56 +00:00
Kousik Kumar
578ba0021f Add -fdebug-compilation-dir option
The main use of this flag is to be to make both the debug info
and the build command line be independent of the compilation dir.
See: https://reviews.llvm.org/D63387 & https://blog.llvm.org/2019/11/deterministic-builds-with-clang-and-lld.html

Removed -fdebug-prefix-map and PWD variable being set in the compile
command line - these were workarounds we originally did to ensure that
the compile output is independent of the working directory and are no
longer needed now that we have -fdebug-compilation-dir.

Test: Ran "m
out/target/product/crosshatch/obj/SHARED_LIBRARIES/libexif.vendor_intermediates/same_vndk_variants.timestamp"
which fails on an RBE hardened stack without this change and passes with
this change.

Bug: b/169266636
Change-Id: Ib0f271e55f6cf0c89a30e65d3a0b25fe3f3a8f48
2020-10-15 15:25:08 -04:00
Liz Kammer
0e7993e3d2 Clarify error for soong_ui failing to parse args
Test: m soong_ui and give invalid command line args
Change-Id: I7b4479b392d953bd1d87218184c5ed2143568a07
2020-10-15 11:07:13 -07:00
Saeid Farivar Asanjan
128fe5c1f5 Add empty tag support for java_import
Test: manual
Change-Id: I53d7c6bb620fa8fe7f5c3ec0a12f723eb62fca16
2020-10-15 17:55:24 +00:00
Christopher Parsons
9e10324bf8 Merge "Change bazel_module property to be of struct type instead of string" am: 38fa0f5a77
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1461462

Change-Id: I8339233a9d5a86b9e81949aad4b53c2b79785ff6
2020-10-15 14:44:54 +00:00
Christopher Parsons
38fa0f5a77 Merge "Change bazel_module property to be of struct type instead of string" 2020-10-15 14:19:18 +00:00
Kiyoung Kim
62abd12ba5 Handle new filetype 'linker_config'
Handle new filetype 'linker_config' which is configuration for
linkerconfig in json type and convert into protobuf in build time.

Bug: 169634881
Test: Build succeeded and cuttlefish boot succeeded
Change-Id: I56555fc738e6d6600d15a191a24f79a2ee747f52
2020-10-15 23:09:35 +09:00
Chih-hung Hsieh
4936f55db1 Merge "Use protobuf-codegen default and add mod_stem.rs" am: f4155dc551
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1452056

Change-Id: I789e92c7e439545ff4c17c7d99b670fd33b50dbf
2020-10-15 06:08:07 +00:00
Chih-hung Hsieh
f4155dc551 Merge "Use protobuf-codegen default and add mod_stem.rs" 2020-10-15 05:46:18 +00:00