GitHub/LineageOS/G12/android_device_amlogic_g12-common.git
3 years agog12: Guard prebuilt tee*/keymaster for devices with no OP-TEE
Jan Altensen [Fri, 2 Jul 2021 05:43:16 +0000 (07:43 +0200)]
g12: Guard prebuilt tee*/keymaster for devices with no OP-TEE

* These need to be split out because development
  boards don't have OP-TEE, and even if they could
  kang another device's, we have no functional keys
  or TA files, so it's useless and broken.

* Devices that have no OP-TEE need to set
  `TARGET_HAS_TEE := false` in their lineage_${DEVICE}.mk.

* So that we can successfully encrypt as per the fstab
  entry for `/data`,  build the AOSP keymaster 4.1 service,
  and that uses a VINTF fragment.

Change-Id: I8756ba2d9cd5c53725645185783f9e15b739602c

3 years agog12: Decommonize init.amlogic.wifi_buildin.rc
Nolen Johnson [Thu, 1 Jul 2021 21:09:25 +0000 (17:09 -0400)]
g12: Decommonize init.amlogic.wifi_buildin.rc

* Only deadpool/wade has Broadcom Wi-Fi/Bluetooth,
  dopinder has Realtek, and will need different modules
  and node permissions changed.

Change-Id: I204e5c22a1dc306c9c932a3634f5e6534a438ee5

3 years agog12: Decommonize TA files
Aaron Kling [Thu, 1 Jul 2021 19:37:31 +0000 (14:37 -0500)]
g12: Decommonize TA files

* These are different on all Askey G12A devices.

Change-Id: I4f798d094aacb4270619609c8cf9e0427abf2a95

3 years agog12: Set a dummy BT MAC address
deadman96385 [Thu, 1 Jul 2021 19:13:21 +0000 (12:13 -0700)]
g12: Set a dummy BT MAC address

* BT HAL needs this.

Change-Id: If25c136e9b1a4c3bb0ef0b6b497b94f1e3e079a0

3 years agog12: Decommonize FRP confguration
Nolen Johnson [Wed, 30 Jun 2021 21:47:39 +0000 (17:47 -0400)]
g12: Decommonize FRP confguration

* Only deadpool actually has an FRP partition.

Change-Id: If55b306644cdad368f83d446babf6681447c77e2

3 years agog12: Set USB name in recovery to ro.product.board
Nolen Johnson [Wed, 30 Jun 2021 05:56:36 +0000 (01:56 -0400)]
g12: Set USB name in recovery to ro.product.board

* This sets it per-variant.

Change-Id: I52c596a271f8e70625e3a478f421e949d014358e

3 years agog12: Declare boot/dtbo partition in fstab
Nolen Johnson [Sat, 26 Jun 2021 03:17:53 +0000 (23:17 -0400)]
g12: Declare boot/dtbo partition in fstab

* To appease the build system.

Change-Id: Id2b33ce34433cffa800ad398da694730f61e0e12

3 years agog12: Add dynamic partitions to fstab
Nolen Johnson [Sat, 26 Jun 2021 02:51:25 +0000 (22:51 -0400)]
g12: Add dynamic partitions to fstab

* Build system wants these.

Change-Id: I969d0ddc1820a48913bbf898ea513beeada1760f

3 years agog12: Drop Wi-Fi MultiHAL
Nolen Johnson [Sun, 18 Jul 2021 16:47:09 +0000 (12:47 -0400)]
g12: Drop Wi-Fi MultiHAL

* Requires framework side magic.
* Manifest entries conflict with source built bits.

Change-Id: Ied00042a663728edd61ccb5b0777e3c19f411197

3 years agog12: Build kernel modules inline
Aaron Kling [Fri, 25 Jun 2021 05:01:52 +0000 (01:01 -0400)]
g12: Build kernel modules inline

* Edit tee-supplicant to load modules from the correct
  location.

Change-Id: Iaf409805dbdf6c4b4661c4246c3a54d6453e58f5

3 years agog12: Build logo image
Jan Altensen [Mon, 12 Jul 2021 14:33:16 +0000 (10:33 -0400)]
g12: Build logo image

* Use images from deadpool's Android 12 (ATV) logo.

Change-Id: I0057275f36b1b345d44bc957f358cadb86af4c86

3 years agog12: Also flash logo and bootloader images if available
Jan Altensen [Sat, 3 Jul 2021 00:38:52 +0000 (02:38 +0200)]
g12: Also flash logo and bootloader images if available

Change-Id: Ie14e6f9700fc25d54993272f2222a63a0388fa18

3 years agog12: Flash DTB/DTBO/VBMeta/Super images with releasetools
Tim Zimmermann [Fri, 25 Jun 2021 06:54:26 +0000 (02:54 -0400)]
g12: Flash DTB/DTBO/VBMeta/Super images with releasetools

Co-authored-by: Jan Altensen <info@stricted.net>
Co-authored-by: Tim Zimmermann <tim@linux4.de>
Change-Id: Ieda7bf879fe1fd7ac1f8fcf12183f8a5eda20e43

3 years agog12: Fix dtbo image creation
Jan Altensen [Thu, 24 Jun 2021 17:50:02 +0000 (19:50 +0200)]
g12: Fix dtbo image creation

Change-Id: I30ea3685d70632a55dce49120fd20f14a9b61e87

3 years agog12: Support multiple dtbo's
Jan Altensen [Tue, 22 Jun 2021 17:39:20 +0000 (19:39 +0200)]
g12: Support multiple dtbo's

Change-Id: I60092adb4e25d699115c0b6f5b3c1434300957e3

3 years agog12: Add build task for dtb/dtbo images
Jan Altensen [Sat, 19 Jun 2021 20:20:27 +0000 (22:20 +0200)]
g12: Add build task for dtb/dtbo images

Change-Id: Ia0518fd7de611a0fb190900e7a86f2c8e571e585

3 years agog12: Build dtb/second image and set working boot image offsets
Jan Altensen [Thu, 24 Jun 2021 17:50:02 +0000 (19:50 +0200)]
g12: Build dtb/second image and set working boot image offsets

Change-Id: Iecff2693c55e0b5986353289c9c24fc29f4a88ee

3 years agog12: Silence clang warnings during kernel compile
Arne Coucheron [Tue, 12 Jan 2021 04:45:19 +0000 (05:45 +0100)]
g12: Silence clang warnings during kernel compile

clang-11: warning: argument unused during compilation:
'-fuse-ld=lld' [-Wunused-command-line-argument]

Change-Id: I66a629f3573e3fad8aa085ea115475f02d60a7ea

3 years agog12: Initial Commit
Nolen Johnson [Thu, 17 Jun 2021 04:41:55 +0000 (00:41 -0400)]
g12: Initial Commit

Change-Id: I332674f5c2bb24c4a189690c0d7f60342eb22c2f