Commit Graph

37217 Commits

Author SHA1 Message Date
Vilas Bhat
068928e112 Merge "16k: core: Enable TARGET_NO_BIONIC_PAGE_SIZE_MACRO by default on Android V targets" into main am: 85bd1e671e am: 04124bdcd2
Original change: https://android-review.googlesource.com/c/platform/build/+/3006608

Change-Id: I9909ea212e044928c95988bcfd253b38789d64e0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-30 00:26:43 +00:00
Vilas Bhat
9014163717 16k: core: Enable TARGET_NO_BIONIC_PAGE_SIZE_MACRO by default on Android V targets
Enabling TARGET_NO_BIONIC_PAGE_SIZE_MACRO implies those targets no
longer rely on the `PAGE_SIZE` bionic macro. Page size would be queried
at runtime using getpagesize() / sysconf(_SC_PAGE_SIZE).

Test: lunch <target> && get_build_var TARGET_NO_BIONIC_PAGE_SIZE_MACRO
Bug: 310232825
Change-Id: I01291c8626d103a4f3bbc0a659d5843a78a9b24b
2024-03-29 17:50:40 +00:00
Kiyoung Kim
5e781f324e Merge "Remove PLATFORM_VNDK_VERSION related code" into main am: d3df8b5b06 am: 83b851c938
Original change: https://android-review.googlesource.com/c/platform/build/+/3018445

Change-Id: I0189cdcab500eb9bb12ff8aedb6f3ca2ae3c9865
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-29 03:32:41 +00:00
Kiyoung Kim
d3df8b5b06 Merge "Remove PLATFORM_VNDK_VERSION related code" into main 2024-03-29 02:55:26 +00:00
LaMont Jones
e4f62e3866 Merge "release_config: cleanup how default values are used" into main 2024-03-28 23:07:25 +00:00
LaMont Jones
979c1bdfc4 release_config: cleanup how default values are used
Set the flag value to the default value, rather than waiting until the
end to check if it was set anywhere.

This matters when the flag is declared `appends=True`.

Bug: none
Test: manual
Ignore-AOSP-First: Will CP, testing on internal first.
Change-Id: I8384cf8e0e0caedb5fb5a343f8be23f37bf4dc87
Merged-In: I8384cf8e0e0caedb5fb5a343f8be23f37bf4dc87
2024-03-28 22:42:36 +00:00
LaMont Jones
5f1da22348 Merge "release_config: cleanup how default values are used" into main 2024-03-28 22:41:19 +00:00
LaMont Jones
d6be720337 release_config: cleanup how default values are used
Set the flag value to the default value, rather than waiting until the
end to check if it was set anywhere.

This matters when the flag is declared `appends=True`.

Bug: none
Test: manual
Ignore-AOSP-First: Will CP, testing on internal first.
Change-Id: I8384cf8e0e0caedb5fb5a343f8be23f37bf4dc87
2024-03-28 10:08:47 -07:00
Kiyoung Kim
fdeacfd30a Remove PLATFORM_VNDK_VERSION related code
As of VNDK deprecation, PLATFORM_VNDK_VERSION should no longer be used.
This change removes most of references for PLATFORM_VNDK_VERSION
variable.

Bug: 330100430
Test: AOSP CF build succeeded
Change-Id: I9293deffc01d2431740c43ecae23719a9171f344
2024-03-28 13:05:05 +09:00
Treehugger Robot
bf886f6708 Merge "Revert^2 "Migrate buildinfo.sh script into Soong"" into main am: efb09e77d3 am: eb9d8c057e
Original change: https://android-review.googlesource.com/c/platform/build/+/3015818

Change-Id: I4b882b043795571404b6eb4ad49dd00365acde15
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-28 03:35:48 +00:00
Treehugger Robot
efb09e77d3 Merge "Revert^2 "Migrate buildinfo.sh script into Soong"" into main 2024-03-28 02:59:51 +00:00
Treehugger Robot
2594275195 Merge "16k: core: Remove page size limitation for setting TARGET_NO_BIONIC_PAGE_SIZE_MACRO" into main am: 6c539c0d83 am: 3cf3f883f9
Original change: https://android-review.googlesource.com/c/platform/build/+/3014513

Change-Id: I894475b83b62b8eae4ede71c39dbc4489713e4e1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-27 20:36:28 +00:00
Treehugger Robot
6c539c0d83 Merge "16k: core: Remove page size limitation for setting TARGET_NO_BIONIC_PAGE_SIZE_MACRO" into main 2024-03-27 20:14:54 +00:00
Inseob Kim
06d22319d2 Revert^2 "Migrate buildinfo.sh script into Soong"
This reverts commit 54101665ee.

Reason for revert: Fixed build breakage

Bug: 322090587
Change-Id: I065a187bf5863cbb381b4f3308aae7b7200ffa6d
Test: compare build.prop before and after
Test: build multiple times and see build.prop isn't rebuilt
2024-03-27 05:19:56 +00:00
Yi-Yo Chiang
e9b7350fc8 Merge "Copy build.prop[-<part>] to dist dir only if the corresponding partition image is being built" into main am: bb50888987 am: 10c30669ef
Original change: https://android-review.googlesource.com/c/platform/build/+/3011135

Change-Id: Ia5021745f2a60aad4a796e6bfa769a66e138fbb8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-27 02:28:24 +00:00
Treehugger Robot
5d47690772 Merge "Dedupe input for target-native-copy-pairs" into main am: 65c865bd05 am: 2536dc3bea
Original change: https://android-review.googlesource.com/c/platform/build/+/3013153

Change-Id: Ic0f14ae680c7a70672f407ef36b15b5d868abc39
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-27 02:03:49 +00:00
Yi-Yo Chiang
bb50888987 Merge "Copy build.prop[-<part>] to dist dir only if the corresponding partition image is being built" into main 2024-03-27 01:55:51 +00:00
Treehugger Robot
65c865bd05 Merge "Dedupe input for target-native-copy-pairs" into main 2024-03-27 01:25:08 +00:00
Treehugger Robot
d878623e83 Merge "Allow installing fake [odm|product|system_ext] packages" into main am: 6f88286f46 am: 95375a3d67
Original change: https://android-review.googlesource.com/c/platform/build/+/3006687

Change-Id: I30c9648e1eb2f0c0433e91bc9e88fea44a71f82e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-27 00:36:11 +00:00
Treehugger Robot
6f88286f46 Merge "Allow installing fake [odm|product|system_ext] packages" into main 2024-03-26 23:59:48 +00:00
Gina Ko
f62acedcf7 Merge "Revert "Migrate buildinfo.sh script into Soong"" into main am: 813b17dd5c am: bc2fd5084c
Original change: https://android-review.googlesource.com/c/platform/build/+/3015494

Change-Id: I1909337cf7bd6d8e6ec0596a92b2b4172a328c1d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-26 23:21:38 +00:00
Gina Ko
813b17dd5c Merge "Revert "Migrate buildinfo.sh script into Soong"" into main 2024-03-26 22:46:48 +00:00
Gina Ko
54101665ee Revert "Migrate buildinfo.sh script into Soong"
Revert submission 3004875-buildinfo_prop_soong

Reason for revert: DroidMonitor-triggered revert due to breakage b/331462869

Reverted changes: /q/submissionid:3004875-buildinfo_prop_soong

Bug: 331462869
Change-Id: I02b125f10aaba538998dfe3a503ed2021405e8ae
2024-03-26 22:45:44 +00:00
Dennis Shen
86f188d2ee Merge "feed actual container name to storage file creation" into main am: 8983991175 am: 05682940bd
Original change: https://android-review.googlesource.com/c/platform/build/+/3011559

Change-Id: I779b2ef77253029bb717c381e5b451c42e5908d9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-26 16:29:35 +00:00
Inseob Kim
4ab1d60960 Merge "Migrate buildinfo.sh script into Soong" into main am: 1e13e587f5 am: b263d72c50
Original change: https://android-review.googlesource.com/c/platform/build/+/3002566

Change-Id: Ica0283373c431c3e5f5e2b83d32f148983ebb37b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-26 16:29:19 +00:00
Vilas Bhat
d3ad962cdc 16k: core: Remove page size limitation for setting TARGET_NO_BIONIC_PAGE_SIZE_MACRO
TARGET_NO_BIONIC_PAGE_SIZE_MACRO could be enabled regardless of the
value specified by TARGET_MAX_PAGE_SIZE_SUPPORTED and hence, the check
is no longer required.

Test: lunch <target> && get_build_var TARGET_NO_BIONIC_PAGE_SIZE_MACRO
Bug: 310232825

