mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
sheevaplug: fix kernel build.
I added platform.kernelMakeFlags. This allows setting the required parameter to make the required kernel uImage for the sheevaplug, since it became a platform with devicetree (3.10). I have tried it with linux 3.18 and it built fine.
This commit is contained in:
parent
0f2de4c64e
commit
0c5be7164c
@ -49,7 +49,8 @@ let
|
||||
|
||||
commonMakeFlags = [
|
||||
"O=$(buildRoot)"
|
||||
];
|
||||
] ++ stdenv.lib.optionals (stdenv.platform ? kernelMakeFlags)
|
||||
stdenv.platform.kernelMakeFlags;
|
||||
|
||||
drvAttrs = config_: platform: kernelPatches: configfile:
|
||||
let
|
||||
|
@ -25,7 +25,7 @@ rec {
|
||||
name = "sheevaplug";
|
||||
kernelMajor = "2.6";
|
||||
kernelHeadersBaseConfig = "kirkwood_defconfig";
|
||||
kernelBaseConfig = "kirkwood_defconfig";
|
||||
kernelBaseConfig = "multi_v5_defconfig";
|
||||
kernelArch = "arm";
|
||||
kernelAutoModules = false;
|
||||
kernelExtraConfig =
|
||||
@ -123,10 +123,12 @@ rec {
|
||||
KGDB_SERIAL_CONSOLE y
|
||||
KGDB_KDB y
|
||||
'';
|
||||
kernelMakeFlags = [ "LOADADDR=0x0200000" ];
|
||||
kernelTarget = "uImage";
|
||||
uboot = "sheevaplug";
|
||||
# Only for uboot = uboot :
|
||||
ubootConfig = "sheevaplug_config";
|
||||
kernelDTB = true; # Beyond 3.10
|
||||
};
|
||||
|
||||
raspberrypi = {
|
||||
|
Loading…
Reference in New Issue
Block a user