Commit graph

78364 commits

Author SHA1 Message Date
Lucas Wei
4da8bbe987 Merge "Remove ALL_GENERATED_SOURCES" am: 20ba096e0a am: 766d8ec746 am: 85f3330d6c
Original change: https://android-review.googlesource.com/c/platform/build/+/2043036

Change-Id: I344c51da9578f73b091dc5e52c918f3ecfa6daf5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-01 04:05:38 +00:00
Lucas Wei
85f3330d6c Merge "Remove ALL_GENERATED_SOURCES" am: 20ba096e0a am: 766d8ec746
Original change: https://android-review.googlesource.com/c/platform/build/+/2043036

Change-Id: Iaa8abf62ec376e5d846937bc7823345bb9c0e280
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-01 03:45:01 +00:00
Lucas Wei
766d8ec746 Merge "Remove ALL_GENERATED_SOURCES" am: 20ba096e0a
Original change: https://android-review.googlesource.com/c/platform/build/+/2043036

Change-Id: I04eae544637a2e9e64dc777dfc916a8f9ae26aa4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-01 03:20:09 +00:00
Lucas Wei
20ba096e0a Merge "Remove ALL_GENERATED_SOURCES" 2022-04-01 03:00:10 +00:00
Colin Cross
44db5fc65c Merge "Reset permissions after unzipping jars" am: bcabb923dc am: 82a15e7798 am: c28d43119f
Original change: https://android-review.googlesource.com/c/platform/build/+/2050411

Change-Id: I0e053c91cc8a57e7f79f08eb1681a5998d349bdc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 20:51:40 +00:00
Colin Cross
c28d43119f Merge "Reset permissions after unzipping jars" am: bcabb923dc am: 82a15e7798
Original change: https://android-review.googlesource.com/c/platform/build/+/2050411

Change-Id: Ib35026f71208afa53f33ee9967cd9acb88a73d0d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 20:36:53 +00:00
Colin Cross
82a15e7798 Merge "Reset permissions after unzipping jars" am: bcabb923dc
Original change: https://android-review.googlesource.com/c/platform/build/+/2050411

Change-Id: Iee8425b382281d1b85664153025132eee9d755bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 20:21:06 +00:00
Colin Cross
bcabb923dc Merge "Reset permissions after unzipping jars" 2022-03-31 19:35:06 +00:00
Treehugger Robot
a35c859df7 Merge "Support per-partition settings for os_version AVB props" am: 4a723d0ecf am: f2ed2638d2 am: fd3cabf6cf
Original change: https://android-review.googlesource.com/c/platform/build/+/2049103

Change-Id: I0dd1df61f6810c0f5821c44f12c1452a2bae3e78
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 03:24:30 +00:00
Colin Cross
a8ac282038 Reset permissions after unzipping jars
Jars unzipped for jacoco instrumentation may contain nonsensical
permissions.  Use chmod -R =rwX to apply the current umask to all
the files and add the execute bit to directories.

Bug: 227470935
Test: manual
Change-Id: I52667ec3f0b8b8ce64b57fab088ca9d20cf561e1
2022-03-30 20:05:34 -07:00
Treehugger Robot
fd3cabf6cf Merge "Support per-partition settings for os_version AVB props" am: 4a723d0ecf am: f2ed2638d2
Original change: https://android-review.googlesource.com/c/platform/build/+/2049103

Change-Id: Ib984b03d68527107043ad4c43517e8240fd2e345
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 03:02:58 +00:00
Treehugger Robot
f2ed2638d2 Merge "Support per-partition settings for os_version AVB props" am: 4a723d0ecf
Original change: https://android-review.googlesource.com/c/platform/build/+/2049103

Change-Id: I9c4f42eae5a353c98621cb7bced1147f01c5e9a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 02:46:48 +00:00
Treehugger Robot
4a723d0ecf Merge "Support per-partition settings for os_version AVB props" 2022-03-31 02:27:04 +00:00
Treehugger Robot
6d9c577359 Merge "Build modules from source for module products." am: 06f7176fc6 am: cbe2b0a7a9 am: f1d08ac906
Original change: https://android-review.googlesource.com/c/platform/build/+/2020203

Change-Id: Ic402f43b7ab810dc7a7039dcdd816e211c4ffee4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 21:44:01 +00:00
Treehugger Robot
f1d08ac906 Merge "Build modules from source for module products." am: 06f7176fc6 am: cbe2b0a7a9
Original change: https://android-review.googlesource.com/c/platform/build/+/2020203