Change-Id: I4da314b803c4d84ac4ac1da691b9c195c2f2fb1d
2024-03-26 15:49:39 +00:00
Dennis Shen
34a21cae25 feed actual container name to storage file creation
Bug: b/328491388
Test: m
Change-Id: I278cfc9b8e1818d67514fbf1682850aa297ae851
2024-03-26 12:24:55 +00:00
Inseob Kim
1e13e587f5 Merge "Migrate buildinfo.sh script into Soong" into main 2024-03-26 08:06:06 +00:00
yangbill
ee0a77ba3a Dedupe input for target-native-copy-pairs
$(ALL_MODULES.$(m).BUILT_INSTALLED) may have duplicated value which may
lead to `overriding commands for target` error.

Bug: 331135912
Test: m ltp
Test: m vts
Test: m vts_kernel_ltp_tests
Change-Id: Ia84ece733cb4062ea5ca1f2f702c145cd4df2a0b
2024-03-26 03:34:41 +00:00
Vilas Bhat
9080df9c28 Merge "16k: core: Add defaults for TARGET_MAX_PAGE_SIZE_SUPPORTED" into main am: 89fefda174 am: b627829d89
Original change: https://android-review.googlesource.com/c/platform/build/+/3007070

Change-Id: Ib4032eb4a99eed7e0d0e3872d22a0744f1ba1661
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-26 00:58:45 +00:00
Treehugger Robot
3d5e5946a2 Merge "Add go apexes to ignore_apex_contributions allowlist" into main 2024-03-25 21:48:19 +00:00
Spandan Das
a6a99b7ed3 Add go apexes to ignore_apex_contributions allowlist
This ensures that we do not ignore apex_contributions for go devices

Test: lunch mokey_32-next-userdebug and verify BuildIgnoreApexContributionContents is false
Test: presubmit
Bug: 331188599
Ignore-AOSP-First: modifies an allowlist which is not present in aosp
Change-Id: I4532f3743eb3b7121e1f5e522097c1aba3d9a4fd
2024-03-25 20:08:04 +00:00
Vilas Bhat
d4e6add5b0 16k: core: Add defaults for TARGET_MAX_PAGE_SIZE_SUPPORTED
This refactors existing validation logic to do the following:
- Default ELF alignment to 4096 for non-(arm64/x86_64) targets.
- Default ELF alignment to 4096 if VSR_VENDOR_API_LEVEL < 34.

Test: lunch <target> && get_build_var TARGET_MAX_PAGE_SIZE_SUPPORTED
Bug: 310232825
Change-Id: Ia1548d74c9f92b70a80cb65cc6ed35d4c77edcd2
2024-03-25 18:11:39 +00:00
Yi-Yo Chiang
adaf1c6f11 Copy build.prop[-<part>] to dist dir only if the corresponding partition
image is being built

Bug: 330834204
Test: Build dist and check that build.prop is not copied if not building
  its partition
Change-Id: Iab08ef10e7c723867c2cf3ab4f297918dca989d3
2024-03-25 16:04:00 +08:00
Vilas Bhat
e0dfb184b2 Merge "16k: core: Change default TARGET_MAX_PAGE_SIZE_SUPPORTED to 16384" into main am: 160357160b am: 7e19a0a2c2
Original change: https://android-review.googlesource.com/c/platform/build/+/3006610

Change-Id: I60062b453e201501d58bb71c33a79be6a1218885
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-25 02:46:04 +00:00
Vilas Bhat
8c85199efe 16k: core: Change default TARGET_MAX_PAGE_SIZE_SUPPORTED to 16384
Changing TARGET_MAX_PAGE_SIZE_SUPPORTED default from 65536 to 16384 as
this would reduce the ELF alignment for files and thereby also
decreasing the padding required. Although increased padding does not
result in increased disk space (due to holes), it increases file
metadata. Reducing ELF alignment also helps reduce page table memory as
it reduces number of memory pages utilized / virtual memory address
mappings.

Test: lunch <target> && get_build_var TARGET_MAX_PAGE_SIZE_SUPPORTED
Bug: 310232825
Change-Id: I7c6b1bb699fec8b8ecf49a0f06a79d89142e3a2b
2024-03-22 20:45:45 +00:00
Spandan Das
962f544e33 Merge "Convert BuildIgnoreApexContritbutions variable to a boolean" into main 2024-03-21 18:02:14 +00:00
Spandan Das
133f72f6dc Convert BuildIgnoreApexContritbutions variable to a boolean
The ignore list is burdensome to maintain once we start adding the
module sdk contents to apex_contributions. Convert the variable to a
boolean. When set to true, all contents in `apex_contributions` will be
ignored

Bug: 308187268
Test: m nothing on aosp,google and google_fullmte devices
Ignore-AOSP-first: CL topic does a cleanup of an internal only denylist

Change-Id: If899f6eaf5449c2aa789d0bd5b791a3db715c676
2024-03-21 18:01:07 +00:00
Inseob Kim
6a35810856 Migrate buildinfo.sh script into Soong
To build system.img in Soong, we need all artifacts including
build.prop. This fully migrates buildinfo.prop file into Soong as a
first step to build build.prop on Soong.

Bug: 322090587
Test: compare build.prop before and after
Test: build multiple times and see build.prop isn't rebuilt
Change-Id: I0d5aab21a825cfe22f97a6834209f9df196625d9
2024-03-21 17:18:59 +09:00
Treehugger Robot
ff597c8cfb Merge "Remove BPTTOOL variable" into main am: a0f30662d0 am: 80f34a20b2
Original change: https://android-review.googlesource.com/c/platform/build/+/3007112

Change-Id: Iad85d31572dbb1738a65cf470c7e2c2babc452d4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-21 02:45:01 +00:00
Treehugger Robot
a0f30662d0 Merge "Remove BPTTOOL variable" into main 2024-03-21 02:15:56 +00:00
Treehugger Robot
e68bbe2074 Merge "Add 'origin' parameter to flag declarations" into main am: da552368e0 am: 57c2dcffe3
Original change: https://android-review.googlesource.com/c/platform/build/+/3008717

Change-Id: I230b60c6f3bc22b8d96d3136df30c5ed796c9258
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-21 01:25:46 +00:00
Cole Faust
d49454acab Remove BPTTOOL variable
This is unused since aosp/2654584

Test: Presubmits
Change-Id: Idf9b17d4d3b59f5a19ff544dd95d740892743303
2024-03-20 18:05:54 -07:00
LaMont Jones
0cd4acf587 Merge "Defer "no such release config" error" into main am: 96377be2a2 am: 9eb881fefa
Original change: https://android-review.googlesource.com/c/platform/build/+/3008733

Change-Id: Ic36067c495eac4952033166766b7653c71939473
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-20 23:48:16 +00:00
LaMont Jones
9ee098e25b Add 'origin' parameter to flag declarations
This will reduce toil on separating the build flags.

Bug: 330386250
Bug: 328495189
Test: manual
Change-Id: I819184738bd3603534bb5e54c4b6a3ecd0a81a90
2024-03-20 16:22:53 -07:00
LaMont Jones
76452d8b40 Defer "no such release config" error
This allows product-specific release config maps to declare release
configs.

Bug: 328495189
Test: manual
Change-Id: I862f167062ee647af00a4ec7d4af2966c6be44a8
2024-03-20 12:24:21 -07:00
Jag
c6e96a6e96 Add respective modules to the list of individually toggleable modules.
This is safe since GTS tests already exist to check for mandatory modules, which these modulea are a part of.

Test: packages/modules/common/build/mainline_modules_sdks.sh
Bug: 238203992
Ignore-AOSP-First: changes in topics with internal-first/internal-only projects.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e14f4862bb439a73214bef4d909e9bdf35de8e40)
Merged-In: Ica19b306bdbd67a86d2cf73478d0f886f782118c
Change-Id: Ica19b306bdbd67a86d2cf73478d0f886f782118c
2024-03-20 17:12:28 +00:00
Alexander Koskovich
d65b625cc5 Allow installing fake [odm|product|system_ext] packages
This is required to use the install_symlink module on these
partitions.

Test: Create install_symlink module on /system_ext
Change-Id: I78e93c5df12bae8fc23b378a30d43bf6c0b67d53
2024-03-18 15:38:18 -04:00
LaMont Jones
451abd6a06 Allow duplicate release config maps and build flag declarations
Only include a release_config_map.mk file the first time it appears in
the list.

If the flag declaration is identical to one already declared, do not
raise an error.

This eases the process of migrating where flags are declared.

Bug: b/328781415
Bug: b/328495189
Test: manual, TH
Change-Id: I18316e769438f62071723771762d6e89be98b813
Merged-In: I18316e769438f62071723771762d6e89be98b813
2024-03-18 07:43:04 -07:00
LaMont Jones
b9569eb94b Merge "Allow duplicate release config maps and build flag declarations" into main 2024-03-18 14:30:35 +00:00