summaryrefslogtreecommitdiff
path: root/payloads/external/tianocore/Kconfig
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2016-06-02 16:42:29 -0600
committerMartin Roth <martinroth@google.com>2017-08-10 15:54:08 +0000
commit4769cc3c0cc0ef465484013e8b320df79b0cafac (patch)
treef68dcfca1df0f0c8b82def3853b82006fb99fbf4 /payloads/external/tianocore/Kconfig
parented0ee0a83d1c93134acd6e6494345ad1927254a5 (diff)
payloads/external/tianocore: build UEFI payload
Update the existing tianocore payload (which didn't do any more than adding an elf payload with a specific name) to fetch and build the UEFI corebootPayloadPackage, using the coreboot toolchain for compilation. Only checkout the commit when changing commit IDs or if version is master, instead of every time it builds. Currently working if patches are merged into the upstream edk2 repository (to be included in a follow-on patch). Change-Id: I0bf4cedec2d6821ae2a04184ebb5cf88979ccee3 Signed-off-by: Martin Roth <martinroth@google.com> Signed-off-by: Philipp Deppenwiese <zaolin@das-labor.org> Signed-off-by: Evelyn Huang <evhuang@google.com> Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/15057 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'payloads/external/tianocore/Kconfig')
-rw-r--r--payloads/external/tianocore/Kconfig86
1 files changed, 84 insertions, 2 deletions
diff --git a/payloads/external/tianocore/Kconfig b/payloads/external/tianocore/Kconfig
index 8a98bd3519..d7b9ca5fd5 100644
--- a/payloads/external/tianocore/Kconfig
+++ b/payloads/external/tianocore/Kconfig
@@ -1,9 +1,91 @@
if PAYLOAD_TIANOCORE
config PAYLOAD_FILE
- string "Tianocore firmware volume"
- default "COREBOOT.fd"
+ string "Tianocore binary"
+ default "payloads/external/tianocore/tianocore/Build/UEFIPAYLOAD.fd"
help
The result of a corebootPkg build
+choice
+ prompt "Tianocore version"
+ default TIANOCORE_STABLE
+ help
+ Select which version of Tianocore to build (default is to build stable)
+ stable: a version of Tianocore that builds without any errors
+ master: most recent version from upstream Tianocore repository
+ revision: use specific commit or branch to build Tianocore (specified by user)
+
+config TIANOCORE_STABLE
+ bool "stable"
+ help
+ Select this option to build the stable tianocore version
+ i.e. a version of Tianocore that builds without any errors
+
+config TIANOCORE_MASTER
+ bool "master"
+ help
+ Select this option to build the master tianocore version
+ i.e. most recent version from upstream Tianocore repository
+
+config TIANOCORE_REVISION
+ bool "git revision"
+ help
+ Select this option if you have a specific commit or branch
+ that you want to use as the revision from which to
+ build Tianocore.
+
+ You will be able to specify the name of a branch or a commit id
+ later.
+
+endchoice
+
+config TIANOCORE_REVISION_ID
+ string "Insert a commit's SHA-1 or a branch name"
+ depends on TIANOCORE_REVISION
+ default "origin/master"
+ help
+ The commit's SHA-1 or branch name of the revision to use.
+
+choice
+ prompt "Target architecture"
+ default TIANOCORE_TARGET_X64
+ help
+ The Tianocore coreboot Payload Package binary can be
+ built for either only IA32 or both X64 and IA32 architectures.
+ Select which architecture(s) to build for; default is to build
+ for both X64 and IA32.
+
+config TIANOCORE_TARGET_IA32
+ bool "IA32"
+ help
+ By selecting this option, the target architecture will be built
+ for only IA32.
+
+config TIANOCORE_TARGET_X64
+ bool "X64"
+ help
+ By selecting this option, the target architecture will be built
+ for X64 and IA32.
+
+endchoice
+
+choice
+ prompt "Tianocore build"
+ default TIANOCORE_RELEASE
+ help
+ Select whether to generate a debug or release build for
+ Tianocore; default is to generate a release build.
+
+config TIANOCORE_DEBUG
+ bool "Generate Tianocore debug build"
+ help
+ Generate a debug build.
+
+config TIANOCORE_RELEASE
+ bool "Generate Tianocore release build"
+ help
+ Generate a release build.
+
+endchoice
+
endif