SETTING A BUILD INDICATOR TO ENABLE OR DISABLE A FEATURE
First Claim
Patent Images
1. A method comprising:
- setting, in a system comprising a processor, a build indicator in a build environment to a set value for building a program code, the set value selected from a first value indicating that a feature of the program code is enabled, and a second value indicating that the feature is disabled;
in response to the set value of the build indicator being the first value, setting, by the system, a first variable to a value indicating that the feature is enabled;
building, by the system, the program code using the value of the first variable; and
in response to the set value of the build indicator being the first value, setting, by the system, a runtime variable to a value indicating that the feature is enabled, wherein the runtime variable being set to the value indicating that the feature is enabled causes a runtime check of the program code to use a portion of the program code that enables the feature.
1 Assignment
0 Petitions
Accused Products
Abstract
A build indicator is set in a build environment to a set value for building a program code, the set value selected from a first value indicating that a feature of the program code is enabled, and a second value indicating that the feature is disabled. In response to the set value of the build indicator being the first value, a variable is set to a value indicating that the feature is enabled. The program code is built using the value of the variable.
10 Citations
19 Claims
-
1. A method comprising:
-
setting, in a system comprising a processor, a build indicator in a build environment to a set value for building a program code, the set value selected from a first value indicating that a feature of the program code is enabled, and a second value indicating that the feature is disabled; in response to the set value of the build indicator being the first value, setting, by the system, a first variable to a value indicating that the feature is enabled; building, by the system, the program code using the value of the first variable; and in response to the set value of the build indicator being the first value, setting, by the system, a runtime variable to a value indicating that the feature is enabled, wherein the runtime variable being set to the value indicating that the feature is enabled causes a runtime check of the program code to use a portion of the program code that enables the feature. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A system comprising:
at least one processor to; receive, in a build environment, a command to set a build indicator to a first value or a second value; promote the build indicator to a build tool variable and a runtime variable, wherein the promoting comprises; setting the build tool variable to a value indicating that a feature of a program code is enabled in response to the build indicator being set to the first value, and setting the build tool variable to a value indicating that the feature of the program code is disabled in response to the build indicator being set to the second value, setting the runtime variable to a value indicating that the feature of the program code is enabled in response to the build indicator being set to the first value, and setting the runtime variable to a value indicating that the feature of the program code is disabled in response to the build indicator being set to the second value, wherein the runtime variable being set to the value indicating that the feature is enabled is to cause a runtime check of the program code to use a portion of the program code that enables the feature; and build the program code according to a value to which the build tool variable is set. - View Dependent Claims (13, 14, 15, 16)
-
17. An article comprising at least one non-transitory machine-readable storage medium storing instructions that upon execution cause an electronic device to:
-
retrieve a value of a runtime variable associated with a program code, the value of the runtime variable being set based on a value of a build indicator set in a build environment by a manufacturer that provided the program code, the runtime variable being set to a first value in response to the build indicator being set to an enabled value indicating that a feature of the program code is enabled, and the runtime variable being set to a second value in response to the build indicator being set to a disabled value indicating that the feature of the program code is disabled; and during execution of the program code in the electronic device, execute a first portion of the program code with the feature enabled in response to the runtime variable having the first value, and execute a second portion of the program code with the feature disabled in response to the runtime variable having the second value.
-
-
18. The article of 17, wherein the runtime variable is in metadata associated with the program code.
-
19. The article of 17, wherein the program code comprises a basic input/output system (BIOS) code.
Specification