Commit Graph

93266 Commits

Author SHA1 Message Date
Elliott Hughes
ad002facae fs_config: remove -S option.
mkfs warns about unknown "selabel=" fields, and this should be coming
from the file_contexts file, not here.

Test: treehugger
Change-Id: I63f3f616a2588438017e609a1a08c9dd7bf0c2ed
2024-03-04 21:20:52 +00:00
Dennis Shen
40922cb75b Merge "aconfigd: add aconfigd to system partition" into main 2024-02-28 12:31:26 +00:00
Kadir Çetinkaya
1ffcbde28e Merge "Add CC analysis support to ide_query" into main 2024-02-28 10:41:19 +00:00
Treehugger Robot
0d25dfc3a4 Merge "Add custom images in fastboot-info" into main 2024-02-28 07:26:45 +00:00
Kadir Çetinkaya
0769200450 Add CC analysis support to ide_query
Introduces ide_query_cc_analyzer, which figures out relevant build targets that needs to be built for a given C++ source or header file.
Once these targets are built, it analyzes the sources in question and reports any generated files that are used back.

Full ide_query integration relies on this binary also being available in prebuilts clang-tools, it'll be done in a future patch.

Change-Id: Ib0ef6da7a2bc8ecf66940b326e037fb1ee230bf9
2024-02-28 07:14:15 +00:00
Peter Collingbourne
81f8ba86f3 Merge "Create empty /linkerconfig/ld.config.txt in ramdisk." into main 2024-02-28 02:09:15 +00:00
Yi-Yo Chiang
0656d0a451 Merge "Skip check_vintf_system_deps if not building system image" into main 2024-02-26 02:51:26 +00:00
Peter Collingbourne
69281c31ba Create empty /linkerconfig/ld.config.txt in ramdisk.
This silences warnings such as:

linker: Warning: failed to find generated linker configuration from "/linkerconfig/ld.config.txt"
WARNING: linker: Warning: failed to find generated linker configuration from "/linkerconfig/ld.config.txt"

that are printed at the start of every command in the first
stage console.

Change-Id: I3d820e4960a4dbca34369223aed83589534c2eb6
2024-02-23 23:04:33 -08:00
Yi-Yo Chiang
999350475b Merge "core/Makefile: Define write-file-lines unconditionally" into main 2024-02-23 01:53:44 +00:00
Treehugger Robot
0a8fd1404e Merge changes from topics "product_runtime_apis", "product_var_hidden_api" into main
* changes:
  Introduce the product sdk_with_runtime_apis
  Introduce the product variable PRODUCT_EXPORT_RUNTIME_APIS
  Introduce product variable PRODUCT_HIDDEN_API_EXPORTABLE_STUBS
2024-02-23 01:53:40 +00:00
Yi-Yo Chiang
0f68977878 Merge "Add system_ext.img to droidcore-unbundled" into main 2024-02-23 01:53:20 +00:00
Dennis Shen
04aea83c2e aconfigd: add aconfigd to system partition
Bug: b/312444587
Test: m
Change-Id: Ib8195124cf9aea09c088f892fbe1b68b5d197704
2024-02-22 21:09:02 +00:00
Jihoon Kang
727dd6c4e5 Introduce the product sdk_with_runtime_apis
This product is an extension of the sdk product, and allows the
"runtime" api stub artifacts are exported to the dist directory and used
to generate the stubs.

Test: lunch sdk_with_runtime_apis-trunk_staging-eng && m sdk dist
Bug: 326312949
Change-Id: I96f6c1f5a5e7b40165d55ea4c0898a880ed62c96
2024-02-22 20:39:47 +00:00
Jihoon Kang
49f08d9328 Introduce the product variable PRODUCT_EXPORT_RUNTIME_APIS
PRODUCT_EXPORT_RUNTIME_APIS is a product variable that inherits the
behavior of the build flag RELEASE_EXPORT_RUNTIME_APIS, which is being
removed. This will be utilized in the product `sdk_with_runtime_apis`,
which will be introduced in a future change.

Test: m nothing --no-skip-soong-tests
Bug: 326312949
Change-Id: I4966b7bfc7423db049acfcede67233352ba8341b
2024-02-22 20:08:53 +00:00
Jihoon Kang
c974a2786f Introduce product variable PRODUCT_HIDDEN_API_EXPORTABLE_STUBS
The new product variable behaves identical to the build flag
RELEASE_HIDDEN_API_EXPORTABLE_STUBS: if the variable is set to true, the
hiddenapi flags are generated from the "exportable" stubs (i.e. the
stubs that does not include READ_WRITE permission or DISABLE state
flagged apis) instead of the "everything" stubs (i.e. the stubs that
includes all flagged apis regardless of the state of the flags). If the
variable is set to false, the stubs are generated from the "everything"
stubs.

This product variable will be utilized for `sdk_with_runtime_apis`
product in the future changes.

Test: m nothing
Bug: 326310637
Change-Id: Iab3b46ac39972b8721d3aa07cec622c57dafbd0e
2024-02-22 20:08:18 +00:00
Steven Moreland
e6045f8b74 Merge "system += misctrl" into main 2024-02-22 18:57:01 +00:00
Luca Farsi
d84d2b056c Merge "Build the general tests host shared libs." into main 2024-02-22 18:29:13 +00:00
Yi-Yo Chiang
2aa40fbb57 Add system_ext.img to droidcore-unbundled
Otherwise system_ext.img wouldn't be built under $PRODUCT_OUT dir when
building a system.img&system_ext.img only build target.

Bug: 326359088
Test: Build a system/system_ext image only target
Change-Id: I8732f7a578350f8bc3b91f8a1db656bf95eddc95
2024-02-22 11:47:37 +00:00
Yi-Yo Chiang
600feb8a21 Skip check_vintf_system_deps if not building system image
There's no point testing the system vintf boundary on a system image
-less target.

Bug: 326354182
Bug: 326359088
Test: Build a system image -less target
Change-Id: I1ef71f93acb1e7a6252ae14e18c30cb23cb08db2
2024-02-22 11:47:22 +00:00
Yi-Yo Chiang
ab09c84c5f core/Makefile: Define write-file-lines unconditionally
Right now write-file-lines is defined only if BUILDING_SYSTEM_IMAGE is
true. This means split build / partial build targets that doesn't build
the system image, would fail to build other partition images too
because the $(<parttition>image_intermediates)/file_list.txt build rule
would be undefined.

Move the macro definition out of the `ifdef BUILDING_SYSTEM_IMAGE`
conditional block.

Bug: 326359088
Test: build a target that doesn't build system image
Change-Id: I020c28f7011bd0df0330ba3350e50bea2b75aab4
2024-02-22 11:47:02 +00:00
Nishant Panwar
4070731507 Merge "Add SDK library framework-pdf-v in MediaProvider" into main 2024-02-22 06:32:14 +00:00
Daniel Zheng
7bc57fedfc Merge "add 256k support" into main 2024-02-22 01:09:50 +00:00
Treehugger Robot
7f081d9262 Merge "Add crashrecovery build flag to move files" into main 2024-02-21 22:05:18 +00:00
Ted Bauer
30512e43be Merge "aconfig: introduce new aflags CLI" into main 2024-02-21 22:04:01 +00:00
Daniel Zheng
cedc765ca2 add 256k support
Adding 256k support for ota_from_target_files since this is the max
comperssion_factor allowed in v3 cow

Test: ota_from_target_files
Change-Id: Ic7826c82e53ec3fdbd04fdff9dfb7a76038f6a42
2024-02-21 13:33:02 -08:00
Treehugger Robot
97d0ec9b05 Merge "Move RELEASE_PLATFORM_VERSION_KNOWN_CODENAMES out to release configs." into main 2024-02-21 21:23:57 +00:00
Luca Farsi
5722c941ca Build the general tests host shared libs.
Build general-tests-shared-libs as it's an expected output of building
general-tests.

Test: BUILD_NUMBER="P0" ./build/make/ci/build_test_suites --target_product aosp_x86_64
--target_release trunk_staging --with_dexpreopt_boot_img_and_system_server_only --dist_dir <dist_dir> --change_info <change_info_file> <extra_targets>
Bug: 314171817

Change-Id: I2c18f41079d6db8621299734398b7a9df64930db
2024-02-21 12:18:49 -08:00
Luca Farsi
9d24ed057f Merge "Build config file zips" into main 2024-02-21 20:06:15 +00:00
Luca Farsi
ba6f6806c6 Merge "Split out host shared libs target from general-tests" into main 2024-02-21 20:05:54 +00:00
Ted Bauer
4dbf58a187 aconfig: introduce new aflags CLI
Add a new CLI binary that we can use as the officially recommended CLI
for reading and writing flags. For now, the CLI invokes commands to
interact with DeviceConfig and aconfig protos, but we will switch it to
interact with the forthcoming mmap-file-based aconfig storage. In the
meantime, we can add improved formatting and error reporting in a
separate layer.

This CL starts with the list command, which outputs a table of the
flags when you type `adb shell aflags list`.

Bug: 324436145
Test: atest aflags.test
Change-Id: Idd8aa78ccaace22a7e490014d410ad741f8f6fc6
2024-02-21 13:23:49 -05:00
Dennis Shen
b954de7d0c Merge "aconfig: add storage flag read api integration tests to test mapping" into main 2024-02-21 18:18:11 +00:00
Dennis Shen
9c080e7544 aconfig: add storage flag read api integration tests to test mapping
Bug: b/321077378
Test: atest aconfig_storage.test.rust; atest aconfig_storage.test.cpp
Change-Id: I6920b45e4f968efedcdd6afb8c68314baa02327f
2024-02-21 18:18:04 +00:00
Harshit Mahajan
9edbf981f2 Add crashrecovery build flag to move files
Files need to be moved from platform to the new apex.
Adding a flag to control this movement.
More Details: go/conditionally-move-android-files

Bug: b/289203818
Test: m
Change-Id: Id3674bd6a8a32f64d189b8ac17b222b9d7966f69
Merged-In: Id3674bd6a8a32f64d189b8ac17b222b9d7966f69
2024-02-21 18:16:51 +00:00
Ian Kasprzak
1b2eea56e6 Move RELEASE_PLATFORM_VERSION_KNOWN_CODENAMES out to release configs.
We have more known codenames then we are releasing, and need a way to
override this in release configs.

Bug: 307733231
Test: m nothing
Change-Id: I2215dc449ca28cae253f514183507550b58f267b
Merged-In: I2215dc449ca28cae253f514183507550b58f267b
(cherry picked from commit 569b9e08fa)
2024-02-21 17:12:16 +00:00
Hsin-Yi Chen
bc5a4271ee Merge "Define a make target for all LLNDK dumps" into main 2024-02-21 07:42:50 +00:00
Hsin-Yi Chen
23d855680c Define a make target for all LLNDK dumps
- Define findlsdumps_LLNDK that vFRC process will build.
- Move LSDUMP_PATHS_FILE to target/product/gsi/Android.mk.
- Allow LLNDK dumps in prebuilts/abi-dumps/vndk.

Test: m findlsdumps_LLNDK check-vndk-list
Bug: 314010764
Change-Id: I6329cd4b1b919069291a13bd03720ceea46b95ff
2024-02-21 03:46:57 +00:00
Luca Farsi
88feffcb1a Build config file zips
Build general-tests_configs.zip and general-testlist.zip as part of the
build_test_suites step, which general-tests also outputs.

Test: BUILD_NUMBER="P0" ./build/make/ci/build_test_suites --target_product aosp_x86_64
--target_release trunk_staging --with_dexpreopt_boot_img_and_system_server_only --dist_dir <dist_dir> --change_info <change_info_file> <extra_targets>
Bug: 314171817

Change-Id: Ic324ed4e5a05e1308dee3af7f15c067f88018b2d
2024-02-20 17:33:32 -08:00
Luca Farsi
a677887047 Split out host shared libs target from general-tests
Split out the building of the host shared libs zip from the
general-tests target so it can be built separately. building
general-tests will still build both.

Test: m general-tests, m general-tests-shared-libs
Bug: 314171817
Change-Id: I99f6d7ae5578d8bc97ddc0c047398defbf9b8cc9
2024-02-20 14:06:02 -08:00
Spandan Das
9001b9afbf Merge "Revert "Revert "Create a product variable for skipping apex cont..."" into main 2024-02-20 07:53:04 +00:00
Nikita Ioffe
68e2e5375c Merge "Remove unused PRODUCT_AVF_KERNEL_MODULES_ENABLED" into main 2024-02-19 17:29:09 +00:00
Treehugger Robot
7298b076e1 Merge "Disable reboot to ram dump on zygote crash loop for -eng builds" into main 2024-02-18 13:45:25 +00:00
Nishant Panwar
6d0576122a Add SDK library framework-pdf-v in MediaProvider
SDK library for pdf related bootclasspath classes that were part of the non-updatable API before V, and were moved to the module in V. Other pdf related bootclasspath classes in mediaprovider should go to framework-pdf.

Bug: b/324667310
Test: presubmit and m
Change-Id: I92aabf297508f2c885a721d11d40b5262b6847fe
2024-02-17 05:09:00 +00:00
Spandan Das
7416360cb3 Revert "Revert "Create a product variable for skipping apex cont..."
Revert submission 2966055-revert-2964509-skip-apex-contributions-EOKWOFHENC

Reason for revert: The root cause CL has been reverted https://googleplex-android-review.git.corp.google.com/c/platform/vendor/google/build/+/26268799

Reverted changes: /q/submissionid:2966055-revert-2964509-skip-apex-contributions-EOKWOFHENC

Change-Id: I9a40b652d38f1a4a4693e0cdb66cbe48632bafff
2024-02-17 03:31:51 +00:00
Treehugger Robot
cdf6054f03 Merge "Revert "Create a product variable for skipping apex contribution..."" into main 2024-02-17 02:24:02 +00:00
Jihoon Kang
8804a8e2bd Revert "Create a product variable for skipping apex contribution..."
Revert submission 2964509-skip-apex-contributions

Reason for revert: 325666427

Reverted changes: /q/submissionid:2964509-skip-apex-contributions

Change-Id: I0172bdf99adce7b0eef42161c79cc7c1fdf977eb
2024-02-16 23:25:08 +00:00
Steven Moreland
7da596feca system += misctrl
Generic utility for managing the misc partition.

Bug: 317262681
Test: boot, check logs + bugreport
Change-Id: I249efeed4c8757ad0b849ecee0bfcab86d0cdcd6
2024-02-16 22:31:15 +00:00
Devin Moore
18a2ebc4ab Merge "consolidate filter commands for check_vintf_vendor_deps" into main 2024-02-16 18:36:55 +00:00
Devin Moore
6795ca7804 consolidate filter commands for check_vintf_vendor_deps
It's faster to make one filter call.

Test: m
Bug: none
Change-Id: I629d30d8e63c8ac6d75334acc2b21acce352c43e
2024-02-16 18:00:08 +00:00
Mitch Phillips
0b29218f80 Merge "Re-enable MTE stack on fullmte builds." into main 2024-02-16 09:01:34 +00:00
Inseob Kim
1bcaa80f76 Merge "Fix characteristic rro for overridden packages" into main 2024-02-16 01:41:48 +00:00