mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
Add platform definition for BeagleBone and default to it on armv7l-linux.
This commit is contained in:
parent
b4dc2ab440
commit
cf317b85ad
2 changed files with 18 additions and 0 deletions
|
@ -72,6 +72,7 @@ let
|
||||||
platforms = (import ./platforms.nix);
|
platforms = (import ./platforms.nix);
|
||||||
in
|
in
|
||||||
if system == "armv6l-linux" then platforms.raspberrypi
|
if system == "armv6l-linux" then platforms.raspberrypi
|
||||||
|
else if system == "armv7l-linux" then platforms.beaglebone
|
||||||
else if system == "armv5tel-linux" then platforms.sheevaplug
|
else if system == "armv5tel-linux" then platforms.sheevaplug
|
||||||
else if system == "mips64el-linux" then platforms.fuloong2f_n32
|
else if system == "mips64el-linux" then platforms.fuloong2f_n32
|
||||||
else if system == "x86_64-linux" then platforms.pc64
|
else if system == "x86_64-linux" then platforms.pc64
|
||||||
|
|
|
@ -372,4 +372,21 @@ rec {
|
||||||
uboot = null;
|
uboot = null;
|
||||||
gcc.arch = "loongson2f";
|
gcc.arch = "loongson2f";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
beaglebone = {
|
||||||
|
name = "beaglebone";
|
||||||
|
kernelMajor = "2.6";
|
||||||
|
kernelHeadersBaseConfig = "omap2plus_defconfig";
|
||||||
|
kernelBaseConfig = "omap2plus_defconfig";
|
||||||
|
kernelArch = "arm";
|
||||||
|
kernelAutoModules = false;
|
||||||
|
kernelExtraConfig = ""; # TBD kernel config
|
||||||
|
kernelTarget = "zImage";
|
||||||
|
uboot = null;
|
||||||
|
gcc = {
|
||||||
|
arch = "armv7-a";
|
||||||
|
fpu = "vfpv3-d16";
|
||||||
|
float = "hard";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue