cleverca22
12/4/2016 - 5:13 AM

gistfile1.txt

with import <nixpkgs> {};
let
  pkgs2 = import <nixpkgs> {
    crossSystem = {
      config = "arm-none-eabi";
      libc = null;
    };
  };
in runCommand "kernel" {
  buildInputs = [ pkgs2.binutilsCross pkgs2.gccCrossStageStatic gcc ncurses pkgconfig gtk2 glib gnome2.libglade bc ];
  ARCH = "arm";
} ""
[nix-shell:~/rpi/linux]$ make bcm2709_defconfig
[nix-shell:~/rpi/linux]$ make gconfig
[nix-shell:~/rpi/linux]$ time make CROSS_COMPILE=arm-none-eabi- -j 8