From 9d540c513f2fbc73b121c363756131e73139631f Mon Sep 17 00:00:00 2001
From: lzy2835 <66907230+qaz6750@users.noreply.github.com>
Date: Sat, 17 Sep 2022 19:00:35 +0800
Subject: [PATCH] sdm845: trident : Enable A/B slot switching(TEST)

---
 sdm845Pkg/Devices/trident.dsc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sdm845Pkg/Devices/trident.dsc b/sdm845Pkg/Devices/trident.dsc
index 44787b1..17b37a1 100644
--- a/sdm845Pkg/Devices/trident.dsc
+++ b/sdm845Pkg/Devices/trident.dsc
@@ -8,11 +8,14 @@
   BUILD_TARGETS                  = DEBUG|RELEASE
   SKUID_IDENTIFIER               = DEFAULT
   FLASH_DEFINITION               = sdm845Pkg/Devices/trident.fdf
+  
+  # Enable A/B Slot Environment
+  DEFINE AB_SLOTS_SUPPORT        = TRUE
 
 !include sdm845Pkg/sdm845Pkg.dsc
 
 [BuildOptions.common]
-  GCC:*_*_AARCH64_CC_FLAGS = -DENABLE_SIMPLE_INIT -DENABLE_LINUX_SIMPLE_MASS_STORAGE
+  GCC:*_*_AARCH64_CC_FLAGS = -DENABLE_SIMPLE_INIT -DENABLE_LINUX_SIMPLE_MASS_STORAGE  -DAB_SLOTS_SUPPORT=1 
 
 [PcdsFixedAtBuild.common]
 
-- 
2.47.1