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:
Lluís Batlle i Rossell 2015-05-06 09:35:38 +02:00
parent 0f2de4c64e
commit 0c5be7164c
2 changed files with 5 additions and 2 deletions

View file

@ -49,7 +49,8 @@ let
commonMakeFlags = [
"O=$(buildRoot)"
];
] ++ stdenv.lib.optionals (stdenv.platform ? kernelMakeFlags)
stdenv.platform.kernelMakeFlags;
drvAttrs = config_: platform: kernelPatches: configfile:
let

View file

@ -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 = {