From: BigfootACA <bigfoot@classfun.cn>
Date: 星期天, 30 Jan 2022 18:59:26 +0000 (+0800)
Subject: Enable LinuxSimpleMassStorage on perseus
X-Git-Tag: v1.1.1~5
X-Git-Url: https://git.renegade-project.org/?a=commitdiff_plain;h=fed476abc387c3df0e456f0f3182827c369cd747;p=edk2-sdm845.git

Enable LinuxSimpleMassStorage on perseus
---

diff --git a/sdm845Pkg/Devices/perseus.dsc b/sdm845Pkg/Devices/perseus.dsc
index 2401c8e..ea3758d 100644
--- a/sdm845Pkg/Devices/perseus.dsc
+++ b/sdm845Pkg/Devices/perseus.dsc
@@ -12,7 +12,7 @@
 !include sdm845Pkg/sdm845Pkg.dsc
 
 [BuildOptions.common]
-  GCC:*_*_AARCH64_CC_FLAGS = -DXIAOMI_PIL_FIXED=1 -DDISPLAY_DPI=403 -DENABLE_SIMPLE_INIT
+  GCC:*_*_AARCH64_CC_FLAGS = -DXIAOMI_PIL_FIXED=1 -DDISPLAY_DPI=403 -DENABLE_SIMPLE_INIT -DENABLE_LINUX_SIMPLE_MASS_STORAGE
 
 [PcdsFixedAtBuild.common]
   # System Memory (5GB)
diff --git a/sdm845Pkg/Devices/perseus.fdf b/sdm845Pkg/Devices/perseus.fdf
index f74c2fd..ff9d6c0 100644
--- a/sdm845Pkg/Devices/perseus.fdf
+++ b/sdm845Pkg/Devices/perseus.fdf
@@ -539,6 +539,15 @@ APRIORI DXE {
     SECTION UI = "AcpiTables"
   }
 
+  #
+  # FDT support
+  #
+  INF EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe.inf
+
+  FILE FREEFORM = 25462CDA-221F-47DF-AC1D-259CFAA4E326 {
+    SECTION RAW = sdm845Pkg/FdtBlob/sdm845-xiaomi-polaris.dtb
+  }
+
   #
   # SMBIOS Support
   #
@@ -553,6 +562,8 @@ APRIORI DXE {
   INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
 !endif #$(INCLUDE_TFTP_COMMAND)
 
+  INF sdm845Pkg/Binary/845/LinuxSimpleMassStorage/LinuxSimpleMassStorage.inf
+
   #
   # Bds
   #