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

RISC-V improvements + fixes #2235

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

RISC-V improvements + fixes #2235

wants to merge 4 commits into from

Conversation

ldevulder
Copy link
Contributor

This PR contains some RISC-V support improvement and fixes for small issues I found:

  • Fix Makefile for riscv64
  • Fix Dockerfile for riscv64
  • Add missing Autologin feature
  • Fix architecture platform value

@ldevulder ldevulder self-assigned this Nov 21, 2024
@ldevulder ldevulder requested a review from a team as a code owner November 21, 2024 18:00
@ldevulder ldevulder changed the title Fix riscv support RISC-V improvements + fixes Nov 21, 2024
@ldevulder ldevulder marked this pull request as draft November 21, 2024 18:00
Without this we always have the host architecture instead of the
platform one in cross-compilation.

Signed-off-by: Loic Devulder <[email protected]>
Still not enabled by default, but could be added like any other
features.

Signed-off-by: Loic Devulder <[email protected]>
Signed-off-by: Loic Devulder <[email protected]>
Signed-off-by: Loic Devulder <[email protected]>
@ldevulder ldevulder marked this pull request as ready for review November 25, 2024 09:04
Copy link
Contributor

@frelon frelon left a comment

Choose a reason for hiding this comment

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

Please change to use the default features in the green Dockerfile. Apart from that it looks good!

ADD_FEATURES+=" grub-default-bootargs"; \
[[ "${ARCH}" == "aarch64" ]] && ADD_FEATURES+=" arm-firmware"; \
fi; \
elemental --debug init --force \
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should keep the default features here since these are what's tested in the CI.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What do you mean? The code will keep the defaults for x86 (yes explicitly written) and only change for arm64 (adding arm-firmware) and riscv64 because this one needs specific Grub options.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, but we want to test that the default features added through the implicit case works (also autologin is not one of the default features)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In that case I will have to either use a dedicated Dockerfile or defined the list of features only for riscv64 (and arm64 maybe?) and keep the default for x86.

WDYT is the better way for you? I first tried to avoid a pretty much full copy/paste of the Dockerfile only for riscv64, but if you think that an easier way to do it
that's fine.

examples/green/Dockerfile Show resolved Hide resolved
Makefile Show resolved Hide resolved
@kkaempf kkaempf added the kind/enhancement New feature or request label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🗳️ To Do
Development

Successfully merging this pull request may close these issues.

3 participants