Commit Graph

82152 Commits

Author SHA1 Message Date
Treehugger Robot
fdb18c6500 Merge "Filter-out deps of unsupported arch" into main am: c6541077de
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3084949

Change-Id: I3cec354d4d0db7075820c5594ef40ede2e5c3402
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-16 00:53:22 +00:00
Treehugger Robot
c6541077de Merge "Filter-out deps of unsupported arch" into main 2024-05-16 00:33:24 +00:00
Cole Faust
aae86c8947 Merge "Qualify prebuilt_etc apex module name by relative paths" into main am: 277e444cb3
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3086647

Change-Id: I19ab713bbe61020894ec88b5aff08cb3765bff44
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 21:34:06 +00:00
Cole Faust
277e444cb3 Merge "Qualify prebuilt_etc apex module name by relative paths" into main 2024-05-15 21:21:04 +00:00
Joe Onorato
3ee466f8f8 Merge "Move aninja and overrideflags from shell functions to real scripts" into main am: 6e2d36dacb
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3087345

Change-Id: I4861b5dd779052f212ee3f9c1f75c117642001c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 19:00:04 +00:00
Joe Onorato
6e2d36dacb Merge "Move aninja and overrideflags from shell functions to real scripts" into main 2024-05-15 18:40:12 +00:00
Cole Faust
7c991b4e33 Qualify prebuilt_etc apex module name by relative paths
Currently, you can't have two prebuilt_etcs in one apex with the same
file name, because apexes emit make modules for all the files in the
apex, and the module name for the prebuilt_etc's make representation
is based on the base filename of the installed file. We can change it to
be qualified based on the full relative path of the outputfile so that
you don't hit the conflicts as much.

Fixes: 340207931
Test: Presubmits
Change-Id: I7836fd4661fcaafd91901eba7e0b89506946c3e2
2024-05-15 11:17:55 -07:00
Cole Faust
0ed7bfecfc Merge "Revert "Qualify prebuilt_etc apex module name by relative paths"" into main am: 3ef813bdf2
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3089006

Change-Id: I71d05e8a243bd75e261e59732b82cfb1bbe19437
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 18:12:18 +00:00
Cole Faust
3ef813bdf2 Merge "Revert "Qualify prebuilt_etc apex module name by relative paths"" into main 2024-05-15 18:09:34 +00:00
Tomasz Wasilczyk
fac13b4992 Merge "cc_cmake_snapshot: improve support for AIDL" into main am: a910dce1a3
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3080859

Change-Id: Ic204f2a0d436104600ae9a9210c009b9d651ec34
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 18:02:02 +00:00
Cole Faust
c005ba0fa2 Revert "Qualify prebuilt_etc apex module name by relative paths"
This reverts commit d94cccc523.

Reason for revert: Patchset 2 was wrong, doesn't actually fix the bug

Change-Id: Ie2d931ad3e2277ce1923284b13f50f62ac2f8917
2024-05-15 18:01:43 +00:00
Tomasz Wasilczyk
a910dce1a3 Merge "cc_cmake_snapshot: improve support for AIDL" into main 2024-05-15 17:43:14 +00:00
Cole Faust
f335a110cf Merge "Qualify prebuilt_etc apex module name by relative paths" into main am: e0943e95f4
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3086166

Change-Id: I2dc36ec60bbaab3f28c2f0455d3d2bb9df76bb64
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 17:31:49 +00:00
Cole Faust
e0943e95f4 Merge "Qualify prebuilt_etc apex module name by relative paths" into main 2024-05-15 17:08:56 +00:00
Treehugger Robot
843d51cb68 Merge "Don't panic when a map is included twice" into main am: 0bcdc1f417
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3087206

Change-Id: I61fb11835f2f0c6ad0faeadeb3b136b7da2a93e4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 00:24:44 +00:00
Treehugger Robot
69ac817342 Merge "clean up RELEASE_ACONFIG_VALUE_SETS" into main am: ef71f7ad8c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3085806

Change-Id: Iada3010eb6877d58fb652f7d481ac97a7d32266e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 00:24:26 +00:00
Treehugger Robot
0bcdc1f417 Merge "Don't panic when a map is included twice" into main 2024-05-15 00:20:01 +00:00
Treehugger Robot
ef71f7ad8c Merge "clean up RELEASE_ACONFIG_VALUE_SETS" into main 2024-05-14 23:54:01 +00:00
LaMont Jones
05d59c5905 Don't panic when a map is included twice
If a map was included twice, we had side effects when skipping the extra
inclusion.

Bug: 340659219
Test: manual, TH
Change-Id: I90c55a800ecad932f8f67cf6f9f60dba571f7c48
2024-05-14 15:59:45 -07:00
Joe Onorato
a67e6a7162 Move aninja and overrideflags from shell functions to real scripts
Trying to clean up cruft from envsetup.sh

Shell functions require re-sourcing envsetup.sh, and should be avoided
if possible.

