]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
Debian.pm: Restrict installation on u-boot-tools
authorIan Campbell <ian.campbell@citrix.com>
Mon, 9 Sep 2013 08:57:32 +0000 (09:57 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 9 Sep 2013 08:57:32 +0000 (09:57 +0100)
Squeeze doesn't have this package, so only install it on platforms which need
a u-boot boot.scr, which necessarily must be using Wheezy.

Osstest/Debian.pm

index 5e870a3aac8ff39cabbe381c5e66d4b499a96e9b..9d656e1cff716824b85fe070631f51dde205bfa6 100644 (file)
@@ -589,6 +589,11 @@ in-target mkimage -A arm -T script -d /boot/boot /boot/boot.scr
 END
     }
 
+    my @extra_packages = [];
+    push(@extra_packages, "u-boot-tools") if $ho->{Flags}{'need-uboot-bootscr'};
+
+    my $extra_packages = join(",",@extra_packages);
+
     my $preseed_file= (<<END);
 d-i mirror/suite string $suite
 
@@ -670,7 +675,7 @@ console-data console-data/keymap/template/layout select British
 popularity-contest popularity-contest/participate boolean false
 tasksel tasksel/first multiselect standard, web-server
 
-d-i pkgsel/include string openssh-server, u-boot-tools, ntp, ntpdate
+d-i pkgsel/include string openssh-server, ntp, ntpdate, $extra_packages
 
 d-i grub-installer/only_debian boolean true