mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 11:34:13 +00:00
platforms: add pogoplug4 (armv5tel softfloat)
This commit is contained in:
parent
3b7395683c
commit
c3eca1f8dc
@ -21,6 +21,39 @@ rec {
|
|||||||
kernelAutoModules = false;
|
kernelAutoModules = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pogoplug4 = {
|
||||||
|
name = "pogoplug4";
|
||||||
|
|
||||||
|
gcc = {
|
||||||
|
arch = "armv5te";
|
||||||
|
float = "soft";
|
||||||
|
};
|
||||||
|
|
||||||
|
kernelMajor = "2.6";
|
||||||
|
kernelHeadersBaseConfig = "multi_v5_defconfig";
|
||||||
|
kernelBaseConfig = "multi_v5_defconfig";
|
||||||
|
kernelArch = "arm";
|
||||||
|
kernelAutoModules = false;
|
||||||
|
kernelExtraConfig =
|
||||||
|
''
|
||||||
|
# Ubi for the mtd
|
||||||
|
MTD_UBI y
|
||||||
|
UBIFS_FS y
|
||||||
|
UBIFS_FS_XATTR y
|
||||||
|
UBIFS_FS_ADVANCED_COMPR y
|
||||||
|
UBIFS_FS_LZO y
|
||||||
|
UBIFS_FS_ZLIB y
|
||||||
|
UBIFS_FS_DEBUG n
|
||||||
|
'';
|
||||||
|
kernelMakeFlags = [ "LOADADDR=0x8000" ];
|
||||||
|
kernelTarget = "uImage";
|
||||||
|
# TODO reenable once manual-config's config actually builds a .dtb and this is checked to be working
|
||||||
|
#kernelDTB = true;
|
||||||
|
|
||||||
|
# XXX can be anything non-null, pkgs actually only cares if it is set or not
|
||||||
|
uboot = "pogoplug4";
|
||||||
|
};
|
||||||
|
|
||||||
sheevaplug = {
|
sheevaplug = {
|
||||||
name = "sheevaplug";
|
name = "sheevaplug";
|
||||||
kernelMajor = "2.6";
|
kernelMajor = "2.6";
|
||||||
|
@ -68,9 +68,24 @@ let
|
|||||||
inherit (gcc) fpu;
|
inherit (gcc) fpu;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pogoplug4-crossSystem.crossSystem = {
|
||||||
|
arch = "armv5tel";
|
||||||
|
config = "armv5tel-softfloat-linux-gnueabi";
|
||||||
|
float = "soft";
|
||||||
|
|
||||||
|
platform = pkgsNoParams.platforms.pogoplug4;
|
||||||
|
|
||||||
|
inherit (pkgsNoParams.platforms.pogoplug4) gcc;
|
||||||
|
libc = "glibc";
|
||||||
|
|
||||||
|
withTLS = true;
|
||||||
|
openssl.system = "linux-generic32";
|
||||||
|
};
|
||||||
|
|
||||||
selectedCrossSystem =
|
selectedCrossSystem =
|
||||||
if toolsArch == "armv5tel" then sheevaplugCrossSystem else
|
if toolsArch == "armv5tel" then sheevaplugCrossSystem else
|
||||||
if toolsArch == "scaleway" then scaleway-c1-crossSystem else
|
if toolsArch == "scaleway" then scaleway-c1-crossSystem else
|
||||||
|
if toolsArch == "pogoplug4" then pogoplug4-crossSystem else
|
||||||
if toolsArch == "armv6l" then raspberrypiCrossSystem else
|
if toolsArch == "armv6l" then raspberrypiCrossSystem else
|
||||||
if toolsArch == "armv7l" then armv7l-hf-multiplatform-crossSystem else
|
if toolsArch == "armv7l" then armv7l-hf-multiplatform-crossSystem else
|
||||||
if toolsArch == "aarch64" then aarch64-multiplatform-crossSystem else null;
|
if toolsArch == "aarch64" then aarch64-multiplatform-crossSystem else null;
|
||||||
@ -285,4 +300,5 @@ rec {
|
|||||||
armv7l = buildFor "armv7l";
|
armv7l = buildFor "armv7l";
|
||||||
aarch64 = buildFor "aarch64";
|
aarch64 = buildFor "aarch64";
|
||||||
scaleway = buildFor "scaleway";
|
scaleway = buildFor "scaleway";
|
||||||
|
pogoplug4 = buildFor "pogoplug4";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user