Commit graph

120 commits

Author SHA1 Message Date
Betty Zhou
e582d85720 Revert "Enable KUnit testing on raviole userdebug & eng build target."
This reverts commit c5b3375835.

Reason for revert: It's not need anymore for kunit testing

Change-Id: I8606bfb3cc375e97d78ff52cd4fe8b596c86d6fd
Bug: 337797668
2024-08-22 06:49:10 +00:00
Qais Yousef
9adfff45e2 BoardConfig-common.mk: Enable Lazy RCU
And sync other RCU paramters.

Bug: 340860065
Flag: EXEMPT boot time parameters
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: Ia41a45341e988cddcfcf850afd8398a7dc1a91fe
2024-08-13 23:49:46 +00:00
Jacky Liu
acf7138e36 Use modules.load for vendor ramdisk modules
vendor_boot.img is no longer built on 6.1 kernel codebase hence
vendor_boot.modules.load no longer exists. We can use modules.load
instead which is same as vendor_boot.modules.load but always exist.

Flag: EXEMPT build file update
Bug: 343042291
Test: build oriole-zvs1-userdebug
      build oriole-trunk_pixel_kernel_61-userdebug
Change-Id: I7e5028ca4cc710367ddc5b161e006b8e7c25de80
2024-08-05 05:06:51 +00:00
Betty Zhou
c5b3375835 Enable KUnit testing on raviole userdebug & eng build target.
Add kunit.enable=1 to boot command line

Bug: 337797668
Flag: TEST_ONLY
Change-Id: I3334316c6b41e0cd1a4dd5fded32f9c3c302ee9a
2024-05-06 21:38:46 +00:00
Qian-Hao Huang
32035fef2f gs101: Change the path of prebuilt fips140.ko
Placing the fips140.ko at the same level as other kernel modules makes
it easier for automation tools to handle all of them.

Bug: 331791671
Change-Id: I444a6b089f7a2a3fee097f8d7718e88eddd1b15a
Signed-off-by: Qian-Hao Huang <qhhuang@google.com>
2024-04-29 06:49:00 +00:00
Gina Ko
a41785042d gs101: Relax BOARD_SUPER_PARTITION_ERROR_LIMIT by 100MB
To allow coverage builds to build

Bug: 331488086
Test: TH
Change-Id: I063c31704a5390091016e778f6748db8eba1261d
2024-04-02 00:50:53 +00:00
Robin Peng
d790cec569 Disable stripping vendor_dlkm modules
Need to disable stripping the vendor_dlkm modules to retain the GKI
modules' signature. Fortunately, the kernel build strips the modules for
us.

Bug: 290274601
Bug: 322457552
Change-Id: I4c8ff2196d062dc65a1f707a738f78bc8bfda704
Signed-off-by: Robin Peng <robinpeng@google.com>
2024-01-26 12:56:54 +00:00
wenchangliu
d662abbfbc gs101: uses Codec2 HIDL 1.2 service
- Include mediacodec_samsung setting from gs-common
- Enable Codec2 HIDL 1.2 from BoardConfig and update
manifest hidl version for samsung.hardware.media.c2

Bug: 318793681
Test: run cts -m CtsMediaDecoderTestCases
Test: run cts -m CtsMediaPlayerTestCases
Test: run vts -m vts_treble_vintf_vendor_test
Change-Id: I5679bee76ca0ff7f430797ed261069e0f7fc3937
2024-01-09 14:49:56 +00:00
Jasmine Cha
88ae21dc60 audio: fix typo
Bug: 305838207
Test: build pass/ recording runtime tuning

Change-Id: I34f3611cb8c75adc8f72bb3ba126472cfd9293f2
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-10-17 15:10:42 +08:00
Renato Grottesi
86e6a4bcc3 Revert^2 "Remove settings for old ArmNN HIDL backend"
6ed8fba5c7

Compile ArmNN shim over the support library.

Remove settings for the old HIDL backend.
The new ones will be in the gs-common folder.

Test: Local run of CtsNNAPITestCases
Test: Local run of VtsHalNeuralnetworksTargetTest
Test: Local run of MLTS Benchmark
Bug: 283724775
Change-Id: I51b44b4e11444661cf965265113a22522568b9b1
2023-07-13 15:37:35 +00:00
Android Culprit Assistant
6ed8fba5c7 Revert "Remove settings for old ArmNN HIDL backend"
This revert was created by Android Culprit Assistant. The culprit was identified in the following culprit search session (http://go/aca-get/123b2665-83ef-4fd0-904d-a0d8c5782db9).

Change-Id: I5a477d560dd850a99d2837ebbb44a4305dde58c4
2023-07-12 20:43:52 +00:00
Renato Grottesi
d97e70b339 Remove settings for old ArmNN HIDL backend
Compile ArmNN shim over the support library.

Remove settings for the old HIDL backend.
The new ones will be in the gs-common folder.

Test: Local run of CtsNNAPITestCases
Test: Local run of VtsHalNeuralnetworksTargetTest
Test: Local run of MLTS Benchmark
Bug: 283724775
Change-Id: I009f72cee5961769159e68ea2e670e64932c3f13
2023-07-12 13:11:04 +00:00
Pierre-Clément Tosi
853d8de12b gs101: Cover pvmfw.img in vbmeta_system.img am: 39764125a4 am: 58e4e47b5b am: b5d827efcd
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2543390

Change-Id: I39a6692988911e3de79ee8691640d4be7e01b72a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-18 15:50:34 +00:00
Pierre-Clément Tosi
39764125a4 gs101: Cover pvmfw.img in vbmeta_system.img
The pvmfw partition is expected to be kept in sync with the system
partition so, instead of having it as a standalone partition (covered by
vbmeta.img), add it to vbmeta_system.

Bug: 275497314
Test: TH
Change-Id: I03f10699859ec8079ef2e2e4177f6cfa7f83d6d6
2023-04-18 11:27:39 +01:00
Chris Paulo
2fd3696484 vibrator: Add adaptive haptics config
Add adaptive haptics config parameter to the build environment

Bug: 198239103
Test: atest VibratorHalCs40l26TestSuite
Change-Id: I9e9e4733bd204dfe2f8d719902afa32b405b35cf
Signed-off-by: Chris Paulo <chrispaulo@google.com>
2023-03-22 21:58:42 +00:00
Midas Chien
261b9dfaa0 BoardConfig: support SKIP_VALIDATE by default
Bug: 270479799
Test: VtsHalGraphicsComposerV2_4TargetTest
Change-Id: Ia6e10eb088222b1e8f2e807a14e2060d7e25d382
2023-03-03 03:48:37 +00:00
wenchangliu
49f6cdf632 BoardConfig: add BOARD_SUPPORT_FLEXIBLE_P010 support
Bug: 229547170
Test: atest CtsMediaDecoderTestCases:ImageReaderDecoderTest
Test: atest CtsMediaV2TestCases
Change-Id: I8aa0219f0a1fb2438389457e2f9c7ed24a05ed1f
2023-01-18 15:30:08 +00:00
Yu Shan
79c36035bb Append vendor kernel modules in mk file.
Append vendor kernel modules variable instead of overwriting it.
Otherwise, the global variables set by other board specific makefile
will be overwritten.

Test: Manual build and verify kernel module is appended correctly.
Bug: 260153425
Change-Id: I574be28ca6fd345ba717e424dd32eb6e30fb4f34
2023-01-17 18:47:19 +00:00
Daniel Mentz
b96da64e3d Import prebuilt kernel modules like fips140.ko am: f41ee9ffe6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/19343856

Change-Id: I9cf28f55b4dc779326c73660e8d5225778e78d7d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 21:57:19 +00:00
Daniel Mentz
f41ee9ffe6 Import prebuilt kernel modules like fips140.ko
Add support for copying prebuilt kernel modules like fips140.ko into the
vendor ramdisk. These kernel modules are different in the following
ways:

- They do not appear in vendor_boot.modules.load provided by the
  kernel build system.
- We want to put their names at the very beginning of the output
  modules.load file to ensure that they are loaded prior to all other
  modules.

We define a new Makefile variable named
BOARD_PREBUILT_VENDOR_RAMDISK_KERNEL_MODULES. For every filename on this
list, we verify that the file exists in $(KERNEL_MODULE_DIR), and if it
does, we include its name in the modules.load for the vendor boot
ramdisk.

Bug: 194712883
Change-Id: Iff8923c2492296b8eb4d24ec94bbfccc19f4e8f5
2022-12-07 21:33:53 +00:00
Robin Peng
d5294588ae gs101: remove prebuilt boot-user.img usage am: 31e17d29ad
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/20383426

Change-Id: Iddba910c2e9f400bd6823b1aadc4b86252e33a85
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-07 06:47:13 +00:00
Robin Peng
31e17d29ad gs101: remove prebuilt boot-user.img usage
When $(TARGET_KERNEL_DIR) contains:
* boot.img

then use those as prebuilt boot images for the target build.

Bug: 242812258
Change-Id: Icbd880c9461d7ba3d707d56c7ff43f4b8bf2e47c
2022-11-04 06:48:30 +00:00
Taehwan Kim
3e51180542 BoardConfig.mk: add BOARD_SUPPORT_MFC_ENC_BT2020 am: 4b4e181394
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/20188813

Change-Id: Ib777ea875e76689a91b6afa0a15f30f9bd602251
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-31 13:22:47 +00:00
Taehwan Kim
4b4e181394 BoardConfig.mk: add BOARD_SUPPORT_MFC_ENC_BT2020
Bug: 239912381
Test: atest android.mediav2.cts.EncoderColorAspectsTest
Change-Id: I68be5ef52d60d65886cf9e1dae5069e7daa60775
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
2022-10-31 12:17:47 +00:00
Yi-Yo Chiang
4638b47236 Remove references to BOARD_BUILD_SYSTEM_ROOT_IMAGE am: 2aa333c7c8 am: a32e26723a
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2248534

Change-Id: I5fd9e8089b4b3dc75d3ae3e08e74fa727af36b5c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 13:35:38 +00:00
Yi-Yo Chiang
2aa333c7c8 Remove references to BOARD_BUILD_SYSTEM_ROOT_IMAGE
This variable is always false or empty now.
Remove it so we can mark it as deprecated later.

Bug: 241346584
Test: Presubmit
Change-Id: I57cbe875f556bb853d4ea9b1d458c9c554c6bfa5
2022-10-11 18:58:50 +08:00
Jeffrey Carlyle
489f8191fb dck: switch to gs-common implementation of digital car key wiping
(cherry picked from commit c17b465041)

Bug: 203234558
Test: data wipe in Android recovery mode on raven
Test: data wipe in Android recovery mode on c10
Test: data wipe in user mode fastbootd mode on raven
Test: data wipe in user mode fastbootd mode on c10
Signed-off-by: Jeffrey Carlyle <jcarlyle@google.com>
Change-Id: Id4bb38b8391e72f62de5c29587e7b5bcdbd1e99f
2022-09-08 21:58:52 +00:00
Jeffrey Carlyle
a9d6ee706e Revert "dck: switch to gs--common implementation of digital car ..."
Revert submission 19734547-b203234558-qpr1

Reason for revert: see b/243864778
Reverted Changes:
I53967a5e8:dck: pick up recovery mode library for digital car...
I8fd944c60:dck: switch to gs--common implementation of digita...
I6e8c80818:move digital car key wiping to gs-common
I60052ca58:Support calling WipeKeys with out a ui object
I459d81800:clear secure element of Digital Car Keys during fa...

Change-Id: I6a81d572889d7c1ba1fda4e40b122057a7c60ca9
2022-08-26 06:36:57 +00:00
Jeffrey Carlyle
c17b465041 dck: switch to gs--common implementation of digital car key wiping
Bug: 203234558
Test: check symbols in recovery_ui.so and verify WipeKeys is present
Signed-off-by: Jeffrey Carlyle <jcarlyle@google.com>
Change-Id: I8fd944c6079a90e54c8267d98f972efadb2874bd
2022-08-24 12:23:11 -07:00
Pierre-Clément Tosi
7e1445488c Revert^3 "gs101: Add pvmfw to AB_OTA_PARTITIONS"
This reverts commit d5ce52e137.

Reason for revert: Breaks S to T-QPR OTAs.

Bug: 241984861
Change-Id: I8b1b2b9ada6c443b3d5350efd3195d117b0a8eba
2022-08-18 16:30:18 +00:00
Martin Liu
b94ea0c39e Revert "Disable zone dma32"
This reverts commit 645967d3e5.

Reason to revert: move setting to individual project.
Bug: 236225957
Test: boot
Change-Id: I201c544ee4f42ea7f0f69924f38a394ae07cc416
(cherry picked from commit df489c68fa)
2022-07-08 02:05:18 +00:00
Martin Liu
645967d3e5 Disable zone dma32
As HW doesn't have 32 bit address limitation, we can disable
zone dma32 to simplify memory management and improve performance.

Bug: 236225957
Test: boot
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: Id7c67b985848f50331bafacf31e59f67cf9aa34d
2022-07-04 07:50:48 +00:00
Pierre-Clément Tosi
d5ce52e137 Revert^2 "gs101: Add pvmfw to AB_OTA_PARTITIONS"
Now that the necessary SELinux policies are in (ag/16507235), we should
be able to re-apply this change without breaking OTA updates
(b/211070100).

This reverts commit efd5649bb8.

Bug: 210833963
Test: local OTA update (see bug)
Change-Id: I0fd5f840159e4163adde753f6d339546067b8cf6
(cherry picked from commit e635619443)
2022-06-17 08:24:06 +00:00
Minchan Kim
29c8d8c5ff gs101: turn off page_pinner
Page_pinner aimed for help tracking cma allocation failure.
Since we are memory hungry and gs101 is lacking of critical
usecases atm, we could disable it. It will return memory
0.78% memory.

Bug: 235227018
Test: confirmed that no page_pinner directory in the debugfs.
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I37a0c9ba76b278f813dff6e81b77438ab9e87d3c
2022-06-08 19:58:35 +00:00
Akilesh Kailash
7bb4293087 Revert "gs101: Enable system_dlkm dynamic partition"
This reverts commit 58893b442f.

Reason for revert: OTA failues observed during S -> T

Bug: 228927535
Test: Full and Incremental OTA's.
Change-Id: Iec9e15d60dab92213494c9e679de6702f8d56e37
2022-05-24 18:15:49 +00:00
Vincent Palomares
f78d6a1af5 Add r4o6 perf setup script
Bug: 204892459
Test: none
Change-Id: I91e73f6f127e4eebadd87feecbd07ebf3da02d7b
Signed-off-by: Vincent Palomares <paillon@google.com>
2022-04-29 20:30:52 +00:00
Nicolò Mazzucato
993b145fae Revert "Enable load kernel modules in parallel"
Revert "fix path for i2c peripheral device"

Revert submission 17628085-gs101_parallel_load_enable

Reason for revert: blocking boot. see b/228549855
Reverted Changes:
I01734345a:fix path for i2c peripheral device
Ie3cd1499b:Enable load kernel modules in parallel

Change-Id: I99775d305d27e9b3a9d4874fed9415285139c7d8
2022-04-08 09:53:43 +00:00
chungkai
7b2197e8af Enable load kernel modules in parallel
Test: enable successfully without avc denial
Bug: 180676019
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: Ie3cd1499b2a7e00e0aa38a9c1fee29bc0f0f74bb
2022-04-07 09:33:52 +00:00
Sam Dubey
293b0c871d Revert "Enable load kernel modules in parallel"
This reverts commit 264b325dd1.

Reason for revert: Boot crashes on gs101 devices

Bug: 226705295
Change-Id: Id074bbc5fdc9f747f45d01405f5b08f37e5617f3
2022-03-25 10:30:47 +00:00
chungkai
264b325dd1 Enable load kernel modules in parallel
Test: enable successfully
Bug: 180676019
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: I61678ea8123123af4a4b1d2b45a3cf78bfd5d4f7
2022-03-25 02:33:18 +00:00
Gina Ko
d8a9805e95 Fix typos
Remove redundant spaces so the variable is set correctly

Bug: 224556677
Test: Built R4 64bit
Signed-off-by: Gina Ko <yichunko@google.com>
Change-Id: Ide1f48cf04806234f637faea5edcd988403bafca
2022-03-14 20:17:22 +00:00
Gina Ko
18bd11a39e Refactor conditional to use DEVICE_IS_64BIT_ONLY
Bug: 218458605
Bug: 223622655
Signed-off-by: Gina Ko <yichunko@google.com>
Change-Id: Ia74ef39ab8433d036925a30217f49da8f6fd863b
2022-03-14 16:44:25 +00:00
Ramji Jiyani
58893b442f gs101: Enable system_dlkm dynamic partition
Set flags to enable system_dlkm dynamic partition
for GKI Modules for gs101 devices.

Partition will be empty as of now but this adds
enough support to pass the vts for the feature.

Bug: 222334390
Test: TH, manual build, flash and verification on 6Pro
      Full OTA Update test from S to T as below:
      1. go/flash: git_sc-v2-release - SP2A.220405.004 (8233519)
      2. Full ota build from tm-dev
      3. Manual push full ota update and verify boot
      4. Verify system_dlkm partition is present & mounted
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
Change-Id: I0b4038b100add965737527b72a8d5f905907e23e
2022-03-10 21:03:31 +00:00
Pat Tjin
a63220bcd1 Add tangor% to the pattern match
Some targets are using tangor_xxx and some use xxx_tangor,
cover both to avoid duplicate zygote props.

Test: Build
Signed-off-by: Pat Tjin <pattjin@google.com>
Change-Id: I43b18f6b5296f7b1575a8d5e817b3f2281dc1e1c
2022-01-28 00:48:26 +00:00
Robin Peng
85e14851ed Migrate vendor_dlkm modules.blocklist from android side to kernel side
Moving vendor_dlkm.modules.blocklist to the source repo and picking to
/<DEVICE>-kernel, the development experience can be aligned between
Kernel and Android codebase.

Bug: 214017561
Change-Id: I9f556178f882dc15cc7066df16dd59e1da86091b
2022-01-21 11:56:15 +00:00
Cole Faust
23a4d7bfb3 Remove usage of intermediates-dir-for
intermediates-dir-for relies on several variables that
haven't been set at the time the board configuration
runs. The board configuration got around that by using
deferred expansion, but deferred expansion is something
that starlark doesn't support. Remove intermediates-dir-for
by switching to TARGET_RECOVERY_FSTAB_GENRULE, which
accepts a genrule module to use instead of a file.

Bug: 201700692
Test: Presubmits
Change-Id: I6ebb75073abeebce71873f414129759789096b0f
2022-01-13 02:50:08 +00:00
Pat Tjin
dae7d3ea02 Move tangor to 64-bit only
Bug: 213924541
Test: Build
Signed-off-by: Pat Tjin <pattjin@google.com>
Change-Id: I8e237ab1bf387608331375bee18dbf9b4912e5c1
2022-01-12 21:44:31 +00:00
Chris Fries
efd5649bb8 Revert "gs101: Add pvmfw to AB_OTA_PARTITIONS"
This reverts commit 871071afbc.

Reason for revert: Can't OTA forward from 16.002

Change-Id: I25091c3caacd0109def6d5fc10ec7ae273b6ea20
Bug: 211070100
2021-12-20 20:45:16 +00:00
Sasha Smundak
b44a662861 Use soong_config_ macros to set Soong config variables.
Bug: 198503843
Test: treehugger
Change-Id: Ifd1aed04267d952a13cfd9b93933e500ba07dbad
2021-12-16 18:03:47 +00:00
Pierre-Clément Tosi
871071afbc gs101: Add pvmfw to AB_OTA_PARTITIONS
Suggested-by: Cyan_Hsieh <cyanhsieh@google.com>
Bug: 210833963
Test: OTA update
Change-Id: Ib0f0ce2a2733f878bb680d16fea15cfa794b7c1d
2021-12-16 08:15:20 +00:00