Skip to content

uefi-sct/SctPkg: Fixes "Unsupported target architecture X64 !" #245

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

Merged
merged 1 commit into from
May 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions uefi-sct/SctPkg/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ function get_build_arch
BUILD_ARCH=RISCV64;;
loongarch64*)
BUILD_ARCH=LOONGARCH64;;
x86_64*)
BUILD_ARCH=X64;;
*)
BUILD_ARCH=other;;
esac
Expand All @@ -40,6 +42,12 @@ function set_cross_compile
echo "Build: $BUILD_ARCH"
if [ "$SCT_TARGET_ARCH" = "$BUILD_ARCH" ]; then
TEMP_CROSS_COMPILE=
elif [ "$SCT_TARGET_ARCH" == "X64" ]; then
if [ X"$CROSS_COMPILE_64" != X"" ]; then
TEMP_CROSS_COMPILE="$CROSS_COMPILE_64"
else
TEMP_CROSS_COMPILE=x86_64-linux-gnu-
fi
elif [ "$SCT_TARGET_ARCH" == "AARCH64" ]; then
if [ X"$CROSS_COMPILE_64" != X"" ]; then
TEMP_CROSS_COMPILE="$CROSS_COMPILE_64"
Expand Down
Loading