Commit graph

106 commits

Author SHA1 Message Date
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
kensun
c6aa4c2c31 wifi: Isolate wifi configurations for customization.
move wifi configurations from BoardConfig-common.mk to wifi/BoardConfig-wifi.mk.
So, each project can decide whether it should share the same configurations or create a new one on their own.

Bug: 208159314
Test: ifconfig after attempting STA+SAP concurrency.
Change-Id: Id2474df377f242528be661fefe712d7203cdddf8
2021-12-13 02:29:15 +00:00
Martin Liu
f9cd87c0c4 gs101: set swiotlb as noforce am: 5bcfdac788 am: 26b36bda5f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16212520

Change-Id: Iee5d40fb27ed3f7ca14311fd6f1b5a93c233fac0
2021-11-11 00:42:15 +00:00
Martin Liu
5bcfdac788 gs101: set swiotlb as noforce
As dma devices are 36bit bounded, we don't need SWIOTLB
bounce buffers. Set swiotlb=noforce to disable this and
make the minimum amount of memory allocation.

Bug: 205246642
Test: check total memory and io_tlb_nslabs
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: If9f68b269f326f0f4b8e165593ec5dd4787fbb52
2021-11-11 00:07:28 +00:00
Aaron Ding
b5ae5ecd57 Enable VABC OTA am: 81b8d2cbd6 am: 6ced1a6df3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16091241

Change-Id: I08958dcaa58207a521c0540ecb2f8e1bc0044c88
2021-10-28 19:30:58 +00:00
Aaron Ding
aad20a2f04 Enable VABC OTA
Bug: 203437381
Change-Id: If9eb8a4b1cefb75cf3d310a27a52aa889b28d0b5
Signed-off-by: Aaron Ding <aaronding@google.com>
2021-10-28 18:45:34 +00:00
Pierre-Clément Tosi
38cad31af0 gs101: Use AOSP build framework for pvmfw.img
Remove the definition for BOARD_PREBUILT_PVMFWIMAGE (which currently
points to the shared AOSP pre-built of pvmfw.img) to fall back to the
default behavior of the AOSP framework. Even though this will result in
the same pre-built being used (for now), not setting that variable still
partially modifies the overall behavior (e.g. for packaging) and allows
upcoming framework changes to be automatically picked up.

Bug: 199717422
Test: m
Change-Id: I7c3bbbee8c83d262b707f8582b5f43040bc25a06
2021-10-21 09:23:43 +00:00
Pierre-Clément Tosi
d96639e490 gs101: Remove BOARD_PVMFWIMG_PARTITION_SIZE
Remove the deprecated variable now that it has been replaced by
BOARD_PVMFWIMAGE_PARTITION_SIZE in AOSP.

Bug: 199717422
Test: m ${ANDROID_PRODUCT_OUT}/pvmfw.img
Change-Id: I96fba129d0b0f9a2e845e8a507a9ec8f65910942
2021-10-18 08:19:47 +00:00
David Brazdil
ae3c59fc0b Revert^2: pKVM: Include pvmfw and virt APEX in gs101 builds
Support for pKVM is being added to all gs101 builds starting with T,
disabled by default. So far, the userspace components have been included
only in special _pkvm builds. Include them unconditionally.

Also move BOARD_* variables specifying location and partition size of
pvmfw from vendor board config file here.

This adds 89MB to the size of the system image.

Bug: 192819132
Test: build a gs101 target, check /apex/com.android.virt exists
Change-Id: Ie46b0ad5f45bd4757570b72cb275d002df7b4616
2021-10-12 16:12:39 +00:00
Petri Gynther
79f0a19d4d Revert^2 "gs101: re-enable prebuilt boot.img/boot-user.img usage" am: 0f9dfceecf am: eeed916048
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15955989

Change-Id: I7e7db4da20097bc61c5fbb4dfe7d9bf2b2ff418e
2021-10-01 06:32:59 +00:00
Petri Gynther
96a90bd47a Revert^2 "gs101: re-enable prebuilt boot.img/boot-user.img usage"
This reverts commit 48a5fe4304e3c5720f468d6b9147ca36bbe9eb4e.

Reason for revert:
Re-enable gs101 prebuilt boot image usage.
All necessary prerequisites have been merged:
cl/399995993, ag/15953678, ag/15953343, ag/15953037, ag/15953719

Bug: 201469630
Bug: 201476061
Change-Id: Idb46a74e7830a274c45fee1f43a52dbcd7e96ca4
2021-10-01 06:00:08 +00:00
Jason Chiu
b7c042fb27 Revert "gs101: re-enable prebuilt boot.img/boot-user.img usage" am: 48a5fe4304 am: f2cef18852
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15939093

Change-Id: Id49f4530b9e83ee2270dae3021894e5d795a0dfb
2021-09-29 11:24:25 +00:00
Jason Chiu
d037bee915 Revert "gs101: re-enable prebuilt boot.img/boot-user.img usage"
This reverts commit 7badc4b5f1c7b6adff8cd9142f5c97bd4a5a0d49.

Reason for revert: it introduce b/201469630 and b/201476061

Bug: 201469630
Bug: 201476061
Change-Id: Id48ea931410a55bfd382feb7a0da02994fdf8928
2021-09-29 07:30:10 +00:00
Petri Gynther
5b3f9232a8 gs101: re-enable prebuilt boot.img/boot-user.img usage am: 7badc4b5f1 am: 6fcfb9953f am: 55261cf700
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15934983

Change-Id: I7862834fc3a6c2b908cc9db5ee73a712647ce0c0
2021-09-28 21:17:33 +00:00
Petri Gynther
d60cbacc12 gs101: re-enable prebuilt boot.img/boot-user.img usage am: 7badc4b5f1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15934983

Change-Id: Ib6489b4b5797eea2b8ecc32ee10e3c4d1998f4d8
2021-09-28 20:45:42 +00:00