patches and low-level development discussion
 help / color / mirror / code / Atom feed
* Cross-compilation support - call for test / nix-help
@ 2022-06-30 11:42 Ville Ilvonen
  2022-07-12 18:15 ` Alyssa Ross
  0 siblings, 1 reply; 4+ messages in thread
From: Ville Ilvonen @ 2022-06-30 11:42 UTC (permalink / raw)
  To: devel

Hi all,

As Ivan (@jonne) updated earlier this week on #spectrum, we've got initial cross-compilation support for aarch64 available in Spectrum development fork. It still needs some TLC before Spectrum PRs but is a great step forward. Our current ref. board is NXP i.MX8 but rootfs build should be fairly easy to modify for RPi4 configs already in nixpkgs for anyone who cares to try.

Quick how-to for non-nixos host like Ubuntu:
git clone -b aarch64-imx8-crosscompile https://github.com/tiiuae/nixpkgs-spectrum.git
git clone -b aarch64-imx8-crosscompile https://github.com/tiiuae/spectrum.git
cd spectrum/host/rootfs
nix-build -I nixpkgs=../../../nixpkgs-spectrum

Know issue:
- crossSystem from https://github.com/tiiuae/spectrum/commit/aad5f90cf2ec931f2af5c8d5111a9fac11686f8b#diff-5e4605b8d5634dcdcce8f0963ac46b90dc052b9a6de153cbd8e625f105c9be9aR6 is ignored on NixOS host but not on Ubuntu - maybe someone can point us why.

Thanks, 

-Ville


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-07-13  9:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-30 11:42 Cross-compilation support - call for test / nix-help Ville Ilvonen
2022-07-12 18:15 ` Alyssa Ross
2022-07-13  9:36   ` Ville Ilvonen
2022-07-13  9:54     ` Alyssa Ross

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).