Commit Graph

68 Commits

Author SHA1 Message Date
chaptsand
7f86f37d52 sm8550-common: releasetools: flash init_boot
Change-Id: I5e58f521b0c949410d7955ca32dfc6c1a96e9ffc
2023-10-11 13:27:24 +08:00
Josip Kelecic
b7c9e2e15f sm8550-common: releasetools: flash vendor_boot
Change-Id: I3ffe9ce5b4578453fe481ba05953fc4b3c27599b
2023-10-11 13:27:24 +08:00
Akhil Narang
610da67c87 sm8550-common: releasetools: flash vbmeta_system as well
Change-Id: I2ecbf573fc7fa14ed7abff615c5353934f56aaee
2023-10-11 13:27:24 +08:00
XiNGRZ
765f91beec sm8550-common: releasetools: Add dtbo image to the output zip if present
Change-Id: I8bb4da99945eceae3beab77489e6b9e2a47ab972
2023-10-11 13:27:24 +08:00
chaptsand
09337b59a1 sm8550-common: Define cache partition for non-A/B OTA
Change-Id: Ie4a1e407758e8feef7c986c3c22f96b8d1d7e35e
2023-10-11 13:27:24 +08:00
chaptsand
c380289a1c sm8550-common: Correct super partition size
Change-Id: I3fa6e8d453514c4e3e89827fc4690c22e4418db8
2023-10-11 13:27:24 +08:00
chaptsand
48a16c0af9 sm8550-common: Sync fstab and vbmeta_system with stock
Change-Id: I6935a0b533236586610349fe1362686ddfd3e844
2023-10-11 13:27:18 +08:00
chaptsand
c20fe1e4cf sm8550-common: Set BOARD_MOVE_GSI_AVB_KEYS_TO_VENDOR_BOOT to true
* We have dedicated and non-A/B recovery partition

[1]: https://source.android.com/docs/core/architecture/partitions/generic-boot#option-2b

Change-Id: If09122a3dcb22cbf0ce23c6d46776f9669b9a96f
2023-10-11 03:16:41 +08:00
chaptsand
9e1d03b2cb sm8550-common: Convert to non-A/B devices with dynamic partitions
Change-Id: Id58a12940c30c5050d825ceb15a8b55f83d89061
2023-10-11 01:11:02 +08:00
chaptsand
38f840a0f2 sm8550-common: Remove Boot control HAL
Change-Id: I01e6425227a2329770ee88303fb54b0814cb7f0a
2023-10-11 01:07:08 +08:00
chaptsand
ae51c29df3 sm8550-common: Decommonize device specific blobs
Change-Id: Ibb5c9051db62117ff5a97001960b74848d2f11b3
2023-10-11 01:07:08 +08:00
chaptsand
a95b937c54 sm8550-common: Import device framework matrix
* Required by FCM Version 7

Change-Id: Ic0c44a805836c6889645d2d91f1d36058bf1d9bc
2023-10-11 01:07:08 +08:00
Roger Ellis
021eb4d038 sm8550-common: Allow ELF prebuilts in PRODUCT_COPY_FILES
* ELF prebuilts were banned in PRODUCT_COPY_FILES starting
   May 11th. See b/156534160 for long-term fix which should
   override this change.

Change-Id: Icd25b40ca4e4285319775046a1b70de30572be07
2023-10-06 23:20:54 +08:00
Dan Willemsen
483b821d58 sm8550-common: Build with overriding commands.
* To allow turning these into errors on other devices,
   and incrementally fix these issue, set BUILD_BROKEN_DUP_RULES.

Change-Id: I93637252a4cbe2e8b37648d5c0c0051a7696e13d
2023-10-06 23:20:54 +08:00
Anton Hansson
1ef32592fb sm8550-common: Set cpu "runtime variant" to cortex-a75
This makes bionic and various art tools that compile/runs cpu-specific
code choose the kryo330 at runtime. It does not affect
build-time compilation.

Bug: 120773446
Test: bionic benchmarks with and without this change
Change-Id: I670c8acd094090135515688c5f057c2cc08a083f
2023-10-06 23:20:54 +08:00
Anton Hansson
8269982e41 sm8550-common: Use generic arch variant
Follow blueline which has not demonstrated any regressions
after switching to a generic arch variant.

Bug: 120773446
Test: make
Change-Id: I9e23963fcfa5ccaa912f2930a632458c4d2a692d
2023-10-06 23:20:54 +08:00
chaptsand
7fa7447129 sm8550-common: Initial device specific properties
* from dm2qzhx-user-13-TP1A.220624.014-S9160ZHU2AWH1-release-keys

Change-Id: I9ca943ae69f0bf9a71d8fd3dec40c5f40e9edaed
2023-10-06 23:20:54 +08:00
chaptsand
2f72cf973c sm8550-common: init: Update init scripts from S9160ZHU2AWH1
Change-Id: I23d408c9b1845fe563c8b7cbdd3052effe1c0d1e
2023-10-06 23:20:54 +08:00
PRANAY BHARGAV BHAVARAJU
2590d1bf37 sm8550-common: init: Avoid setting permission for /dev/hw_random
Below patch from system/core is setting required access policy
for /dev/hw_random. And CTS test is updated accordingly

https://android-review.googlesource.com/c/platform/system/core/+/2229337
https://android-review.googlesource.com/c/platform/cts/+/2232052

Change-Id: I762dfa3b1e84dee6c49fc178b5b75cf1c134cfb7
2023-10-06 23:20:54 +08:00
chaptsand
5e520fa720 sm8550-common: Update blobs from S9160ZHU2AWH1
* dm2qzhx-user-13-TP1A.220624.014-S9160ZHU2AWH1-release-keys

Change-Id: I613ae499a5fb1bf57a3b45a17d164a9de03f352d
2023-10-06 23:20:54 +08:00
Jiyong Park
c4b96529d6 sm8550-common: Add updatable_apex.mk
The product abstracts configs that need to be set to support updating of APEXes.

Change-Id: I441fa7535c3b8bcb5897337e5c85b02f3e34053e
2023-10-06 23:20:54 +08:00
Bruno Martins
2229f3fc4e sm8550-common: Use device-specific data-ipa-cfg-mgr
This is a workaround to deal with the fact that QCOM has moved
libipanat out of data-ipa-cfg-mgr for kalama.

Change-Id: I66a01d115546af415dc7956831ea41d1e2902863
2023-10-06 23:20:54 +08:00
Bruno Martins
c709a7d3f0 sm8550-common: Enable extended compress format
It's enabled in kalama platform, as observed in stock libtinycompress.

Change-Id: I3183faced679ab433ed1ce30ac7df6c7c511e476
2023-10-06 23:20:54 +08:00
Bruno Martins
d92ed51954 sm8550-common: Skip building agm test binaries
Change-Id: I6e0f4f37b4ae465700dfd4d20e54858a8241dcf4
2023-10-06 23:20:54 +08:00
Aaron Kling
dd154e2379 sm8550-common: Move most agm and pal targets to source built
Change-Id: I6ca0c5396a3b583b37e029f5c98ff13127db65a6
2023-10-06 23:20:54 +08:00
Bruno Martins
d0711c5fe1 sm8550-common: Build misc deps and dynamic_sensor_hal from sources
Change-Id: Ifed734fc01282467b6ae7a9c893e8f474038eaaf
2023-10-06 23:20:54 +08:00
Bruno Martins
74875478ad sm8550-common: Update audio-HAL path
It has been moved to a subdir and the structure is now as follows:

  hardware/qcom-caf/$(QCOM_HARDWARE_VARIANT)/audio
  ├─ agm (clo:platform/vendor/qcom/opensource/agm)
  ├─ pal (clo:platform/vendor/qcom/opensource/arpal-lx)
  └─ primary_hal (clo:platform/hardware/qcom/audio-ar)

Change-Id: Icfce2884a482b498e97f931732d37974161cf620
2023-10-06 23:20:54 +08:00
Chandu Dyavanapelli
799f647588 sm8550-common: Update media packages
Change-Id: I27f1da2f9e4f7bad9635e34ae13f97c56394382c
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2023-10-06 23:20:54 +08:00
Chandu Dyavanapelli
fd38da7a44 sm8550-common: Wire up display
Change-Id: I0e0398f3b883ff4248d8462ff04109c6f723a300
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2023-10-06 23:20:54 +08:00
Arian
67a105fe95 sm8550-common: Enable 64bit audio HAL
Change-Id: If4734e561ff5f32aabbc5c8a31cbc40813c50650
2023-10-06 23:20:54 +08:00
Bruno Martins
7a580e0750 sm8550-common: Wire up audio and update configurations
Change-Id: I3da040b9709cd0c57baacd2808b1a09d627506eb
2023-10-06 23:20:54 +08:00
chaptsand
cf9c4297f2 sm8550-common: Initial proprietary blobs list and bringup HALs
Co-authored-by: Bruno Martins <bgcngm@gmail.com>
Co-authored-by: Simon1511 <simon2002.schoenmackers@gmail.com>
Change-Id: I4ead5aa47d892e1516acb42dcebaaf424733c815
2023-10-06 23:20:54 +08:00
Anvisha
1c93458aa4 sm8550-common: Generate boot as chained partition
This change adds necessary configuration to generate boot
and init_boot as chained partition.

Change-Id: I05b5e8fa8b6154f8191c82df574a9c535a174e8d
2023-10-06 23:20:54 +08:00
rakegand
b2ff44d25f sm8550-common: init.target.rc: Move SPU NVM directories creation to earlier stage.
Change-Id: Ic6d1a83c7fc7a54d6f8d78f91e5f3167dd7017fe
2023-10-06 23:20:54 +08:00
rakegand
ab8c9496f1 sm8550-common: Remove Strongbox manifest entry for Kalama
Strongbox entry is added as vintf fragment as device can
either support support Keymaster or Keymint based on
the configuration.

Change-Id: I07f5b891b17d8c33b25dba22c41cb60406cebed8
2023-10-06 23:20:54 +08:00
chaptsand
67551b389e sm8550-common: Import QCOM common vintf manifests
* from LA.VENDOR.13.2.0.r1-15000-KAILUA.0

Change-Id: Ic9facc620bf440d031471525735a13c13615f37e
2023-10-06 23:20:54 +08:00
chaptsand
b3a7376b75 sm8550-common: Import QCOM common configs
* from LA.VENDOR.13.2.0.r1-15000-KAILUA.0

Change-Id: Ieeecba00d5baa96988911218f00774b1efb8618a
2023-10-06 23:20:54 +08:00
chaptsand
261461ec6a sm8550-common: Import proprietary extract scripts from templates
Change-Id: I85162a0465519b019123fccaba69ca99f8a5c54b
2023-10-06 23:20:54 +08:00
chaptsand
987e12102c sm8550-common: Build QTI bootctrl HAL
Change-Id: I1d35fe73deaef39ab71dd627a17f72d60e53d717
2023-10-06 23:20:54 +08:00
Luofan Chen
19efac81bb sm8550-common: gpt-utils: Check ufs device first before checking partition names
Change-Id: I51663ff8e074681191ac708fcd7b4d28e890deaf
2023-10-06 23:20:23 +08:00
LuK1337
0594357c7c sm8550-common: gpt-utils: Fix build errors.
Change-Id: Ie8245d1637e12b5979a8af1b864cc713135b5c95
2023-10-06 11:17:39 +08:00
LuK1337
db5f2b0f9d sm8550-common: gpt-utils: Drop unnecessary includes
* When using generated_kernel_headers including
   asm/byteorder.h will cause a warning due to
   unused static functions.

 * When using generated_kernel_headers including
   stdio.h will cause errors due to redefined macros.

Change-Id: I2a74ec92487c13c4645048c96da8cb92b3cbd9f0
2023-10-06 11:17:39 +08:00
Tao Bao
dc5129cc17 sm8550-common: gpt-utils: Address the warnings
[ 11% 2/18] target  C++: libgptutils <= device/google/crosshatch/gpt-utils/gpt-utils.cpp
In file included from device/google/crosshatch/gpt-utils/gpt-utils.cpp:54:
system/core/libcutils/include_vndk/cutils/log.h:38:2: warning: "Deprecated: don't include cutils/log.h, use either android/log.h or log/log.h" [-W#warnings]
 ^
device/google/crosshatch/gpt-utils/gpt-utils.cpp:750:17: warning: unused variable 'ufs_dir_stat' [-Wunused-variable]
    struct stat ufs_dir_stat;
                ^
device/google/crosshatch/gpt-utils/gpt-utils.cpp:973:13: warning: unused variable 'r' [-Wunused-variable]
        int r, fd;
            ^
device/google/crosshatch/gpt-utils/gpt-utils.cpp:973:16: warning: unused variable 'fd' [-Wunused-variable]
        int r, fd;
               ^
4 warnings generated.

Test: lunch blueline-userdebug && m -j libgptutils
Change-Id: Idd9174276d8a5b7b77c2ec48c745a78184f65fcf
2023-10-06 11:17:39 +08:00
chaptsand
d2cfad2633 sm8550-common: Import gpt-utils from LA.VENDOR.13.2.0.r1-15000-KAILUA.0
Change-Id: I7f311639ad78c4bb4e1ba3e83eeb1cbc2114b106
2023-10-06 10:57:52 +08:00
Hridya Valsaraju
fe7d7c17ee sm8550-common: Build fastboot daemon for recovery
* So we can flash our relevant dynamic partitions.

Change-Id: I372dd9457a824868ef7344dcd861b5b56af408c0
2023-10-06 10:57:52 +08:00
Nicolas Geoffray
da1a6d1bf3 sm8550-common: Remove odex/oat files from pinner list
* The pinner now asks the runtime for these files.

Change-Id: Ida94093db4485907f78167d0b3a247cdf2795908
2023-10-06 10:57:52 +08:00
Kevin Jeon
e963aa088a sm8550-common: Update SurfaceFlinger pinned path to system/bin
* This change replaces the '/system/lib64/libsurfaceflinger.so' pin, as
   the file was removed in ag/12524602. The updated pin relies on
   go/aog/1552085, as system_service needs read access to SurfaceFlinger.

Change-Id: I8bab7d447ed24c8476087871ace9018413ad8f04
2023-10-06 10:57:52 +08:00
kocolin
2d862988f0 sm8550-common: overlay: Add some libraries to pinner list for camera
* This will help to reduce camera launch time in I/O
   busy cases.

Change-Id: I817751155e5a137ba6895049e59526bb8484e433
2023-10-06 10:57:52 +08:00
Lisa Liu
55d016395f sm8550-common: overlay: Add pinner configuration from legacy projects
Change-Id: Ief469d2510b0aa5a0c57285120f3e0e6cf7e8526
2023-10-06 10:57:52 +08:00
chaptsand
2b378cf846 sm8550-common: Import kalama vendor overlays
Change-Id: Ie9eabba9841ce8bded3998e99ce473a4bd60035b
2023-10-06 10:57:52 +08:00