Bug: 340648588
Test: try the scripts
Change-Id: I15ec39b0382d9dd60e290dae633e8730a8d18131
2024-05-14 15:13:27 -07:00
Cole Faust
d94cccc523 Qualify prebuilt_etc apex module name by relative paths
Currently, you can't have two prebuilt_etcs in one apex with the same
file name, because apexes emit make modules for all the files in the
apex, and the module name for the prebuilt_etc's make representation
is based on the base filename of the installed file. We can change it to
be qualified based on the full relative path of the outputfile so that
you don't hit the conflicts as much.

Bug: 340207931
Test: Presubmits
Change-Id: I6708d89c755c31c17cce112fb08a810e51926c76
2024-05-14 14:42:22 -07:00
Tomasz Wasilczyk
1e831bfa87 cc_cmake_snapshot: improve support for AIDL
- link correct libbinder for AIDL modules
- fix building AIDL interfaces with non-empty AidlRoot
- don't silently drop non-existent dependencies

Bug: 302718225
Test: aosp/3081709
      atest binder_sdk_docker_test_clang
Change-Id: I181ef5a994f728f8af19134a6697b065a9aee261
2024-05-14 13:45:34 -07:00
Treehugger Robot
5312102ca0 Merge changes I5645ddb9,Ib3d50f15,Ib4c5815a,If3b63706 into main am: e8cb9178ec
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3086468

Change-Id: I426947112694795ab7538f966a61097823e6b15b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-14 20:32:05 +00:00
Treehugger Robot
e8cb9178ec Merge changes I5645ddb9,Ib3d50f15,Ib4c5815a,If3b63706 into main
* changes:
  Revert "Revert^2 "Always embed jni libs and store uncompressed""
  Revert "Revert "Revert "Collect transitve deps of jni libs only for bund...""
  Revert "Add SkipToTransitiveDepsTag interface for dependency tags"
  Revert "Install transitive deps of jni libs, but not the jni libs themselves"
2024-05-14 20:16:05 +00:00
Jiyong Park
d044bb40da Revert "Revert^2 "Always embed jni libs and store uncompressed""
This reverts commit 20df11ef2b.

Change-Id: I5645ddb9e0d2c0873916a9192aa3cfbc967fc2cc
2024-05-15 03:32:26 +09:00
Jiyong Park
75ce275025 Revert "Revert "Revert "Collect transitve deps of jni libs only for bund...""
This reverts commit ef5511ff77.

Change-Id: Ib3d50f156c48578743644e99722b70368dd1e26b
2024-05-15 03:32:25 +09:00
Jiyong Park
1d4907e027 Revert "Add SkipToTransitiveDepsTag interface for dependency tags"
This reverts commit 1fb7c35129.

Change-Id: Ib4c5815a06785cd876caa37acc0522adc26bc495
2024-05-15 03:32:23 +09:00
Jiyong Park
cd9dca20a0 Revert "Install transitive deps of jni libs, but not the jni libs themselves"
This reverts commit e716807083.

Change-Id: If3b63706114cb534af359fdac2d80d8a5d02ea6d
2024-05-15 03:32:22 +09:00
LaMont Jones
8e2a6b1fe9 clean up RELEASE_ACONFIG_VALUE_SETS
Only add a repository to the trace when it actually specifies
aconfig_value_sets.

Also default to only generating the release config .mk file for the
current TARGET_RELEASE (rather than all), to reduce kati reruns.

Bug: 340126861
Test: manual, TH
Change-Id: I671d4b5f57c9bdd252d98e048f16aa9c7b3b2ffa
2024-05-14 09:21:10 -07:00
Jiyong Park
c6a773df64 Filter-out deps of unsupported arch
When a common-arch module (ex: phony) has the "required" dependencies on
native modules (ex: cc_library), both 32 and 64-bit variants of the
native modules are added as dependencies. This by itself is fine and
actually is intended, otherwise there's no way for us to install both
arch variants via required deps.

However, this imposes a problem when the common-arch module is depended
on by a filesystem module with compile_multilib: "first". Here, the
expectation is that only the first variant (64-bit) of the native module
is instaled, but in reality both variants are installed.

To handle this situation, make sure that the packaging routine filters
out packaging specs from unsupported architecture.

Bug: N/A
Test: go test ./... under soong/filesyste

Change-Id: Ie1ad5ace2e5d88e00183a115f4a76e5df87a8166
2024-05-14 21:56:42 +09:00
Jiyong Park
6c74838269 Merge "Fix: required deps from native module to phony module is respected" into main am: 635e1218bd
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3081414

Change-Id: I949639ffe6864989c91796b1b69bc8d0c92626b2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-14 05:06:12 +00:00
Jiyong Park
635e1218bd Merge "Fix: required deps from native module to phony module is respected" into main 2024-05-14 05:04:27 +00:00
Rico Wind
e79230c639 Merge "Don't run resource shrinking for eng builds" into main am: c3e6594a0d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3075498

Change-Id: If110eeba2d32202c0a5f90af28172931547f1ba9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-14 04:26:45 +00:00
Rico Wind
c3e6594a0d Merge "Don't run resource shrinking for eng builds" into main 2024-05-14 04:04:17 +00:00
Justin Yun
b2c9f6a8f1 Soong filesystem may install aconfig_flags.pb am: 74f3f30ae4
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3046652

