Add ppc64le cross compiler
authorLas Safin <me@las.rs>
Sun, 19 Sep 2021 16:18:54 +0000 (16:18 +0000)
committerLas Safin <me@las.rs>
Sun, 19 Sep 2021 16:18:54 +0000 (16:18 +0000)
nix/ls180.nix
src/soc/litex/florent

index 0c3d845e189a08681c73a31ace86ed1e5a788a8b..37b9750606f4ac302f4150a854908f8fa494b4e0 100644 (file)
@@ -1,6 +1,6 @@
 { version }:
 
-{ stdenv, python3Packages, yosys, libresoc-pre-litex, libresoc-pinmux }:
+{ stdenv, python3Packages, yosys, libresoc-pre-litex, libresoc-pinmux, pkgsCross }:
 
 stdenv.mkDerivation {
   pname = "libresoc-ls1804k";
@@ -8,9 +8,11 @@ stdenv.mkDerivation {
 
   src = ../src/soc/litex/florent;
 
-  nativeBuildInputs = with python3Packages; [
+  nativeBuildInputs =
+    (with python3Packages; [
     python libresoc-soc litex litedram liteeth liteiclink litescope litesdcard
-  ];
+    ])
+    ++ [ pkgsCross.powernv.buildPackages.gcc ];
 
   postPatch = ''
     patchShebangs --build .
index 6efd2e59703f6f0747435f97030e8a463233457f..a3106935913b18140fdf3b85ce802a2e7566f49b 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 6efd2e59703f6f0747435f97030e8a463233457f
+Subproject commit a3106935913b18140fdf3b85ce802a2e7566f49b