Skip to content

Conversation

@MarsDoge
Copy link
Member

The current GetHostInfo() does not recognize 'loongarch64' returned by platform.machine(). This causes stuart_setup and other edk2 tools to fail on LoongArch systems.

This patch adds basic detection for LoongArch64 and treats it as a 64-bit ARM-like architecture, which allows edk2 Python tools to run on LoongArch.

@MarsDoge MarsDoge marked this pull request as draft November 27, 2025 02:53
@Javagedes
Copy link
Contributor

Hello @MarsDoge , thank you for the contribution. I'm happy to accept this, but please fix the spelling and formatting errors that CI is showing.

Thanks,
Joey

The current GetHostInfo() does not recognize 'loongarch64' returned by
platform.machine(). This causes stuart_setup and other edk2 tools to fail
on LoongArch systems.

This patch adds basic detection for LoongArch64 and treats it as a 64-bit
ARM-like architecture, which allows edk2 Python tools to run on LoongArch.

.cspell.json reference to upstream CSpell word submission:
https://github.com/streetsidesoftware/cspell-dicts/pull/5005/files

Signed-off-by: Dongyan Qian <qiandongyan@loongson.cn>
@MarsDoge MarsDoge marked this pull request as ready for review December 6, 2025 03:04
@codecov
Copy link

codecov bot commented Dec 6, 2025

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.10%. Comparing base (a36394e) to head (c58c4e1).

Files with missing lines Patch % Lines
edk2toollib/utility_functions.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #778      +/-   ##
==========================================
- Coverage   82.12%   82.10%   -0.03%     
==========================================
  Files          47       47              
  Lines        7879     7881       +2     
==========================================
  Hits         6471     6471              
- Misses       1408     1410       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@MarsDoge
Copy link
Member Author

MarsDoge commented Dec 6, 2025

Hi @Javagedes , please review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants