Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created December 4, 2016 05:13
Show Gist options
  • Save cleverca22/ce6013cd57512bdedcb671136cf86913 to your computer and use it in GitHub Desktop.
Save cleverca22/ce6013cd57512bdedcb671136cf86913 to your computer and use it in GitHub Desktop.
[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
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";
} ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment