Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UefiPayloadPkg: Make UPL build script arch agnostic #5399

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

gguo11837463
Copy link
Contributor

Current implementation makes assumptions about arch it will be built for. Need to make it more generic to add follow up support for RISCV. Right now it does not build for RV until relevant dsc file is available.

Cc: Guo Dong [email protected]
Cc: Sean Rhodes [email protected]
Cc: James Lu [email protected]
Reviewed-by: Gua Guo [email protected]

Current implementation makes assumptions about arch it will be built
for. Need to make it more generic to add follow up support for RISCV.
Right now it does not build for RV until relevant dsc file is available.

Cc: Guo Dong <[email protected]>
Cc: Sean Rhodes <[email protected]>
Cc: James Lu <[email protected]>
Reviewed-by: Gua Guo <[email protected]>
Signed-off-by: Dhaval Sharma <[email protected]>
@@ -22,7 +22,7 @@
SUPPORTED_ARCHITECTURES = IA32|X64
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it be changed to IA32|X64|RISCV64?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot_20240223_202440_Chrome

@gguo11837463 gguo11837463 added the push Auto push patch series in PR if all checks pass label Feb 23, 2024
@mergify mergify bot merged commit 11ad164 into tianocore:master Feb 23, 2024
105 checks passed
@matdibu
Copy link

matdibu commented Aug 30, 2024

hi @gguo11837463 ! I'm building from within coreboot and there's an issue I'm having with $(BUILD_ARCH): #6135

coreboot's makefile is building UefiPayloadPkgX64 via build -a IA32 -a X64

but at some point it ends up with a folder named UefiPayloadPkg$(BUILD_ARCH)

patching it back to OUTPUT_DIRECTORY = Build/UefiPayloadPkgX64 works for that specific build, but I think you can agree that it's not a proper solution

@iangoegebuer
Copy link

The line should be the below

 OUTPUT_DIRECTORY                    = Build/UefiPayloadPkg$(ARCH) 

No other dsc uses BUILD_ARCH

grep -r OUTPUT_DIRECTORY | grep ARCH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
push Auto push patch series in PR if all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants