remove delete -pcd LSA from OS builds
ndctl provides zero-label with proper checks
#include "Common.h"
#include "ShowFirmwareCommand.h"
#include "ShowPcdCommand.h"
-#include "DeletePcdCommand.h"
#include "StartFormatCommand.h"
#include "ShowPreferencesCommand.h"
#include "SetPreferencesCommand.h"
#include "DumpSupportCommand.h"
extern void nvm_current_cmd(struct Command Command);
#else
+#include "DeletePcdCommand.h"
EFI_GUID gNvmDimmConfigProtocolGuid = EFI_DCPMM_CONFIG_PROTOCOL_GUID;
#endif
EFI_GUID gNvmDimmDriverHealthGuid = EFI_DRIVER_HEALTH_PROTOCOL_GUID;
@@ -453,6 +453,12 @@ RegisterCommands(
if (EFI_ERROR(Rc)) {
goto done;
}
+
+ Rc = RegisterDeletePcdCommand();
+ if (EFI_ERROR(Rc)) {
+ goto done;
+ }
+
#endif
Rc = RegisterShowErrorCommand();
if (EFI_ERROR(Rc)) {
@@ -514,11 +520,6 @@ RegisterCommands(
goto done;
}
- Rc = RegisterDeletePcdCommand();
- if (EFI_ERROR(Rc)) {
- goto done;
- }
-
Rc = RegisterShowPreferencesCommand();
if (EFI_ERROR(Rc)) {
goto done;
