From 9bcb6277f3bb97340673cae70fbe17561fbd88a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 18 Feb 2010 11:34:48 +0000 Subject: [PATCH] Changing linux kernel references from vmlinuz to bzImage. This way we get a simpler kernel build script. svn path=/nixpkgs/trunk/; revision=20094 --- pkgs/build-support/vm/default.nix | 2 +- pkgs/os-specific/linux/kernel/builder.sh | 4 +--- pkgs/top-level/platforms.nix | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/build-support/vm/default.nix b/pkgs/build-support/vm/default.nix index 7870f987fafa..64fb1d354208 100644 --- a/pkgs/build-support/vm/default.nix +++ b/pkgs/build-support/vm/default.nix @@ -192,7 +192,7 @@ rec { -nographic -no-reboot \ -net nic,model=virtio -net user -smb / \ -drive file=$diskImage,if=virtio,boot=on \ - -kernel ${kernel}/vmlinuz \ + -kernel ${kernel}/bzImage \ -initrd ${initrd}/initrd \ -append "console=ttyS0 panic=1 command=${stage2Init} tmpDir=$TMPDIR out=$out mountDisk=$mountDisk" \ $QEMU_OPTS diff --git a/pkgs/os-specific/linux/kernel/builder.sh b/pkgs/os-specific/linux/kernel/builder.sh index 48e173e1baa2..75283e835de5 100644 --- a/pkgs/os-specific/linux/kernel/builder.sh +++ b/pkgs/os-specific/linux/kernel/builder.sh @@ -40,9 +40,7 @@ configurePhase() { postBuild() { # After the builder did a 'make all' (kernel + modules) # we force building the target asked: bzImage/zImage/uImage/... - if [ "$kernelTarget" != "vmlinuz" ]; then - make $makeFlags $kernelTarget - fi + make $makeFlags $kernelTarget } installPhase() { diff --git a/pkgs/top-level/platforms.nix b/pkgs/top-level/platforms.nix index 81ef7764b152..8bbb3ae56a8d 100644 --- a/pkgs/top-level/platforms.nix +++ b/pkgs/top-level/platforms.nix @@ -7,7 +7,7 @@ with pkgs; kernelBaseConfig = "defconfig"; # Build whatever possible as a module, if not stated in the extra config. kernelAutoModules = true; - kernelTarget = "vmlinuz"; + kernelTarget = "bzImage"; kernelExtraConfig = '' # Virtualisation (KVM, Xen...).