mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
linux_rpi: Specify defconfig in kernel expression
In particular, now the mainline kernel can be built on the RPi 1 as well (so kernelBaseConfig should always be a mainline defconfig from now on). And RPi 2 users can now use linux_rpi without doing the `nixpkgs.config.platform = lib.systems.platforms.raspberrypi2;` dance.
This commit is contained in:
parent
87a68c455e
commit
96edbe4a0e
@ -167,7 +167,7 @@ rec {
|
||||
raspberrypi = {
|
||||
name = "raspberrypi";
|
||||
kernelMajor = "2.6";
|
||||
kernelBaseConfig = "bcmrpi_defconfig";
|
||||
kernelBaseConfig = "bcm2835_defconfig";
|
||||
kernelDTB = true;
|
||||
kernelArch = "arm";
|
||||
kernelAutoModules = false;
|
||||
@ -254,8 +254,6 @@ rec {
|
||||
|
||||
raspberrypi2 = armv7l-hf-multiplatform // {
|
||||
name = "raspberrypi2";
|
||||
kernelBaseConfig = "bcm2709_defconfig";
|
||||
kernelDTB = true;
|
||||
kernelAutoModules = false;
|
||||
kernelExtraConfig = ''
|
||||
BLK_DEV_RAM y
|
||||
|
@ -15,6 +15,11 @@ stdenv.lib.overrideDerivation (buildLinux (args // rec {
|
||||
sha256 = "19lb1gxz21x1d5zdznzqfq60kxg7iqmyl6l0mb9qg2vrl8fcgnxk";
|
||||
};
|
||||
|
||||
defconfig = {
|
||||
"armv6l-linux" = "bcmrpi_defconfig";
|
||||
"armv7l-linux" = "bcm2709_defconfig";
|
||||
}.${stdenv.system} or (throw "linux_rpi not supported on '${stdenv.system}'");
|
||||
|
||||
features = {
|
||||
efiBootStub = false;
|
||||
} // (args.features or {});
|
||||
|
Loading…
Reference in New Issue
Block a user