SKUID_IDENTIFIER = DEFAULT
FLASH_DEFINITION = sdm845Pkg/Devices/enchilada.fdf
+ # Enable A/B Slot Environment
+ DEFINE AB_SLOTS_SUPPORT = TRUE
+
!include sdm845Pkg/sdm845Pkg.dsc
[BuildOptions.common]
- GCC:*_*_AARCH64_CC_FLAGS = -DMEMORY_8G=1
+ GCC:*_*_AARCH64_CC_FLAGS = -DMEMORY_8G=1 -DAB_SLOTS_SUPPORT=1
[PcdsFixedAtBuild.common]
# System Memory (7GB)
SKUID_IDENTIFIER = DEFAULT
FLASH_DEFINITION = sdm845Pkg/Devices/enchilada.fdf
+ # Enable A/B Slot Environment
+ DEFINE AB_SLOTS_SUPPORT = TRUE
+
!include sdm845Pkg/sdm845Pkg.dsc
+[BuildOptions.common]
+ GCC:*_*_AARCH64_CC_FLAGS = -DAB_SLOTS_SUPPORT=1
+
[PcdsFixedAtBuild.common]
# System Memory (5GB)
gArmTokenSpaceGuid.PcdSystemMemorySize|0x15AE00000
#
# OnePlus 6(T) A/B Slot Support
#
+!ifdef $(AB_SLOTS_SUPPORT)
+ INF sdm845Pkg/Application/SwitchSlotsApp/SwitchSlotsApp.inf
+ INF sdm845Pkg/Drivers/BootSlotDxe/BootSlotDxe.inf
+!else
+ # Old unstable solution, remove once BootSlotDxe fully tested
INF sdm845Pkg/Drivers/Op6tSlotDxe/Op6tSlotDxe.inf
+!endif #$(AB_SLOTS_SUPPORT)
[FV.FVMAIN_COMPACT]
FvAlignment = 8
INF sdm845Pkg/Application/SwitchSlotsApp/SwitchSlotsApp.inf
INF sdm845Pkg/Drivers/BootSlotDxe/BootSlotDxe.inf
!else
- # Old unstable solution
+ # Old unstable solution, remove once BootSlotDxe fully tested
INF sdm845Pkg/Drivers/Op6tSlotDxe/Op6tSlotDxe.inf
!endif #$(AB_SLOTS_SUPPORT)