* [edk2-platforms][PATCH 1/2] PlatformPayloadFeaturePkg.dsc: Add missing packages
@ 2023-03-06 8:41 Patrick Rudolph
2023-03-06 8:41 ` [edk2-platforms][PATCH 2/2] PlatformPayloadFeaturePkg.py: Add Linux support Patrick Rudolph
0 siblings, 1 reply; 2+ messages in thread
From: Patrick Rudolph @ 2023-03-06 8:41 UTC (permalink / raw)
Cc: devel, rangasai.v.chaganty, isaac.w.oram, nathaniel.l.desimone,
gaoliming, sean
Add package that are required to build PlatformPayloadFeaturePkg.
Test:
Running python Features/Intel/PlatformPayloadFeaturePkg/PlatformPayloadFeaturePkg.py
generates a FV.
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=4359
---
Features/Intel/PlatformPayloadFeaturePkg/PlatformPayloadFeaturePkg.dsc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Features/Intel/PlatformPayloadFeaturePkg/PlatformPayloadFeaturePkg.dsc b/Features/Intel/PlatformPayloadFeaturePkg/PlatformPayloadFeaturePkg.dsc
index e36e5d6e..9dcd1da6 100644
--- a/Features/Intel/PlatformPayloadFeaturePkg/PlatformPayloadFeaturePkg.dsc
+++ b/Features/Intel/PlatformPayloadFeaturePkg/PlatformPayloadFeaturePkg.dsc
@@ -33,6 +33,9 @@
[Packages]
MinPlatformPkg/MinPlatformPkg.dec
+ MdePkg/MdePkg.dec
+ MdeModulePkg/MdeModulePkg.dec
+ UefiPayloadPkg/UefiPayloadPkg.dec
################################################################################
#
--
2.39.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [edk2-platforms][PATCH 2/2] PlatformPayloadFeaturePkg.py: Add Linux support
2023-03-06 8:41 [edk2-platforms][PATCH 1/2] PlatformPayloadFeaturePkg.dsc: Add missing packages Patrick Rudolph
@ 2023-03-06 8:41 ` Patrick Rudolph
0 siblings, 0 replies; 2+ messages in thread
From: Patrick Rudolph @ 2023-03-06 8:41 UTC (permalink / raw)
Cc: devel, rangasai.v.chaganty, isaac.w.oram, nathaniel.l.desimone,
gaoliming, sean
- Use OS specific path seperator instead of hardcoding ';'
- Fix case of build artifact FV/PLATFORMPAYLOAD.Fv
Test:
python Features/Intel/PlatformPayloadFeaturePkg/PlatformPayloadFeaturePkg.py
works on Linux.
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=4358
---
Features/Intel/PlatformPayloadFeaturePkg/PlatformPayloadFeaturePkg.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Features/Intel/PlatformPayloadFeaturePkg/PlatformPayloadFeaturePkg.py b/Features/Intel/PlatformPayloadFeaturePkg/PlatformPayloadFeaturePkg.py
index 2fbb8215..51aa8de5 100644
--- a/Features/Intel/PlatformPayloadFeaturePkg/PlatformPayloadFeaturePkg.py
+++ b/Features/Intel/PlatformPayloadFeaturePkg/PlatformPayloadFeaturePkg.py
@@ -38,7 +38,7 @@ def BuildUniversalPayload(Args, MacroList):
# Find universal UEFI payload build build script
#
Edk2PayloadBuildScript = os.path.normpath("UefiPayloadPkg/UniversalPayloadBuild.py")
- for package_path in os.environ['PACKAGES_PATH'].split(';'):
+ for package_path in os.environ['PACKAGES_PATH'].split(os.pathsep):
if os.path.exists (os.path.join (package_path, Edk2PayloadBuildScript)):
Edk2PayloadBuildScript = os.path.join (package_path, Edk2PayloadBuildScript)
break
@@ -49,7 +49,7 @@ def BuildUniversalPayload(Args, MacroList):
BuildDir = os.path.join(os.environ['WORKSPACE'], os.path.normpath("Build/UefiPayloadPkgX64"))
PlatformFvReportPath = os.path.join(BuildDir, "PlatformPayloadReport.txt")
UniversalUefiPld = os.path.join(BuildDir, 'UniversalPayload.elf')
- PlatformFv = os.path.join(os.environ['WORKSPACE'], os.path.normpath("Build/PlatformPayloadFeaturePkg"), f"{BuildTarget}_{ToolChain}", os.path.normpath("FV/PlatformPayload.Fv"))
+ PlatformFv = os.path.join(os.environ['WORKSPACE'], os.path.normpath("Build/PlatformPayloadFeaturePkg"), f"{BuildTarget}_{ToolChain}", os.path.normpath("FV/PLATFORMPAYLOAD.Fv"))
if "CLANG_BIN" in os.environ:
LlvmObjcopyPath = os.path.join(os.environ["CLANG_BIN"], "llvm-objcopy")
--
2.39.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-06 8:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-06 8:41 [edk2-platforms][PATCH 1/2] PlatformPayloadFeaturePkg.dsc: Add missing packages Patrick Rudolph
2023-03-06 8:41 ` [edk2-platforms][PATCH 2/2] PlatformPayloadFeaturePkg.py: Add Linux support Patrick Rudolph
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox