Commit Graph

22 Commits

Author SHA1 Message Date
Luca Stefani
a7b6b03d27 Add support for prop overrides
The format of the overrides is KEY=VALUE
Where KEY is one of the dict keys used in config
https://cs.android.com/android/platform/superproject/main/+/main:build/soong/scripts/gen_build_prop.py
And VALUE is the value you want take over.

An example:
PRODUCT_BUILD_PROP_OVERRIDES += \
    BuildDesc="jfltevzw-user 4.2.2 JDQ39 I545VRUAMDK release-keys" \
    BuildFingerprint=Verizon/jfltevzw/jfltevzw:4.2.2/JDQ39/I545VRUAMDK:user/release-keys \
    DeviceName=jfltevzw \
    DeviceProduct=jfltevzw \
    SystemDevice=jfltevzw \
    SystemName=jfltevzw

Change-Id: Ib44a3bb573d08d492acc092e104cb4f687f3b168
2025-02-18 13:24:05 +08:00
beanstown106
0754262ae7 soong: Show only Build ID in "Build number" section
(Former Change-Id: Ibf29628c622cab05597a5ca8cfd265534d303f8c)
Change-Id: I3e4f83d7ca5f0ac3b2036c5ef363c09ad565fcd1
Signed-off-by: Hridaya Prajapati <hridaya@pixelos.net>
2025-02-11 22:38:24 +08:00
Ido Ben-Hur
107888e09e soong: Hardcode release-keys instead of dev-keys
- We sign inline.

Change-Id: Idfac2f3a48973a3068da48f04724d5fa4ee5e934
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2025-02-11 22:38:07 +08:00
Michael Bestas
742736d955 Conditionally use Unix epoch time for build incremental
Incremental version is used in various places to invalidate caches.
Setting BUILD_NUMBER directly causes unnecessary rebuilds due to
environment variable changes, so simply set it to Unix epoch unless
BUILD_NUMBER is explicitly set.

Change-Id: Id590df48ae1b73b63039f185644103d66a4bbbb3
2025-02-11 22:37:11 +08:00
SkyMinus
6743f96dcb gen_build_prop: Set ro.minus.device
Change-Id: I485d74642b869d7ac94ef2fd171cafd759965d41
(cherry picked from commit 03a92d7ad592feb7069859ab7a860ac0fb0f94a3)
2025-02-11 22:35:39 +08:00
Michael Bestas
8768f3afc1 gen_build_prop: Set ro.minui.default_touch_rotation
Change-Id: I18745292fadb8a8ff37d94e5603256997a3c1036
2025-02-11 22:32:44 +08:00
Michael Bestas
8bc24ce26b gen_build_prop: Set ro.build.fingerprint
Change-Id: I0e40b6f8154f8bc9a7b8450ecb4af4c44ab3d46d
2025-02-11 22:32:35 +08:00
Inseob Kim
01d4f8b823 Build product/odm build.prop with Soong
Bug: 322090587
Test: compare build.prop before and after, boot
Change-Id: I7a7dc785030a0c17e5c09b7f65c978fe9bbcb7a7
2024-08-08 18:13:08 +09:00
Inseob Kim
acf9174120 Add system_ext support to build_prop module
As some partitions have build.prop under etc/, this change adds
relative_install_path property to build_prop module. Also this change
adds system_ext related Soong variables and system_ext support in
gen_build_prop.py.

Bug: 322090587
Test: build and compare system_ext/etc/build.prop
Change-Id: I416662b8bae09383af0cdd3d8444a5c300006b7b
2024-08-05 12:51:05 +09:00
Inseob Kim
81e60c9c0b Merge changes from topic "revert-3200273-revert-3196490-revert-3195812-revert-3195644-revert-3195637-revert-3184480-system_build_prop_soong-BZIDUTEOOC-KRUETCBWUR-TUHZPHUVFJ-XYILSUPUOA-PCKYAVELZP-XOXPVYPSBJ" into main
* changes:
  Revert^6 "Use Soong-built system/build.prop"
  Revert^6 "Sync gen_build_prop.py to sysprop.mk"
  Revert^2 "Conditionally pass kernel version to build.prop"
  Revert^6 "Add TARGET_SYSTEM_PROP to system build.prop"
  Revert "Revert "Revert^2 "Set output for build_prop even on Soon..."