Change-Id: I3fe0139693348b205a2fa72186b991c6094f696f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-14 01:32:41 +00:00
Treehugger Robot
f17dc26a26 Merge "Add the primary file to EXTRA_INSTALL_ZIPS" into main am: 82d7cdc547
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3081585

Change-Id: Ic6907edc0772fcefa861b4f4cde525cbe3ee5643
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-13 23:17:59 +00:00
Justin Yun
74f3f30ae4 Soong filesystem may install aconfig_flags.pb
By setting aconfig_flags: true, soong filesystem module installs the
aconfig_flags.pb file to its etc directory.

We need to define aconfigFilePaths to ModuleBase to store the list of
aconfig file paths that is generated from the GenerateBuildActions().
The aconfigFilePaths are collected when build the filesystem module
to build the aconfig_flags.pb for the filesystem image.

Bug: 335363964
Test: compare the cache list with those generated from make.
Change-Id: Ia32b566bf43174e94b9e610b9503608c6b583899
2024-05-13 23:14:42 +00:00
Treehugger Robot
82d7cdc547 Merge "Add the primary file to EXTRA_INSTALL_ZIPS" into main 2024-05-13 22:56:45 +00:00
Colin Cross
37ba7771d5 Merge "Add $ORIGIN to rpath for cc_test modules" into main am: 783fa37807
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3083002

Change-Id: I0b3ae062fda3c154864318cd641428982ad1bf87
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-13 21:25:33 +00:00
Colin Cross
783fa37807 Merge "Add $ORIGIN to rpath for cc_test modules" into main 2024-05-13 20:59:01 +00:00
Treehugger Robot
a2b9aced73 Merge "Fix a check for the ninja_log" into main am: 77583741b6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3083546

Change-Id: I93afdef722b46fe3412d1ce407ba175e3a36d646
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-13 20:40:33 +00:00
Treehugger Robot
77583741b6 Merge "Fix a check for the ninja_log" into main 2024-05-13 20:20:04 +00:00
Cole Faust
6bb2832c15 Fix a check for the ninja_log
soong_build uses / as it's cwd, so we need to specify the top directory
when checkign for files.

Test: add a printf in the if statement; touch out/soong/Android.bp && m nothing; ensure printf doesn't fire
Change-Id: Iba9773765547b22a03dbca33aa6b8c75359cb5ff
2024-05-13 11:57:16 -07:00
Cole Faust
07c4537424 Add the primary file to EXTRA_INSTALL_ZIPS
Make needs to know the primary file, because the zip is only extracted
when the primary file is installed.

Bug: 337869220
Test: m out/target/product/emu64x/obj/PACKAGING/system_intermediates/file_list.txt and checking it for the extra NetworkStackGoogle apks, with a local NetworkStackGoogle android_app_set added into the tree
Change-Id: I5cb7243d214f4730e3f9efb6746793f3bf4b8214
2024-05-13 11:04:18 -07:00
Rico Wind
936754c599 Don't run resource shrinking for eng builds
Since we will not shrink the resources anyway this is a waste of time

Bug: 338429777
Test: m SystemUI
Change-Id: I388f045294131a304920756607792091627921bc
2024-05-13 12:32:33 +02:00
Jiyong Park
c4b1d55707 Fix: required deps from native module to phony module is respected
This change fixes a bug that required deps from native module to phony
module was ignored. It happened because addRequireDeps incorrectly
thought that both are native modules with different bitness (32->64),
which isn't.

Fix this by doing the bitness check only when both the current module
and the required module are native modules.

Bug: N/A
Test: go test ./... under build/soong/filesystem
Change-Id: I494ebc47e29001f174fa44d72809041f8ceffb0b
2024-05-13 16:47:30 +09:00
Hsin-Yi Chen
3c8f5f2bc0 Merge "Ensure opt-in platform ABI dumps are configured with ref_dump_dirs" into main am: d75bc49454
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3081204

Change-Id: I155696480f1059449873414b16382e70d4ab004f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-13 03:24:07 +00:00
Hsin-Yi Chen
d75bc49454 Merge "Ensure opt-in platform ABI dumps are configured with ref_dump_dirs" into main 2024-05-13 03:01:44 +00:00
Jiyong Park
fdc7f1d37e Merge changes from topic "reland_embedded_jni" into main am: b544a8b9ec
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3079286

Change-Id: Iee42bf1b5d6dc79425f9c99a3b54ff8cf639a4a8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-10 23:13:08 +00:00
Jiyong Park
b544a8b9ec Merge changes from topic "reland_embedded_jni" into main
* changes:
  Install transitive deps of jni libs, but not the jni libs themselves
  Add SkipToTransitiveDepsTag interface for dependency tags
  Revert "Revert "Collect transitve deps of jni libs only for bund..."
  Revert^2 "Always embed jni libs and store uncompressed"
2024-05-10 22:53:08 +00:00