Skip to content

Commit

Permalink
shells/sysohw3: add cross compiler and common libs
Browse files Browse the repository at this point in the history
  • Loading branch information
steveej committed May 1, 2017
1 parent bf5f1b5 commit 0f46306
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion shells/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,33 @@ let
enableStatic=true;
};

crossPkgsArmLinuxGnueabihf = ({ pkgsPath ? <nixpkgs> }:
let
kernelConfig = "defconfig";
pkgs = import pkgsPath {
crossSystem = {
config = "arm-linux-gnueabihf";
bigEndian = false;
arch = "arm";
float = "hard";
withTLS = true;
libc = "glibc";
platform = {
name = "kobo";
kernelMajor = "2.6";
kernelBaseConfig = kernelConfig;
kernelHeadersBaseConfig = kernelConfig;
uboot = null;
kernelArch = "arm";
kernelAutoModules = false;
kernelTarget = "vmlinux.bin";
};
openssl.system = "linux-generic32";
gcc.arch = "armv7-a";
};
};
in pkgs) { };

dependencies = {
base =
with pkgs; [
Expand Down Expand Up @@ -307,6 +334,7 @@ in {
;
};


sysoHW3 = { unstable = true; } // mkShellDerivation rec {
inherit prefix;
flavor = "sysoHW3";
Expand All @@ -321,7 +349,11 @@ in {
bbStatic.nativeBuildInputs
qemu
cpio
gccCrossArmNoneEabi
])
++
(with crossPkgsArmLinuxGnueabihf; [
zlib zlib.static glibc glibc.static
gccCrossStageStatic
])
;
shellHook = with shellHooks;
Expand Down

0 comments on commit 0f46306

Please sign in to comment.