Commit Graph

38088 Commits

Author SHA1 Message Date
Ricardo Cerqueira
6aee24e728 Add BOARD_CUSTOM_BOOTIMG_MK support
This is a combination of 2 commits.
This is the 1st commit message:

    Add BOARD_CUSTOM_BOOTIMG_MK support

    Simplified version of the previous implementation. Recovery's ramdisk
    is spun off from the main recovery target again to allow overriding
    just the image-generation step

    [mikeioannina]: Squash cm-13.0 changes and adapt to N

    Change-Id: I058d214f0cf2d05b7621b369ef1f8a983c3ac258

This is the commit message #2:

    build: Handle custom boot images properly

    When a pre-built image should be used, it should be stored in the
    target files zip so that it can be used with external signing
    processes.

    Original-Change-Id: I2661af9ac58af30bb9314b552775046d3abf44e0
    Change-Id: I10b3bd0bb33489b8ffb26d16d002f8dd6ff405ad

[aleasto]
  Rewritten for R, where the recovery ramdisk is created via
  make dependencies, rather than $(call)s

[mainey]
  Adapt to new flag INTERNAL_RECOVERY_RAMDISK_FILES_TIMESTAMP

Change-Id: I058d214f0cf2d05b7621b369ef1f8a983c3ac258
2025-02-05 20:37:48 +08:00
Ricardo Cerqueira
69a8fa31bb build: Squash of allowing a device to generically define its own headers
Author: Ricardo Cerqueira <cyanogenmod@cerqueira.org>
Date:   2011-04-12 10:57:22 +0100
    Allow a device to generically define its own headers

    We have a few cases of devices including specific versions of projects
    just because of modified headers (msm_mdp.h comes to mind), and I just
    had enough of ifdeffing header files for specific cases (the P990 needs
    a lot of these).
    Now... if a target defines a TARGET_SPECIFIC_HEADER_PATH, any headers in
    there will take precedence over the standard ones; for example, on the
    p990, I have

    TARGET_SPECIFIC_HEADER_PATH := device/lge/p990/include

    which makes, for example, the
    device/lge/p990/include/hardware_legacy/AudioHardwareInterface.h be
    used instead of
    hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h
    whenever a source file uses <hardware_legacy/AudioHardwareInterface.h>

    Change-Id: I41b62668b60e3f62a6ebd3738d8d2675103a81e6a

    build: fix target header overlay

    LOCAL_C_INCLUDES as defined by the makefile should be put AFTER
    the overlay includes so the overlay always takes precedence.

    Change-Id: I489b2aab6dbacd9122d834f85e07b63ed1271f07

Author: Jan Altensen <info@stricted.net>
Date:   2020-09-10 15:18:49 +0200
    soong: add TARGET_SPECIFIC_HEADER_PATH

    Change-Id: I582ae8e6e010016b33fd9b020b723e5fc2dc442b

Change-Id: I3c885fe504ce4f646001697119cffd674db9ec49
2025-02-05 20:37:48 +08:00
Luca Stefani
80f63ee9d1 Add build support for XZ ramdisks
Co-authored-by: Arne Coucheron <arco68@gmail.com>
Change-Id: I61530b6da06e0038970551aa4d12bce02007ae3c
2025-02-05 20:37:48 +08:00
Arne Coucheron
bebc2416e8 Fix recovery image generation with LZ4 compressed ramdisk
Change-Id: I37e360de4a8273636877b4d541c597a6376a16cb
2025-02-05 20:35:57 +08:00
Alessandro Astone
f31cd50820 Remove unused locale data for recovery
AOSP wants to show localized menus for rescue party and
format data. To achieve that, they produce at compile time a big
PNG file with rows of localized text. The runtime would then pick
the correct row to draw.

In order to customize our recovery UI we cannot draw pregenerated
text. Avoid generating these files to shrink recovery size.
(Saving 2.3MB on xxhdpi!)

Change-Id: Id38d239254f17eeed5491621865c747a8496ed83
2025-02-05 20:35:57 +08:00
Michael Bestas
7f8d33bcc3 Add blank_unblank_on_init to PRIVATE_RECOVERY_UI_PROPERTIES
...in order for it to end up in recovery properties.

Required after 139c727036

Change-Id: Ibc13eeaabbd24f04b1cea103281d6d98f7956729
2025-02-05 20:35:57 +08:00
Chirayu Desai
eb675ba542 Allow setting the recovery density separately from the aapt config
Change-Id: I817a4c01302956ec846503d9a585c43e690e45bf
2025-02-05 20:35:57 +08:00
Matt Mower
70bb27e71e build: Separate commands in recovery foreach loops
The foreach loops output a space separated list, not necessarily one
command per line. Separate commands with semicolons. Notably, this
fixes an issue with multiple device directories included in
TARGET_RECOVERY_DEVICE_DIRS.

Change-Id: I5ebdc84ecaaacabaea77b8b752141e2041622480
2025-02-05 20:35:57 +08:00
Tom Marshall
3942072885 build: recovery: Support adding device-specific items
Change-Id: I25205e68282680932917016646dabd1abadbfce6
2025-02-05 20:35:57 +08:00
TheScarastic
abb95af328 Don't make recovery patch for devices with prebuilt vendor
Change-Id: I05c0155e6331bfeccd4ad545e003fa3fa3498044
2025-02-05 20:35:57 +08:00
Steve Kondik
6d06aad39d Allow override of device asserts, including multi-device support.
Set in board file with TARGET_OTA_ASSERT_DEVICE.
(cherry-picked from commit 0f452f21fc9323b9d1fe746161761cf40aaa5030)

Change-Id: I3d06bdc0e3e26bde0c0e646accd050364f9713b9

ota_from_target_files: Remove device dependent arguments

These device-specific arguments are defined at build time and are
necessary to generate the zip correctly. Don't use command line
arguments to specify them, but write all the needed information
in misc_info.txt when the target-files zip is generated.
ota_from_target_files will then read misc_info.txt and set
everything automatically.

Change-Id: Ibdbca575b76eb07b53fccfcea52a351c7e333f91
Signed-off-by: André Pinela <sheffzor@gmail.com>
2025-02-05 20:35:57 +08:00
Rashed Abdel-Tawab
464e82f94b build: Automatically replace old-style kernel header includes with new header lib
This is a combination of 3 commits.
This is the 1st commit message:

build: add kernel header dependency if module uses kernel headers

Many of the QCOM components use kernel headers, but don't declare
the dependency on them.  This is fine in CAF because of the way they
build the boot.img before anything else.  In CM, we don't build the
boot.img the same, so we run into a race between the kernel build &
these modules... and the modules lose.

Warn about modules that have this missing dependency, and add it for
them so we don't have to modify each Android.mk.

Change-Id: I95f1e47b5ef440f6f5d8f64a0c3f38d9572e839e

============================================================================
This is the commit message #2:

build: Switch kernel header inclusion

The build is switching to the target INSTALLED_KERNEL_HEADERS to
declare dependencies on kernel headers.

Change-Id: I913e74681b02dfcf1eaed3d1e47ff4ab2300b12d

============================================================================
This is the commit message #3:

build: Automatically replace old-style kernel header includes with new header lib

Since we do this via soong and the result is a header library, just replace all
legacy include paths that point to the old header location with calls to the new
header library. Since we no longer have the legacy include, we can also remove
the additional dependency.

This reverts commit fa798218e5b7f96e12ab3acc9d47a3f26a140777.

Change-Id: I716955534e50831e6568ca01e480aa8b90075d92
2025-02-05 20:35:57 +08:00
dianlujitao
05d4432080 Add extra variables to _readonly_late_variables
These are modified by us at a later stage, so be sure
to allow it.

