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;
setting, by the system, a build tool variable to a value indicating that the feature is enabled in response to the set value being the first value, and setting the build tool variable to a value indicating that the feature is disabled in response to the set value being the second value;
setting, by the system, a runtime variable to a value indicating that the feature is enabled in response to the set value being the first value, and setting the runtime variable to a value indicating that the feature is disabled in response to the set value being second value; and
building, by the system, the program code according to a value to which the build tool variable is set, wherein the program code comprises;
a first portion supporting the feature used during execution of the program code in response to the runtime variable set to the value indicating that the feature is enabled, anda second portion without support for the feature used during execution of the program code in response to the runtime variable set to the value indicating that the feature is disabled.
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.
-
Citations
17 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; setting, by the system, a build tool variable to a value indicating that the feature is enabled in response to the set value being the first value, and setting the build tool variable to a value indicating that the feature is disabled in response to the set value being the second value; setting, by the system, a runtime variable to a value indicating that the feature is enabled in response to the set value being the first value, and setting the runtime variable to a value indicating that the feature is disabled in response to the set value being second value; and building, by the system, the program code according to a value to which the build tool variable is set, wherein the program code comprises; a first portion supporting the feature used during execution of the program code in response to the runtime variable set to the value indicating that the feature is enabled, and a second portion without support for the feature used during execution of the program code in response to the runtime variable set to the value indicating that the feature is disabled. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. 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; and build the program code according to a value to which the build tool variable is set, wherein the program code comprises; a first portion supporting the feature used during execution of the program code in response to the runtime variable set to the value indicating that the feature is enabled, and a second portion without support for the feature used during execution of the program code in response to the runtime variable set to the value indicating that the feature is disabled. - View Dependent Claims (11, 12, 13, 14)
-
15. An article comprising at least one non-transitory machine-readable storage medium storing instructions that upon execution cause a system to:
-
receive a build indicator set 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; and build the program code according to a value to which the build tool variable is set, wherein the program code comprises; a first portion supporting the feature used during execution of the program code in response to the runtime variable set to the value indicating that the feature is enabled, and a second portion without support for the feature used during execution of the program code in response to the runtime variable set to the value indicating that the feature is disabled.
-
-
16. The article of 15, wherein the runtime variable is in metadata associated with the program code.
-
17. The article of 15, wherein the program code comprises a basic input/output system (BIOS) code.
Specification