Commit graph

212 commits

Author SHA1 Message Date
Treehugger Robot
6215f7a4ed Merge "Enable the soong config namespace "camera" for all products" into main am: 8a93c78572
Original change: https://android-review.googlesource.com/c/platform/build/+/2984156

Change-Id: I96a21340ba4495a848820d24dea12cbecdc2a59e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-05 03:18:18 +00:00
Herbert Xue
88bf02e7ee Enable the soong config namespace "camera" for all products
Bug: 327089038
Test: m google-camera-app-helper-prebuilt
Change-Id: If95c4c8be28295359c09aeb5d9ead1067e2da5ff
2024-03-05 10:45:05 +08:00
Kiyoung Kim
f74c3b5fe8 Merge "Do not set BOARD_VNDK_VERSION and PLATFORM_VNDK_VERSION" into main am: 1d952f82a5
Original change: https://android-review.googlesource.com/c/platform/build/+/2949648

Change-Id: I3b47559ad8182f8c8c04e345c8ef18bcc90c459a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-13 01:24:47 +00:00
Kiyoung Kim
1e14cdfd56 Do not set BOARD_VNDK_VERSION and PLATFORM_VNDK_VERSION
Do not set BOARD_VNDK_VERSION and PLATFORM_VNDK_VERSION if VNDK is
deprecated. BOARD_VNDK_VERSION and PLATFORM_VNDK_VERSION should not be
used once VNDK is deprecated with KEEP_VNDK=false

Bug: 316829758
Test: AOSP CF build succeeded
Change-Id: Iead60663bed3653e63e7a444a873cfaea50780b0
2024-02-07 21:07:23 +09:00
Xin Li
e693b5037e Merge Android 24Q1 Release (ab/11220357)
Bug: 319669529
Merged-In: I21eb7d5dc8cef9c1dd797ba1ab2ee830a8a5a42b
Change-Id: I42210485ad8f07e19408bef0e5a2af23f6a0e596
2024-01-30 10:33:42 -08:00
Justin Yun
b33308c88c Use RELEASE_BOARD_API_LEVEL_FROZEN
RELEASE_BOARD_API_LEVEL_FROZEN must not be overriden by a board
config value. Use RELEASE_BOARD_API_LEVEL_FROZEN directly to build
configs.

Bug: 295269182
Test: TH
Change-Id: I60ad4cf1a9f377619fef98d6f9ef4d04d3395991
2024-01-22 10:54:06 +09:00
Jiyong Park
885b004547 Revert^2 "Add BUILD_BROKEN_DONT_CHECK_SYSTEMSDK"
5ef2634d5a

Change-Id: I4430ac4b2411baf3f33695ba3b1520345d7f493d
2024-01-04 23:23:38 +00:00
Sebastian Pickl
5ef2634d5a Revert "Add BUILD_BROKEN_DONT_CHECK_SYSTEMSDK"
Revert submission 2897682-dont_limit_systemsdk

Reason for revert: blocking revert for 318695834

Bug:318695834

Reverted changes: /q/submissionid:2897682-dont_limit_systemsdk

Change-Id: Ic4a63fe81434ddb9cb57519bd11c1924224111c6
2024-01-04 19:01:29 +00:00
Jiyong Park
7a0e042276 Add BUILD_BROKEN_DONT_CHECK_SYSTEMSDK
https://android-review.git.corp.google.com/q/topic:limit_systemsdk
introduced a new check for preventing the use of system SDKs above 34
from Java modules in the vendor partition.

As this may break some unprepared targets, introduce
BUILD_BROKEN_DONT_CHECK_SYSTEMSDK as a temporary escape hatch.

This flag will be deleted eventually.

Bug: 314011075
Test: Add BUILD_BROKEN_DONT_CHECK_SYSTEMSDK := true to BoardConfig.mk
Change-Id: Ie70ce428ec3df8580099efd99e5c7c9c4f9daecb
2024-01-04 23:48:27 +09:00
Yi-Yo Chiang
24c9ebadb9 Merge "Deprecate BOARD_GKI_SIGNING_* vars and build rules" into main am: 3afaac28b9 am: 3637989aa1 am: cde8985c82
Original change: https://android-review.googlesource.com/c/platform/build/+/2846155

Change-Id: I93d2a5147110d5a6364fc9f2f3f4b276b3b474b3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-29 04:10:27 +00:00
Yi-Yo Chiang
d6f568f587 Deprecate BOARD_GKI_SIGNING_* vars and build rules
These were for building and signing GKIs in the platform tree.
We are no longer building GKIs this way, so remove these dead build
rules.

Bug: 229701033
Test: presubmit
Change-Id: I0b807de1407988489e994ec5a0da282616ac1af1
2023-11-28 09:31:47 +08:00
Justin Yun
6dc5924d72 Merge "Define BOARD_API_LEVEL and BOARD_API_LEVEL_FROZEN" into main am: 136fa83d4e am: df2645967d am: d7d7e5c61e
Original change: https://android-review.googlesource.com/c/platform/build/+/2825990

Change-Id: Ifcd1e9f0cd26c72f57652e9eed424ec92e7977f3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-14 01:09:39 +00:00
Justin Yun
136fa83d4e Merge "Define BOARD_API_LEVEL and BOARD_API_LEVEL_FROZEN" into main 2023-11-13 23:40:06 +00:00
Treehugger Robot
66d40dbecf Merge changes from topic "disable-dexpreopt-dexopt" into main am: fc9ebd2684 am: 84d00a4ff6 am: 6bb3bee4ba
Original change: https://android-review.googlesource.com/c/platform/build/+/2817440

Change-Id: I62bddbdf9f3ae0b075824b3db7acb69e7f325d01
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-10 21:13:00 +00:00
Justin Yun
23d52435f3 Define BOARD_API_LEVEL and BOARD_API_LEVEL_FROZEN
BOARD_API_LEVEL and BOARD_API_LEVEL_FROZEN are set by the release
flags.
BOARD_API_LEVEL sets ro.board.api_level that shows the API level of
the vendor API surface.
BOARD_API_LEVEL_FROZEN sets ro.board.api_frozen that shows if the
ro.board.api_level is finalized.

Bug: 295269182
Test: getprop ro.board.api_level
Change-Id: Ie57c57b6c9f1fc0c98968195843059a48da8e512
2023-11-10 16:31:04 +09:00
Jiakai Zhang
bf0c0e6856 Add a Make variable to disable all dexpreopt and dexopt activities.
This change adds a Make variable "OVERRIDE_DISABLE_DEXOPT_ALL", which
disables all dexpreopt and dexopt activities.

This is for faster iteration during development and should never be
enabled for production.

Bug: 309011617
Test: See no dex2oat invocation during build.
Test: Boot and see no dex2oat invocation during boot, except for the
  in-memory boot image for JIT Zygote.
Change-Id: I0193b57fdb18e1fb717f44af81d1cf525f1609ee
2023-11-09 16:50:18 +00:00
Treehugger Robot
dd1c16eb59 Merge "Add special paths for BoardConfig.mk for gf and cf" into main am: 9bfce20efd am: b1791e0b6d am: 484dc1917d
Original change: https://android-review.googlesource.com/c/platform/build/+/2795597

Change-Id: I91c7bce886c2b13c7048232017e6dd4c6f3f182d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-20 21:41:55 +00:00
Treehugger Robot
9bfce20efd Merge "Add special paths for BoardConfig.mk for gf and cf" into main 2023-10-20 20:42:32 +00:00
Roman Kiryanov
8cc6b1181e Add special paths for BoardConfig.mk for gf and cf
goldfish and cuttlefish are emulator and have
many boards which makes their device folders
very crowded. This change will allow to move
all boards into a dedicated folder.

This change will go away once a more consistent
approach to search for board configurations is
implemented.

Bug: 295259752
Test: presubmit
Change-Id: I78efe5a0ecd1ca9cffbadc7d7112f50e444ff7c3
Signed-off-by: Roman Kiryanov <rkir@google.com>
2023-10-20 12:05:38 -07:00
Cole Faust
273b3b41ca Merge "Revert^2 "Enable genrule sandboxing by default"" into main am: 2fc2709115 am: 0aa8dea6e4 am: 884e3427b4
Original change: https://android-review.googlesource.com/c/platform/build/+/2796749

Change-Id: I1ddf4dc16ff4ea2d0e74269f4297bbc3fc5ee4a8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-20 03:18:23 +00:00
Cole Faust
b0990300e9 Revert^2 "Enable genrule sandboxing by default"
50cd6b2a18

