Skip to content

Commit

Permalink
Add support for Oneplus 6T
Browse files Browse the repository at this point in the history
  • Loading branch information
strongtz committed Jun 27, 2020
1 parent c6514d4 commit 9f47661
Show file tree
Hide file tree
Showing 33 changed files with 401 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build_fajita.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
# based on the instructions from edk2-platform
echo cleanning BuidFiles
rm -rf boot_fajita.img
echo Done.
set -e
. firstrun_common.sh
# not actually GCC5; it's GCC7 on Ubuntu 18.04.
GCC5_AARCH64_PREFIX=aarch64-linux-gnu- build -s -n 0 -a AARCH64 -t GCC5 -p sdm845Pkg/fajita.dsc
gzip -c < workspace/Build/sdm845Pkg/DEBUG_GCC5/FV/SDM845PKG_UEFI.fd >uefi_img
cat ./device_specific/fajita.dtb >>uefi_img
abootimg --create boot_fajita.img -k uefi_img -r ramdisk -f bootimg.cfg
rm -rf ./uefi_img
Binary file added device_specific/fajita.dtb
Binary file not shown.
1 change: 1 addition & 0 deletions sdm845Pkg/Binary/fajita/AdcDxe/AdcDxe.depex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
B�7�E�L���f��G�k0_�}��J�}�/��0
Binary file added sdm845Pkg/Binary/fajita/ButtonsDxe/ButtonsDxe.depex
Binary file not shown.
1 change: 1 addition & 0 deletions sdm845Pkg/Binary/fajita/ChipInfo/ChipInfo.depex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
B�7�E�L���f��G�|�a�'�(O�=2�
1 change: 1 addition & 0 deletions sdm845Pkg/Binary/fajita/ClockDxe/ClockDxe.depex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
B�7�E�L���f��G�iv� �zH��(�{E��
1 change: 1 addition & 0 deletions sdm845Pkg/Binary/fajita/DALSys/DALSys.depex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
����9��G��f�v28
1 change: 1 addition & 0 deletions sdm845Pkg/Binary/fajita/DALTLMM/.depex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
B�7�E�L���f��G�
1 change: 1 addition & 0 deletions sdm845Pkg/Binary/fajita/DALTLMM/DALTLMM.depex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
B�7�E�L���f��G�
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions sdm845Pkg/Binary/fajita/EnvDxe/EnvDxe.depex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions sdm845Pkg/Binary/fajita/GlinkDxe/GlinkDxe.depex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions sdm845Pkg/Binary/fajita/HWIODxeDriver/HWIODxeDriver.depex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
B�7�E�L���f��G�
Binary file added sdm845Pkg/Binary/fajita/I2C/I2C.depex
Binary file not shown.
1 change: 1 addition & 0 deletions sdm845Pkg/Binary/fajita/NpaDxe/NpaDxe.depex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
B�7�E�L���f��G�
1 change: 1 addition & 0 deletions sdm845Pkg/Binary/fajita/PmicDxe/PmicDxe.depex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
B�7�E�L���f��G�k0_�}��J�}�/��0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions sdm845Pkg/Binary/fajita/QdssDxe/QdssDxe.depex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions sdm845Pkg/Binary/fajita/RealTimeClock/RealTimeClock.depex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Binary file added sdm845Pkg/Binary/fajita/SPI/SPI.depex
Binary file not shown.
1 change: 1 addition & 0 deletions sdm845Pkg/Binary/fajita/SPMI/SPMI.depex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Binary file added sdm845Pkg/Binary/fajita/SdccDxe/SdccDxe.depex
Binary file not shown.
1 change: 1 addition & 0 deletions sdm845Pkg/Binary/fajita/SmemDxe/SmemDxe.depex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions sdm845Pkg/Binary/fajita/UFSDxe/UFSDxe.depex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
����9��G��f�v28
1 change: 1 addition & 0 deletions sdm845Pkg/Binary/fajita/ULogDxe/ULogDxe.depex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions sdm845Pkg/Binary/fajita/UsbConfigDxe/UsbConfigDxe.depex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
iv� �zH��(�{E������9��G��f�v28E\z�!�C�|�/�_�������I�K����
1 change: 1 addition & 0 deletions sdm845Pkg/Binary/fajita/UsbDeviceDxe/UsbDeviceDxe.depex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions sdm845Pkg/Binary/fajita/UsbMsdDxe/UsbMsdDxe.depex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions sdm845Pkg/Binary/fajita/UsbPwrCtrlDxe/UsbPwrCtrlDxe.depex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Binary file not shown.
19 changes: 19 additions & 0 deletions sdm845Pkg/fajita.dsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[Defines]
PLATFORM_NAME = sdm845Pkg
PLATFORM_GUID = 28f1a3bf-193a-47e3-a7b9-5a435eaab2ee
PLATFORM_VERSION = 0.1
DSC_SPECIFICATION = 0x00010019
OUTPUT_DIRECTORY = Build/$(PLATFORM_NAME)
SUPPORTED_ARCHITECTURES = AARCH64
BUILD_TARGETS = DEBUG|RELEASE
SKUID_IDENTIFIER = DEFAULT
FLASH_DEFINITION = sdm845Pkg/fajita.fdf

!include sdm845Pkg/sdm845Pkg.dsc

[PcdsFixedAtBuild.common]
# System Memory (5GB)
gArmTokenSpaceGuid.PcdSystemMemorySize|0x140000000

gsdm845PkgTokenSpaceGuid.PcdMipiFrameBufferWidth|1080
gsdm845PkgTokenSpaceGuid.PcdMipiFrameBufferHeight|2280
Loading

0 comments on commit 9f47661

Please sign in to comment.