Change-Id: Ib26e83e10aeb6c107fd6e5757185c05cd6665760
2025-02-05 20:35:57 +08:00
RITEFANG
4aeaa2f1d1 build: Add MinusOS build support
Squashed also with the following changes:

  Author: Luca Stefani <luca020400@lineageos.org>
  Date:   Thu Aug 17 22:22:13 2017 +0200

    core: Include PixelProject pathmap

  Change-Id: Ie25dee383cc5bc9bb6390cff2cb2460d526d80b6

  Author: Simon Shields <simon@lineageos.org>
  Date:   Fri Mar 2 12:55:47 2018 +1100

    build: unconditionally use PixelProject pathmap

    even if we're not building a pixelproject target, we need to
    use the pixelproject pathmap to make things like recovery and ril
    happy

  Change-Id: I974c30ad10d4ff5b7805c3df9c22010f1e002bf1

  Author: Luca Stefani <luca.stefani.ge1@gmail.com>
  Date:   Tue Jan 22 15:50:52 2019 +0100

    Don't export BUILD_NUMBER in envsetup

    * The value is meant to be set only before running an /official/ build
    * This allows us to execute consecutive make commands without
      running kati for every invocation

  Change-Id: Ifa94b839f30c7260009c8a3c91c202b50e28022e

  Author: Luca Stefani <luca020400@lineageos.org>
  Date:   Fri Aug 18 10:17:00 2017 +0200

    envsetup: Call fixup_common_out_dir

  Change-Id: I84e16b0df5822cfd8514c46d709109a13c20f86e

  Author: Adrian DC <radian.dc@gmail.com>
  Date:   Sat May 12 11:24:33 2018 +0200

    build: Include PixelProject specific properties in build.prop

     * Our properties were supposed to go to /system/etc/prop.default
        after the following commit:
        "pixelproject: Move to Google's method of defining system default props"
        Change-Id: I6cb0e28a7599b010b389cc541015a37010a00f4b

     * However if BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED is not true,
        only /default.prop will retain the properties contents of
        ADDITIONAL_DEFAULT_PROPERTIES and PRODUCT_SYSTEM_DEFAULT_PROPERTIES,
        and none of our versioning identification was held in the system

     * Enabling BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED globally would
        break all properties on devices that handle partitions usually
        at the device level rather than the kernel due to mounting races

     * Include the vendor/aosp/config/main.mk entrypoint to be allowed
        to extend ADDITION_BUILD_PROPERTIES as we need to define our releases

  Change-Id: I19918eece0f0dd3ee967db0339b4d09c9a6d540e
  Signed-off-by: Adrian DC <radian.dc@gmail.com>

  Author: Rashed Abdel-Tawab <rashed@linux.com>
  Date:   Thu Sep 5 21:35:38 2019 -0700

    core: Only include PixelProject SE policy if repo exists

  Change-Id: If799106d2da6d8c303430e316edff365a22f7c99

  Author: dianlujitao <dianlujitao@lineageos.org>
  Date:   Thu Sep 5 21:56:36 2019 +0800

    product: Exclude AOSP apn list on PixelProject build

    Change-Id: I1fd10089421a2e4b57ef565d87ad1f6036bd1898

  Author: Michael Bestas <mkbestas@lineageos.org>
  Date:   Fri Apr 12 02:10:12 2019 +0300

    build: Conditionally include AudioPackage14.mk instead of AllAudio.mk

    * AllAudio.mk doesn't contain latest material files and also
      contains multiple duplicate files. Just copy the latest
      material ones and we'll include the older files in vendor/aosp

    Change-Id: Ic7353216a3f3dc3c51006d951ac932cfd6e5f3b5

  Author: dhacker29 <dhackerdvm@gmail.com>
  Date:   Sat Jun 6 22:22:05 2015 -0400

    Remove LatinIME as it is included per target in vendor/aosp

    Change-Id: Ibce4a244ec0653a7c7798d864047ac667866a1dc

  Author: razorloves <razorloves@gmail.com>
  Date:   Mon Oct 7 05:10:56 2019 -0500

    build: Remove su inclusion

    This stops including su in all pixelproject userdebug/eng builds.
    Inclusion of su is conditionally handled in /vendor/aosp.

    Change-Id: Ia3ad978146f170a2b260d77afe9eb580d4b4f823

  Author: Michael Bestas <mkbestas@lineageos.org>
  Date:   Sat Nov 7 22:45:12 2020 +0200

    Stop including vendor specific clear_vars.mk

    vendor/aosp/build/core/clear_vars.mk is no-op since 16.0

    Change-Id: I7e159cc9ed5a838c9a04c1a8b7dcf925d83f0e20

Change-Id: Iab8b2ef8b644a7bea10bfd28b99d9e69539b1357
Signed-off-by: RITEFANG <1721985272@qq.com>
2025-02-05 20:35:57 +08:00
Android Build Coastguard Worker
75bb8bac25 Version bump to AP4A.250205.002.C1 [core/build_id.mk]
Change-Id: I798a128fd734603ea1dbe42ad087d36dae481f73
2024-12-18 16:56:07 -08:00
Android Build Coastguard Worker
0530ba230c Version bump to AP4A.250205.002 [core/build_id.mk]
Change-Id: I4b14792a99fa9dcca93e57f4c297fb93dfe79a36
2024-12-18 12:31:41 -08:00
Android Build Coastguard Worker
25512f49ed Version bump to AP4A.250205.001 [core/build_id.mk]
Change-Id: I6ea25ddd48142f20d9eb62ce97ba0e73b5e539e6
2024-12-18 08:34:28 -08:00
Android Build Coastguard Worker
dd5da7b9be Version bump to AP4A.250105.002 [core/build_id.mk]
Change-Id: I10f49aec52212ffc6b5bfd41433fa523781ecf6b
2024-11-22 21:07:38 +00:00
Android Build Coastguard Worker
950aff63e8 Version bump to AP4A.250105.001 [core/build_id.mk]
Change-Id: I1b7c4ddbead7ede06a3331978664b75ab5e1de32
2024-11-22 17:00:32 +00:00
Android Build Coastguard Worker
64078752f5 Version bump to AP4A.241205.013 [core/build_id.mk]
Change-Id: I7f5c85707b6422e67ef693548e7ae812293e6396
2024-11-07 16:02:29 +00:00
Android Build Coastguard Worker
dce38d96be Version bump to AP4A.241205.012 [core/build_id.mk]
Change-Id: I08468e9e508b18afabde5097fe9743012ec459de
2024-11-04 20:44:46 +00:00
Android Build Coastguard Worker
e99e203bb3 Version bump to AP4A.241205.011 [core/build_id.mk]
Change-Id: Iff14792808f7fc96d580f945415f46e84ec6abb0
2024-10-31 19:25:58 +00:00
Android Build Coastguard Worker
7d8bd3838b Version bump to AP4A.241205.010 [core/build_id.mk]
Change-Id: I3b0e7bb957f9738b363bb01e38a5e9237279814c
2024-10-30 23:08:35 +00:00
Android Build Coastguard Worker
2907d249f4 Version bump to AP4A.241205.009 [core/build_id.mk]
Change-Id: Ib638206147177dcc41fe29f3d97f5c2d09a20d3d
2024-10-30 18:24:30 +00:00
Android Build Coastguard Worker
bed99211a3 Make change and version bump to AP4A.241205.008
Merge cherrypicks of ['android-review.googlesource.com/3299864'] into 24Q4-release.

Change-Id: Ic2aa560c41771e3ffe1748cb3dc4f801808e6881
2024-10-30 00:20:58 +00:00
Evgenii Stepanov
cafb3c3b62 Revert^3 "Use -target-feature for MTE"
This reverts commit fe67d8f1f2.

Reason for revert: reapplied too early
(cherry picked from https://android-review.googlesource.com/q/commit:476da833e12179d31f6a301ad65bf45c63a28818)
Merged-In: I8d5f8b056a644b661bf03e79e1f1a783a3dcbf1d
Change-Id: I8d5f8b056a644b661bf03e79e1f1a783a3dcbf1d
2024-10-30 00:19:11 +00:00
Android Build Coastguard Worker
a213095be0 Version bump to AP4A.241205.007 [core/build_id.mk]
Change-Id: I8e4dcaebc6d41efdf0a5ff28a8a26ed178505e65
2024-10-28 23:33:47 +00:00
Android Build Coastguard Worker
723b777f66 Version bump to AP4A.241205.006 [core/build_id.mk]
Change-Id: Ib2a3582fee7a19cfac9ef20e9094fe0534924912
2024-10-25 23:03:51 +00:00
Android Build Coastguard Worker
e4548a8eed Version bump to AP4A.241205.005 [core/build_id.mk]
Change-Id: I46d675451f3a6430e85b29dfaeb20d0855bc869b
2024-10-25 00:21:36 +00:00
Android Build Coastguard Worker
cf2abf5575 Version bump to AP4A.241205.004 [core/build_id.mk]
Change-Id: Idf1df78bfbbdb0d87db94527ae4b68814de4fd6b
2024-10-23 22:51:58 +00:00
Android Build Coastguard Worker
7402d26208 Version bump to AP4A.241205.003 [core/build_id.mk]
Change-Id: I93a8898462c299515212bb66a2f334e43f3514ac
2024-10-22 23:30:11 +00:00
Android Build Coastguard Worker
fe0593da02 Version bump to AP4A.241205.002 [core/build_id.mk]
Change-Id: Icae877953a2cc48e052f588eb274dba341fd3ea8
2024-10-21 23:31:13 +00:00
Android Build Coastguard Worker
4b2d1476f7 Version bump to AP4A.241205.001 [core/build_id.mk]
Change-Id: Ibb9b233726c083758d1df1f414f54cb0e6e6dbdd
2024-10-18 23:52:44 +00:00
Android Build Coastguard Worker
f02ead4828 Version bump to AP4A.240925.023 [core/build_id.mk]
Change-Id: I2aa8613140166bb07a50932abd97878d7a516fcc
2024-10-18 21:21:27 +00:00
Android Build Coastguard Worker
d6d3926f84 Version bump to AP4A.240925.022 [core/build_id.mk]
Change-Id: I59d55357b0aba278b8e9074abe4e7f9d948e7cee
2024-10-17 22:56:58 +00:00
Android Build Coastguard Worker
0b40f8f3ba Version bump to AP4A.240925.021 [core/build_id.mk]
Change-Id: I1fbcb0db817ab11ca26c970cc8691bb6ec05a35e
2024-10-17 00:34:13 +00:00
Android Build Coastguard Worker
6ce33b8b16 Version bump to AP4A.240925.020 [core/build_id.mk]
Change-Id: Iadf3f5e370ca13c88842241a387461a77b35e431
2024-10-15 23:38:35 +00:00
Android Build Coastguard Worker
6d85b9b3b5 Version bump to AP4A.240925.019 [core/build_id.mk]
Change-Id: I5e9b7fe6e1bf923d9921626baf8e6f58a0cbeb24
2024-10-14 23:14:11 +00:00
Android Build Coastguard Worker
934d4f53ea Version bump to AP4A.240925.018 [core/build_id.mk]
Change-Id: Ic32f6b849202264f0a47de03fd326f96249f7925
2024-10-13 16:42:32 +00:00
Android Build Coastguard Worker
6192ac29b0 Make change and version bump to AP4A.240925.017
Merge cherrypicks of ['googleplex-android-review.googlesource.com/29668910'] into 24Q4-release.

Change-Id: I34115cbc761b0e9e0527cd505569c668622db521
2024-10-11 01:04:34 +00:00
Android Build Coastguard Worker
af6d41c6cf Version bump to AP4A.240925.016 [core/build_id.mk]
Change-Id: Id0458914681768ba54cb9376990a684f4fafafe3
2024-10-10 20:44:07 +00:00
Android Build Coastguard Worker
e50ba70390 Version bump to AP4A.240925.015 [core/build_id.mk]
Change-Id: I7dd52a342d03994bb779a34ee26eba719dc1928b
2024-10-09 00:49:54 +00:00
Android Build Coastguard Worker
0aa4156d4c Version bump to AP4A.240925.014 [core/build_id.mk]
Change-Id: I2daa8dd84d2f81ee92b4e7fffe73a7642e4378a3
2024-10-08 22:58:58 +00:00
Android Build Coastguard Worker
e812d39572 Version bump to AP4A.240925.013 [core/build_id.mk]
Change-Id: I12aa587e29bc4819a88a76688525770fc4e498b5
2024-10-08 02:24:25 +00:00
Android Build Coastguard Worker
126d94b739 Version bump to AP4A.240925.012 [core/build_id.mk]
Change-Id: I5e843d88b65119ea5b1757b56ed7d4f8bf5f3ee3
2024-10-08 00:13:30 +00:00
Android Build Coastguard Worker
79f84c3205 Version bump to AP4A.240925.011 [core/build_id.mk]
Change-Id: I19d166a12fd92e3daa8aad410d77b7cea2190fa6
2024-10-04 23:08:12 +00:00
Android Build Coastguard Worker
23aa42a59b Version bump to AP4A.240925.010 [core/build_id.mk]
Change-Id: I6d379c82b14b9b12486b2ce0344839b928965d03
2024-10-03 23:35:24 +00:00
Android Build Coastguard Worker
054fff094c Version bump to AP4A.240925.009 [core/build_id.mk]
Change-Id: I8cae164139fe520abf7de7770f2344864d2d599a
2024-10-02 23:23:53 +00:00
Android Build Coastguard Worker
11bd79842d Version bump to AP4A.240925.008 [core/build_id.mk]
Change-Id: I680fda1f2b989f4d0446c42f8dc71f20de18fd4b
2024-10-02 01:58:58 +00:00
Android Build Coastguard Worker
0b5f128af8 Version bump to AP4A.240925.007 [core/build_id.mk]
Change-Id: I10999eb82b1f3f548b97ffde97539754f7fca440
2024-09-30 17:33:03 +00:00