Change-Id: I5dda82bdfe84e323ea2120b9c2ea6285e2b873f5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 21:15:25 +00:00
Treehugger Robot
cbe2b0a7a9 Merge "Build modules from source for module products." am: 06f7176fc6
Original change: https://android-review.googlesource.com/c/platform/build/+/2020203

Change-Id: I293f368dbe3f33196041e7a77a89def98a272095
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 20:58:53 +00:00
Cole Faust
42d34135be Merge "Update paths to mk2rbc/rbcrun" am: 4f414a9f52 am: 79e86e7fcc am: b203ae3da8
Original change: https://android-review.googlesource.com/c/platform/build/+/2043368

Change-Id: I4611ecae219acd088860084397ab4579fd20516c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 20:44:02 +00:00
Treehugger Robot
a92032b7c6 Merge "add flag to skip soong tests for b command" am: 375dd60d5a am: 9244deabb0 am: 6fa65aef1c
Original change: https://android-review.googlesource.com/c/platform/build/+/2045666

Change-Id: I9b51987a12706961df931277d186c5a467c239bc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 20:43:50 +00:00
Treehugger Robot
06f7176fc6 Merge "Build modules from source for module products." 2022-03-30 20:41:53 +00:00
Cole Faust
b203ae3da8 Merge "Update paths to mk2rbc/rbcrun" am: 4f414a9f52 am: 79e86e7fcc
Original change: https://android-review.googlesource.com/c/platform/build/+/2043368

Change-Id: If646d6106cbcc1fc88b51014da3a12f5bd8777e8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 20:20:42 +00:00
Treehugger Robot
6fa65aef1c Merge "add flag to skip soong tests for b command" am: 375dd60d5a am: 9244deabb0
Original change: https://android-review.googlesource.com/c/platform/build/+/2045666

Change-Id: Ia62bc9642e7f2d2a688a19e5ca166987acb36057
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 20:20:13 +00:00
Cole Faust
79e86e7fcc Merge "Update paths to mk2rbc/rbcrun" am: 4f414a9f52
Original change: https://android-review.googlesource.com/c/platform/build/+/2043368

Change-Id: I419b7e652008741824a1ea712c63603d4f05dbc6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 19:56:04 +00:00
Treehugger Robot
9244deabb0 Merge "add flag to skip soong tests for b command" am: 375dd60d5a
Original change: https://android-review.googlesource.com/c/platform/build/+/2045666

Change-Id: I0568692ad79045a6d992e65559ed7411016a6295
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 19:55:13 +00:00
Cole Faust
4f414a9f52 Merge "Update paths to mk2rbc/rbcrun" 2022-03-30 19:43:06 +00:00
Treehugger Robot
375dd60d5a Merge "add flag to skip soong tests for b command" 2022-03-30 19:27:45 +00:00
Martin Stjernholm
47dcbeaefb Build modules from source for module products.
This overrides the branch default
(BRANCH_DEFAULT_MODULE_BUILD_FROM_SOURCE) if it is set to use
prebuilts.

Test: build/soong/soong_ui.bash --dumpvar-mode MODULE_BUILD_FROM_SOURCE
  returns false with BRANCH_DEFAULT_MODULE_BUILD_FROM_SOURCE:=false
  in internal
Test: env TARGET_PRODUCT=module_arm64 \
      build/soong/soong_ui.bash --dumpvar-mode MODULE_BUILD_FROM_SOURCE
  returns true with BRANCH_DEFAULT_MODULE_BUILD_FROM_SOURCE:=false
  in internal
Test: env TARGET_PRODUCT=mainline_modules_x86 \
      build/soong/soong_ui.bash --dumpvar-mode MODULE_BUILD_FROM_SOURCE
  returns true with BRANCH_DEFAULT_MODULE_BUILD_FROM_SOURCE:=false
  in internal
Test: env TARGET_PRODUCT=redfin \
      build/soong/soong_ui.bash --dumpvar-mode MODULE_BUILD_FROM_SOURCE
  returns false with BRANCH_DEFAULT_MODULE_BUILD_FROM_SOURCE:=false
  in internal
Bug: 222723757
Change-Id: I0faea006b0e95eff40bbfbe00cc74ba5985beeba
2022-03-30 18:16:51 +01:00
Treehugger Robot
b418d7a46a Merge "Always turn on TARGET_BUILD_USE_PREBUILT_SDKS for unbundled build." am: ddfa3ff19c am: c64f248280 am: 57d7999f5a
Original change: https://android-review.googlesource.com/c/platform/build/+/2045278

Change-Id: I6b3a92c2aadb16e762316cd68dd23d5f3a8a07e9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 12:11:25 +00:00
Treehugger Robot
57d7999f5a Merge "Always turn on TARGET_BUILD_USE_PREBUILT_SDKS for unbundled build." am: ddfa3ff19c am: c64f248280
Original change: https://android-review.googlesource.com/c/platform/build/+/2045278

Change-Id: I8ff931bbd95218c40e3f08b49bcbf06720b99764
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 11:46:52 +00:00
Treehugger Robot
c64f248280 Merge "Always turn on TARGET_BUILD_USE_PREBUILT_SDKS for unbundled build." am: ddfa3ff19c
Original change: https://android-review.googlesource.com/c/platform/build/+/2045278

Change-Id: I8a487ebbc8bfabfbc36a80d8a23b44a1f114d82a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 11:23:49 +00:00
Treehugger Robot
ddfa3ff19c Merge "Always turn on TARGET_BUILD_USE_PREBUILT_SDKS for unbundled build." 2022-03-30 11:06:46 +00:00
Bowgo Tsai
b0f436386f Support per-partition settings for os_version AVB props
The value of the AVB properties are parsed by the device
bootloader, which might expect a different format of the value.
Allowing them to have per-device settings.

The default value of those per-partition os_version is
$(PLATFORM_VERSION_LAST_STABLE), which is usually an integer,
e.g., 12.

Bug: 211364958
Test: build then `avbtool info_image`
Change-Id: I2005df615c0ff35622030baa2477e29d9d20e94f
2022-03-30 11:52:39 +08:00
Treehugger Robot
518142885e Merge "Exclude deprecated variables from dump-variables-rbc" am: 0b7aea6dc5 am: a48a2935f3 am: 5c714e950c
Original change: https://android-review.googlesource.com/c/platform/build/+/2042024

Change-Id: I33219a584c87e0f67635edc1f3e273e59a2f3ced
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 02:51:48 +00:00
Treehugger Robot
5c714e950c Merge "Exclude deprecated variables from dump-variables-rbc" am: 0b7aea6dc5 am: a48a2935f3
Original change: https://android-review.googlesource.com/c/platform/build/+/2042024

Change-Id: I4678710787f617a83230ce6fd5f81bfee5e3c016
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 02:37:06 +00:00
Treehugger Robot
a48a2935f3 Merge "Exclude deprecated variables from dump-variables-rbc" am: 0b7aea6dc5
Original change: https://android-review.googlesource.com/c/platform/build/+/2042024

Change-Id: Idedb905ce9f3d34438aeade12295840a3f0530da
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 02:19:19 +00:00
Treehugger Robot
0b7aea6dc5 Merge "Exclude deprecated variables from dump-variables-rbc" 2022-03-30 02:03:23 +00:00
Treehugger Robot
59a3f57416 Merge "Add implementation of dir function" am: fa92dd5f32 am: 25ab8f0b90 am: 600329f3ef
Original change: https://android-review.googlesource.com/c/platform/build/+/2045947

Change-Id: I6d844a67874abdd5eab5167cfb712bb528924561
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-29 22:10:25 +00:00
Treehugger Robot
600329f3ef Merge "Add implementation of dir function" am: fa92dd5f32 am: 25ab8f0b90
Original change: https://android-review.googlesource.com/c/platform/build/+/2045947

Change-Id: If2986092413e96673c5656f298d6333a9bea6781
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-29 21:56:57 +00:00
Treehugger Robot
25ab8f0b90 Merge "Add implementation of dir function" am: fa92dd5f32
Original change: https://android-review.googlesource.com/c/platform/build/+/2045947

Change-Id: I5d7553c25c154d537e48eeb9e371c79785557c09
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-29 21:32:55 +00:00
Treehugger Robot
fa92dd5f32 Merge "Add implementation of dir function" 2022-03-29 21:13:47 +00:00
Cole Faust
0a746001b8 Exclude deprecated variables from dump-variables-rbc
This is to not show a warning when running the RBC product
config.

Bug: 226622262
Test: Manually
Change-Id: I69265c9d0dd475ada670e26295bdf27dfa407706
2022-03-29 13:49:26 -07:00
Jiakai Zhang
11f44e2802 Always turn on TARGET_BUILD_USE_PREBUILT_SDKS for unbundled build.
Before this change, TARGET_BUILD_USE_PREBUILT_SDKS was turned on only if
TARGET_BUILD_APPS or TARGET_BUILD_UNBUNDLED_IMAGE is set. After this
change, TARGET_BUILD_USE_PREBUILT_SDKS is always turned on if
TARGET_BUILD_UNBUNDLED is set.

We need this change because we need to build ART services on the thin
manifest, and ART's build script only sets TARGET_BUILD_UNBUNDLED.

Bug: 177273468
Test: (on aosp-master-art) . ./build/envsetup.sh && lunch arm_krait-eng && art/tools/buildbot-build.sh --target
Change-Id: I1b5f63043d518ac8306bd172ef8afd69ab3ae8e5
2022-03-29 16:11:12 +01:00
Sam Delmerico
ef43149136 add flag to skip soong tests for b command
Sometimes it is very handy during testing to temporarily skip Soong
tests, but there is not easy method to allow this without changing the
envsetup.sh file and re-sourcing before/after enabling/disabling the
skip-tests flag.

Test: b build '...' --skip-soong-tests
Change-Id: I6dcad3ba0336cfd1c4d2c4357b852900792445c3
2022-03-29 14:39:33 +00:00
Lucas Wei
b235b690a0 Remove ALL_GENERATED_SOURCES
ALL_GENERATED_SOURCES contains the generated sources of modules
defined in Make.  They always have a path inside the intermediates
directories.  The only readers of ALL_GENERATED_SOURCES are filtering
for files in the output directories, and will never match anything.

Signed-off-by: Lucas Wei <lucaswei@google.com>
Change-Id: I38c57cc6dad7d762adc001351322c0614e69ed98
2022-03-29 18:01:58 +08:00
Cole Faust
db13a58184 Add implementation of dir function
mk2rbc was already emitting conversions of the dir
function, but its implementation didn't exist.

Bug: 227245326
Test: Manually
Change-Id: I3348c022a0ff84e6d3a5be6b18e45c439f1db802
2022-03-28 16:31:26 -07:00
Treehugger Robot
be88f3a95c Merge "Add fake_packages to the list of exceptions to INSTALLED_FILES_OUTSIDE_PACKAGES" am: d3a9957616 am: a2fefe18bd am: 486c2e88ee
Original change: https://android-review.googlesource.com/c/platform/build/+/2043302

Change-Id: I522290e838020487bdf5865998e0d73529b656bc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-26 04:35:55 +00:00
Treehugger Robot
486c2e88ee Merge "Add fake_packages to the list of exceptions to INSTALLED_FILES_OUTSIDE_PACKAGES" am: d3a9957616 am: a2fefe18bd
Original change: https://android-review.googlesource.com/c/platform/build/+/2043302

Change-Id: I39165bf40b18b3118f7746a894108aa25bd8d73a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-26 04:22:57 +00:00
Treehugger Robot
a2fefe18bd Merge "Add fake_packages to the list of exceptions to INSTALLED_FILES_OUTSIDE_PACKAGES" am: d3a9957616
Original change: https://android-review.googlesource.com/c/platform/build/+/2043302

Change-Id: Ib68463c01ec65b841630b59dda8fd5887d1a1fe3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-26 04:06:47 +00:00
Treehugger Robot
d3a9957616 Merge "Add fake_packages to the list of exceptions to INSTALLED_FILES_OUTSIDE_PACKAGES" 2022-03-26 03:45:21 +00:00
Colin Cross
41e93ea093 Add fake_packages to the list of exceptions to INSTALLED_FILES_OUTSIDE_PACKAGES
Don't depend on fake_packages, they are already expanded into their
required modules.

Bug: 225187583
Bug: 226573153
Test: check dependency path to out/target/product/coral/system/apex/com.android.vndk.current.apex
Change-Id: Id7a646fe0368051a4a4719f846a158de07be9d20
2022-03-25 17:31:49 -07:00
Trevor Radcliffe
d7f8cd653e Merge "Add DeviceProduct product varible to Soong" am: d1bb5919e3 am: b40d50e902 am: 7c3ef9b405
Original change: https://android-review.googlesource.com/c/platform/build/+/2037483

Change-Id: I114e9236fa7b6f966bf6404006e4998bcecfef1a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 17:38:34 +00:00