From 447597f123c0a555f728988b1e686c68ec50e337 Mon Sep 17 00:00:00 2001 From: Michael D Kinney Date: Wed, 8 May 2019 15:02:51 -0700 Subject: [PATCH] Vlv2TbltDevicePkg/Capsule: Do not clear UEFI varstore Preserve the UEFI Variable store when a capsule update is performed. UEFI Variables are used to store firmware version information for the sample devices (Red, Green, Blue). Cc: Zailiang Sun Cc: Yi Qian Signed-off-by: Michael D Kinney Reviewed-by: Zailiang Sun Reviewed-by: Yi Qian --- .../Feature/Capsule/Library/FmpDeviceLib/FmpDeviceLib.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Vlv2TbltDevicePkg/Feature/Capsule/Library/FmpDeviceLib/FmpDeviceLib.c b/Vlv2TbltDevicePkg/Feature/Capsule/Library/FmpDeviceLib/FmpDeviceLib.c index 3d5649164b..a863d69381 100644 --- a/Vlv2TbltDevicePkg/Feature/Capsule/Library/FmpDeviceLib/FmpDeviceLib.c +++ b/Vlv2TbltDevicePkg/Feature/Capsule/Library/FmpDeviceLib/FmpDeviceLib.c @@ -1,8 +1,8 @@ /** -Copyright (c) 2016, Microsoft Corporation +Copyright (c) 2016, Microsoft Corporation. All rights reserved. +Copyright (c) 2019, Intel Corporation. All rights reserved. -All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -36,8 +36,7 @@ UPDATE_CONFIG_DATA mUpdateConfigData[] = { { PlatformFirmwareTypeSystemFirmware, FlashAddressTypeRelativeAddress, 0x000C0000, 0x00050000, 0x000C0000 }, { PlatformFirmwareTypeSystemFirmware, FlashAddressTypeRelativeAddress, 0x00110000, 0x00210000, 0x00110000 }, { PlatformFirmwareTypeSystemFirmware, FlashAddressTypeRelativeAddress, 0x00320000, 0x00070000, 0x00320000 }, - { PlatformFirmwareTypeSystemFirmware, FlashAddressTypeRelativeAddress, 0x00390000, 0x00070000, 0x00390000 }, - { PlatformFirmwareTypeNvRam, FlashAddressTypeRelativeAddress, 0x00040000, 0x00080000, 0x00040000 } + { PlatformFirmwareTypeSystemFirmware, FlashAddressTypeRelativeAddress, 0x00390000, 0x00070000, 0x00390000 } }; /**