Method and apparatus for compiling mirror image, nonvolatile readable storage medium, and electronic device
AssigneeSuzhou Metabrain Intelligent Technology Co., Ltd.
InventorXuelong Wang
Life of this patent
Estimating the term…
Abstract
Provided are a method and apparatus for compiling a mirror image, a nonvolatile readable storage medium, and an electronic device. The method includes: whether a compilation operation of a platform firmware resilience project exists in a compilation script is recognized through a macro definition in a case of compiling a project of a board manager controller, so as to obtain a recognition result; a compilation code configured to generate a PFR mirror image is executed in a case that the recognition result indicates that the compilation operation of the PFR project exists, so as to generate the PFR mirror image; and a data check is performed through the PFR mirror image in a case of running each item in the project of the board manager controller.
Claims19
A method for compiling a mirror image, comprising:
- recognizing whether a compilation operation of a platform firmware resilience (PFR) project exists in a compilation script through a macro definition in a case of compiling a project of a board manager controller, so as to obtain a recognition result, wherein the macro definition is a macro definition in a project configuration item file;
- executing a compilation code configured to generate a PFR mirror image in a case that the recognition result indicates that the compilation operation of the PFR project exists, so as to generate the PFR mirror image, wherein the PFR mirror image comprises a whitelist configuration file of each item in the project of the board manager controller;
- and
- performing a data check through the PFR mirror image in a case of running each item in the project of the board manager controller,
- wherein executing the compilation code configured to generate the PFR mirror image in the case that the recognition result indicates that the compilation operation of the PFR project exists, so as to generate the PFR mirror image comprises:
- creating a PFR signature mirror image in the board manager controller project through a first signature tool;
- and
- encrypting the PFR signature mirror image through a second signature tool, so as to obtain the PFR mirror image.
A nonvolatile readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements to:
- recognize whether a compilation operation of a platform firmware resilience (PFR) project exists in a compilation script through a macro definition in a case of compiling a project of a board manager controller, so as to obtain a recognition result, wherein the macro definition is a macro definition in a project configuration item file;
- execute a compilation code configured to generate a PFR mirror image in a case that the recognition result indicates that the compilation operation of the PFR project exists, so as to generate the PFR mirror image, wherein the PFR mirror image comprises a whitelist configuration file of each item in the project of the board manager controller;
- and
- perform a data check through the PFR mirror image in a case of running each item in the project of the board manager controller,
- wherein executing the compilation code configured to generate the PFR mirror image in the case that the recognition result indicates that the compilation operation of the PFR project exists, so as to generate the PFR mirror image comprises:
- creating a PFR signature mirror image in the board manager controller project through a first signature tool;
- and
- encrypting the PFR signature mirror image through a second signature tool, so as to obtain the PFR mirror image.
An electronic device, comprising a memory, a processor, and a computer program stored in the memory and runnable in the processor, wherein the processor, when executing the computer program, implements to:
- recognize whether a compilation operation of a platform firmware resilience (PFR) project exists in a compilation script through a macro definition in a case of compiling a project of a board manager controller, so as to obtain a recognition result, wherein the macro definition is a macro definition in a project configuration item file;
- execute a compilation code configured to generate a PFR mirror image in a case that the recognition result indicates that the compilation operation of the PFR project exists, so as to generate the PFR mirror image, wherein the PFR mirror image comprises a whitelist configuration file of each item in the project of the board manager controller;
- and
- perform a data check through the PFR mirror image in a case of running each item in the project of the board manager controller,
- wherein executing the compilation code configured to generate the PFR mirror image in the case that the recognition result indicates that the compilation operation of the PFR project exists, so as to generate the PFR mirror image comprises:
- creating a PFR signature mirror image in the board manager controller project through a first signature tool;
- and
- encrypting the PFR signature mirror image through a second signature tool, so as to obtain the PFR mirror image.
Dependencies are inferred from the claim text.