-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
qemu: riscv related fixes #214534
qemu: riscv related fixes #214534
Conversation
After some discussion with qemu devs, it seems that the correct thing to do is indeed just not to pass https://lore.kernel.org/qemu-devel/[email protected]/T/ It seems that there is still a bit of problem with regards to cross qemu. I'll come back to it once I get that settled. |
The python dependencies were fixed for cross in NixOS#147692, but the changes are reversed NixOS#190560 due to concerns of accidentally mixing python versions. Compromise by using python3Packages.python.
12d895e
to
e947b2f
Compare
cc @figsoda @SuperSandro2000 from #190560 and @NickCao from #147692 |
'./configure --cpu=$(uname -m)' (essentially) breaks the case of riscv, where the configure script expects '--cpu=riscv', but 'uname -m' gives 'riscv{32,64}'. This eventually leads to user-mode emulation being disabled. Since the configure script can auto-detect the parameter based on compilers, remove this flag. Originally added in NixOS#147692, but apparently it's not needed and @NickCao couldn't remember why it was added. See also mailing list discussion at https://lore.kernel.org/qemu-devel/[email protected]/T/
the python change lgtm, don't know enough to review the change to |
e947b2f
to
08e6d08
Compare
Had to disable sdl support to test due to dependency failure. Builds fine crossing from x86_64-linux to riscv64-linux, build/host platform is correctly recognized by build system, qemu-user support is discovered and built. |
Two fixes found when trying to use qemu on riscv.
Description of changes
Things done
sdlSupport = false
)sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes