Original command redirected output to the android build out. However, a
handful of configs were still generated in the source tree. Set the
bazel flag output_root to redirect these configs to the android build
out as well.
Change-Id: I5181270b773a49d74eab00b89eaaf1187471a144
Squashed commit of the following:
commit b11f60fd9b601caa10f8caec5c9f3a10c5082d68
Author: Jared Duke <jdduke@google.com>
Date: Wed Feb 16 15:43:55 2022 -0800
Enable R8 code shrinking for system_server on Pixel
Opt in to whole-program Java optimizations via R8 for Pixel devices.
This can be explicitly disabled during builds via
`SYSTEM_OPTIMIZE_JAVA=false m`.
Note that this change only enables code shrinking for system_server,
and should not impact stack traces. Additional R8 optimizations
will be enabled after broader improvements to retracing infrastructure.
See go/aperf-system-r8-faq for additional details and guidance. Also
note that R8 shrinking optimizations are implicitly disabled in ENG builds.
Enabling for non-Pixel devices will proceed in stages as we flesh
out infrastructure and validate with test populations.
Results: services.jar (20MB -> 17MB)
Bug: 210510433
Test: m + atest FrameworksServicesTests + manual testing on Raven
Change-Id: I13c0674105aa2cab7722f52344486e86e3bde26b
commit ecc5901ee57253edb0fdde5d5099c4e1078f7b6f
Author: Jared Duke <jdduke@google.com>
Date: Tue Jan 4 15:21:39 2022 -0800
Enable SystemUI R8 optimizations for Pixel
Opt in to whole-program Java optimizations via R8 for Pixel devices.
This can be explicitly disabled during builds via
`SYSTEMUI_OPTIMIZE_JAVA=false m`.
Note that this change does introduce changes to stack traces that
may require retracing for fully accurate debugging and diagonstics.
See go/aperf-system-r8-faq for additional details and guidance. Also
note that optimizations are implicitly disabled in ENG builds.
Enabling for non-Pixel devices will proceed in stages as we flesh
out infrastructure and validate with test populations.
Results:
* SystemUIGoogle.apk (40MB -> 35MB)
* SystemUIGoogle.odex (32MB -> 25MB)
Test: m + atest SystemUITests + presubmit + manual testing on Raven
Bug: 203472868
Change-Id: I67ff2c06885b21164a3034e9922163337e8787f3
Change-Id: Ib89500d70780fdf8485aaf04976d4cc607b4ccf7
Not all devices support this feature.
If a device supports this feature, enable overlay in the device tree.
This partially reverts commit 7b6521c8a4.
Change-Id: Iece2b092d0fdcbb94c41c7727de799a0b7baa700
By default, the version control information isn't checked to save time.
The normal version check uses repo, which is blocked by the aosp build
system. So the manifest is generated separately and passed to bazel.
Change-Id: I2232903af6b6b7869aef3f66d836236a041887cc
This was originally verified against out-of-tree, which is already an
absolute path. With in-tree out, the path is relative. Since pwd is
changed to the root of the kernel platform tree, the dist path needs to
be absolute.
Fixes: 7cd90ecd (kernel: Support building from kernel platform)
Change-Id: Ib9cecdc5f8bfd3345afc73c050ab6214ac4c48d6
In the interest of customization, here are a bunch more alarms and notifications sounds. The code is taken from ProtonAOSP, and adapted to Lineage.
Cherry-picked from: 629b35007c
Cherry-picked from: 6f203a966f
Change-Id: Iaacb0d2e94d2dda1cf90cabb9368cea1a4cf0a7f
Authored-by: Danny Lin <danny@kdrag0n.dev>
Co-Authored-by: Inhishonor <inhishonor@protonmail.com>
This expects a few build variables to be set:
* TARGET_KERNEL_PLATFORM_TARGET: The base target name. For example,
'tegra' will indicate that the dist target is tegra_dist, abi is
tegra_abi, etc.
* TARGET_KERNEL_VERSION: Used to determine the kernel checkout path. For
example, a value of 6.6 will expect the kernel platform repo to be
checked out to $BUILD_TOP/../kernel-6.6.
* TARGET_KERNEL_SOURCE: Relative to the top of the kernel platform
checkout, the path to the kernel build rules. For example,
vendor/nvidia/tegra.
* BOARD_KERNEL_IMAGE_NAME: The kernel image to use. For example, Image.
Using the examples above, this will run bazel in the kernel-6.6
directory on the target //vendor/nvidia/tegra:tegra_dist, then source
the output from $OUT/tegra/dist, with the prebuilt kernel image being
Image.
Change-Id: If96e96dffa2c0bfd9bd824bb3d8064eb861c9d00