2024-08-01 00:02:58 +00:00
Inseob Kim
2887482f0f Revert^6 "Sync gen_build_prop.py to sysprop.mk"
This reverts commit 7b7593968b.

Reason for revert: fixed breakage with aosp/3200730, verified with ABTD

Change-Id: I83a4cb1a39bce1a1da8fabd49c6c895862a6c686
2024-07-31 02:18:07 +00:00
Liana Kazanova
7b7593968b Revert^5 "Sync gen_build_prop.py to sysprop.mk"
2c7e13ea37

Change-Id: Ic1fd9ec4d65b657fb80a3849539e286934111d3c
2024-07-30 23:23:28 +00:00
Inseob Kim
60f2636903 Fix build thumbprint in gen_build_prop.py
Bug: 356297315
Test: TH and ABTD
Change-Id: I28bccbbafbf9bcdf45a58361e37435b8d74d7464
2024-07-31 08:00:34 +09:00
Inseob Kim
2c7e13ea37 Revert^4 "Sync gen_build_prop.py to sysprop.mk"
c13856eb1d

Change-Id: I4af6737c9d96821b524e34f271e92b610430a8d4
2024-07-25 10:58:08 +00:00
Pechetty Sravani (xWF)
c13856eb1d Revert^3 "Sync gen_build_prop.py to sysprop.mk"
e176dc9ee2

Change-Id: I8cf265281ff16ad65d1fe8d6084a6fd49adc294c
2024-07-25 09:21:09 +00:00
Inseob Kim
e176dc9ee2 Revert^2 "Sync gen_build_prop.py to sysprop.mk"
0e7cde59c8

Change-Id: If8b60802c8bdc62689d8939d5efa9007ad814d85
2024-07-25 03:27:49 +00:00
Inseob Kim
0e7cde59c8 Revert "Sync gen_build_prop.py to sysprop.mk"
Revert submission 3184480-system_build_prop_soong

Reason for revert: breaks ndk and mainline build 

Reverted changes: /q/submissionid:3184480-system_build_prop_soong

Change-Id: I833aacf23bbe7cd16b6aad0b7d94a9b46a8192e4
2024-07-25 02:45:53 +00:00
Inseob Kim
19fd1316b7 Sync gen_build_prop.py to sysprop.mk
Also fixes a bug on an if clause.

Bug: 322090587
Test: build and compare both build.prop files
Change-Id: Id0dfba98f5cd67c939594554b470e7fad9cfd518
2024-07-24 15:53:54 +09:00
Inseob Kim
51d3a6d2d3 Fix DISPLAY_BUILD_NUMBER
The dot was accidentally removed.

Bug: 353425495
Test: build
Change-Id: Id0c08f3c98d5b2f56e49180baf98bb8847f6bebd
2024-07-19 09:26:36 +09:00
Justin Yun
ac4a727793 Fix build error for gen_build_prop.py
Provided undefined constants and imports.

Bug: 346214958
Test: Define "PRODUCT_DEFAULT_DEV_CERTIFICATE := \
                 build/make/target/product/security/testkey" and
      m aosp_cf_system_x86_64
Change-Id: Ic65f059fe87a997a9be695ebf13dfde2d2c6f82c
2024-07-03 13:34:29 +09:00
Inseob Kim
5a994c7e9c Fix a bug that BUILD_VERSION_TAGS is ignored
Bug: 349046347
Test: set BUILD_VERSION_TAGS and build
Change-Id: Ib981d917435d23139ac0c5b0aba5b6893539d200
2024-06-26 10:30:21 +09:00
Inseob Kim
2da72af53a Add build_prop soong module
build_prop is a soong module generating {partition}/build.prop. It's
ported from build/make/core/sysprop.mk and will replace sysprop.mk in
the future. Currently used only by Android.bp cuttlefish system image.

Bug: 322090587
Bug: 346214958
Test: compare system/build.prop and aosp_cf_x86_64_system-build.prop for
      eng / user / userdebug
Change-Id: Iad76139fe86ec4f582218c185aa15baeacaa38dc
2024-06-19 10:42:07 +09:00