Change-Id: Ie0be9331481eb1e9b96034b155efb76a8be9596a
2023-10-18 22:50:28 +00:00
Mateusz Cicheński
6f556038ea Merge "Revert "Enable genrule sandboxing by default"" into main am: 2db3a45d8d am: af1f9a68f2 am: 4d06f4d22a
Original change: https://android-review.googlesource.com/c/platform/build/+/2794133

Change-Id: Iaf2bee65ef4e8e4a24497d5ba84581dbb0dbca4a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-17 22:29:09 +00:00
Mateusz Cicheński
50cd6b2a18 Revert "Enable genrule sandboxing by default"
Revert submission 2782270-genrule_sandboxing_by_default

Reason for revert: Potential culprit for b/305851039 and many other build breakages - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Reverted changes: /q/submissionid:2782270-genrule_sandboxing_by_default

Change-Id: I3a8eb5d3a6a9e0d51ed7798c99187e9ca236b7bd
2023-10-17 17:36:43 +00:00
Cole Faust
a4e25c1933 Merge "Enable genrule sandboxing by default" into main am: 2f07f035cc am: 732b0b3bea am: fe5018b5ae
Original change: https://android-review.googlesource.com/c/platform/build/+/2782270

Change-Id: Ia56567cb0283ac184564f36d6a2dd0c2e78fd94f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-17 02:06:38 +00:00
Cole Faust
865d19e214 Enable genrule sandboxing by default
Now that all the failing genrules have been denylisted.

Also add BUILD_BROKEN_GENRULE_SANDBOXING to disable this behavior.

Bug: 290816499
Test: Presubmits
Change-Id: Id7612065ddc976a088ea1ac4c2d959dadf2b845c
2023-10-11 15:24:31 -07:00
Cole Faust
28743be1ce Merge "Clean staging dirs in build_image.py" into main am: 548775d247 am: ab7ddf8f20 am: c3aed82fe9 am: 91f73ee575 am: c664aa8d36
Original change: https://android-review.googlesource.com/c/platform/build/+/2746998

Change-Id: I1bb3c5ad9770d15d78103a6ed5b2f575048d6c35
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-11 21:22:32 +00:00
Cole Faust
152cdfab7c Clean staging dirs in build_image.py
build_image.py now accepts a --input-directory-filter-file argument
that contains a list of files to consider from the input directory.
A new, temporary input directory will be created, and only the
considered files will be copied to it.

This removes most of the need for `m installclean`, as old files or
files built manually will no longer end up on the partition.

Bug: 205632228
Test: Presubmits
Change-Id: I07e0bf8e840abf0b51a2fdf67b758905fb3c5b5b
2023-09-08 16:24:26 -07:00
Jooyung Han
fae9accba0 Merge "Remove TARGET_FLATTEN_APEX" into main am: 5d7f9cb2a1 am: db3c1b173f am: ea6b3e5018 am: f23413e208 am: bf2fb0676e
Original change: https://android-review.googlesource.com/c/platform/build/+/2727593

Change-Id: I4ef7511d2a0a88d5b6a7e7451747f839ceda3efa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-28 03:55:03 +00:00
Jooyung Han
0d500c58aa Remove TARGET_FLATTEN_APEX
And inherit updatable_apex.mk by default.

Bug: 278826656
Test: presubmit
Change-Id: I3f93608a8750dcd72edc3f9517c70f3490f1a7cd
2023-08-25 15:06:20 +09:00
Treehugger Robot
17afb80f0f Merge "Revert "Add BUILD_BROKEN_VENDOR_SEAPP_USES_COREDOMAIN"" into main am: a679e050f5 am: 0d7abde2c0 am: 87e7f90cc0 am: 0c5e918588 am: e1f8614398
Original change: https://android-review.googlesource.com/c/platform/build/+/2722775

Change-Id: Ia7cd3e27509c20aa1632a14e2f8c736ec491b7d3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-23 09:44:04 +00:00
Inseob Kim
a26d098160 Revert "Add BUILD_BROKEN_VENDOR_SEAPP_USES_COREDOMAIN"
Revert submission 2715179-BUILD_BROKEN_VENDOR_SEAPP_USES_COREDOMAIN

Reason for revert: not needed

Reverted changes: /q/submissionid:2715179-BUILD_BROKEN_VENDOR_SEAPP_USES_COREDOMAIN

Change-Id: Ib8612049314dbe26a913cc97b8c835fad4f03824
2023-08-23 02:07:53 +00:00
Treehugger Robot
e421a47d98 Merge "Add BUILD_BROKEN_VENDOR_SEAPP_USES_COREDOMAIN" into main am: 0f5090934f am: 013135c684 am: 2394053656 am: 1b4eec5bee am: 8a32833082
Original change: https://android-review.googlesource.com/c/platform/build/+/2716817

Change-Id: Ia7cbe77412da4e9bdcd99a10a5d320bc1dc20f74
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-22 05:20:52 +00:00
Inseob Kim
30cbf0b853 Add BUILD_BROKEN_VENDOR_SEAPP_USES_COREDOMAIN
Starting from Android V, vendor seapp_contexts files can't assign
coredomain to vendor apps, as it's Treble violation. This build broken
variable is to suppress the enforcement for devices launching with U or
prior.

Bug: 280547417
Test: set BUILD_BROKEN_VENDOR_SEAPP_USES_COREDOMAIN := true and build
Change-Id: If4035e6cbd0c62a1111241d94ed0a3923f61247b
2023-08-18 18:13:54 +09:00
Liz Kammer
3697f99ccb Merge "Allow setting some build_broken out of boardconfig" into main am: 36c619075e am: 5acec2b75f am: be804aaf98 am: a751987a5c am: e50a7f34ac
Original change: https://android-review.googlesource.com/c/platform/build/+/2636512

Change-Id: Ia2153b03abd324c56d3a7d41acc4dc9049da9488
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-24 17:19:50 +00:00
Liz Kammer
b607281fae Allow setting some build_broken out of boardconfig
Some build broken flags are for cross-cutting features rather than
board-specific. In order to support these without requiring broad
changes across many board configs, these can be set in a buildspec.mk
files.

Test: set build_broken flags in environment, get expected fail
Test: set build_broken flags in buildspec, get expected success
Change-Id: I8a74c30575f6bf40e46281ca5f37f3cfed526ec5
2023-07-21 15:51:58 -04:00
Cole Faust
2db2e98a55 Merge "Remove BOARD_BPT* variables and the bpt parition table image" into main am: f5350e965b am: 735fe49732 am: 9aa95a1fb0 am: ef48661524 am: 77f38d7fd6 am: e48489bc45
Original change: https://android-review.googlesource.com/c/platform/build/+/2654584

Change-Id: If766f3418d7d8b311407a2289d6bc9389f258a15
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-12 06:00:19 +00:00
Cole Faust
4f3dc8759f Remove BOARD_BPT* variables and the bpt parition table image
These variables appear to never be set.

Test: Presubmits
Change-Id: If4b89376f73204ad5780dff421f1216da255c3eb
2023-07-11 16:58:06 -07:00
Treehugger Robot
f0d8a79075 Merge "BOARD_VNDK_VERSION must be set first pass" am: a85c8a863a am: 7613afc5ae am: 1b805513cc am: e80e8b4c5c am: 234e659bb6 am: 5b765e0f29
Original change: https://android-review.googlesource.com/c/platform/build/+/2613792

Change-Id: I7bfa860ac3a1f7f3fadf9758cd8da3772cac3105
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-09 02:48:39 +00:00
Steven Moreland
78549acb47 BOARD_VNDK_VERSION must be set first pass
Removing all places that consider that this might not be
set.

Bug: 122954981
Test: build
Change-Id: I62107d041410f4ee1d3652e394ed5e7688c12f25
2023-06-07 20:57:38 +00:00
Jooyung Han
1af547be81 Merge "Deprecation message for TARGET_FLATTEN_APEX" am: e5cf1f98b8 am: 61f01731ac am: ed696898c7 am: 1fb5bc31cf am: 006e940a7e am: 4e6fc13220
Original change: https://android-review.googlesource.com/c/platform/build/+/2612969

Change-Id: I925ecb828920e0240bc2157fbd2cdb490b36281d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-05 06:38:56 +00:00
Jooyung Han
4b8c962c7b Deprecation message for TARGET_FLATTEN_APEX
Bug: 278826656
Test: OVERRIDE_TARGET_FLATTEN_APEX=true m nothing (shows warning)
Change-Id: I60e463348f87d8e1520245702eaa99c4c5356b61
2023-06-02 14:15:34 +09:00
Liz Kammer
bc4f48c415 Add BUILD_BROKEN_PLUGIN_VALIDATION flag
Use is to specify the list of plugins are are not allowed.

Ignore-AOSP-First: Requires an internal only change to not break when submitted
Test: CI
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f24be9dba9b53b0c1682929253a3eba9af7a4c31)
Merged-In: Ia2fe83d82ead618e480e99a82b1b825ed08d3eab
Change-Id: Ia2fe83d82ead618e480e99a82b1b825ed08d3eab
2023-05-18 18:20:22 +00:00
Treehugger Robot
ea8c9e8a47 Merge "Add BUILD_BROKEN_PLUGIN_VALIDATION flag" into udc-dev-plus-aosp am: 4ba88037d8 am: 46c62d2f62 am: 21abe7ebe6
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/22897019

Change-Id: I8fce7dc8482270ed50304cfba0aaf68351ac4fe5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-17 18:28:12 +00:00
Treehugger Robot
4ba88037d8 Merge "Add BUILD_BROKEN_PLUGIN_VALIDATION flag" into udc-dev-plus-aosp 2023-05-17 15:44:58 +00:00
Liz Kammer
f24be9dba9 Add BUILD_BROKEN_PLUGIN_VALIDATION flag
Use is to specify the list of plugins are are not allowed.

Ignore-AOSP-First: Requires an internal only change to not break when submitted
Test: CI
Change-Id: Ia2fe83d82ead618e480e99a82b1b825ed08d3eab
2023-05-17 15:44:25 +00:00
Cole Faust
5da2c1142d Merge "Allow importing starlark code in makefiles" am: 99d89154f1 am: 0a9d1d6025 am: 7933d9b60e am: a6ff248861 am: 00c84de792 am: db6793508b
Original change: https://android-review.googlesource.com/c/platform/build/+/2583544

Change-Id: Iaad9a4aea9b4a73b7b968a9a8467e2df2f62f17e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-11 21:50:34 +00:00
Cole Faust
c63ce1ab58 Allow importing starlark code in makefiles
Adds a new `$(call run-starlark,my/starlark/file.bzl)` function that
will run the starlark file and set all the variables in the
variables_to_export_to_make dictionary as make variables.

Fixes: 280685526
Test: m nothing repeatedly causes no ninja regeneration, but touching all_versions.bzl does. go test, ./out/rbcrun -mode=rbc ./build/make/tests/run.rbc
Change-Id: Ic72e18dd28dba8233ba2dfb658b5d03ccece1bfd
2023-05-09 15:12:58 -07:00
Treehugger Robot
05e6976daa Merge "Remove unneeded rbcrun features" am: 872023376e am: 9840061379 am: 512662b325 am: b03cf2a481 am: 194eb7cf28 am: 1d848a1a07
Original change: https://android-review.googlesource.com/c/platform/build/+/2580473

Change-Id: Ia68b8573aa59fedf64b463ef8becabefb49baa32
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-09 12:42:03 +00:00
Cole Faust
a874f88cee Remove unneeded rbcrun features
- rblf_cli and rblf_env
- -c and -f

This is in preparation for making rbcrun able to function as a more
general purpose starlark interpreter.

Bug: 280685526
Test: go test, ./out/rbc ./build/make/tests/run.rbc, ./build/bazel/ci/rbc_dashboard.py --quick aosp_arm64
Change-Id: Ifff9ce7b4369422f39c5003bb85a168c78bde7cf
2023-05-05 11:52:02 -07:00
Ulya Trofimovich
6e115a5a2b Merge "Revert "Disable dexpreopt for aosp_riscv64"" am: 1d3c4ae036 am: 86b1dd2b00 am: 33267272ab am: 72ed6869a4 am: a6d0e49e91
Original change: https://android-review.googlesource.com/c/platform/build/+/2511036

Change-Id: Ica7bc8f87d9c60e81b22c4d9b1c30431e533fa17
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-03 14:09:10 +00:00