diff options
author | Jiankang Fan <jiankang.fan@samsung.com> | 2016-09-27 11:08:54 +0800 |
---|---|---|
committer | SoonKyu Park <sk7.park@samsung.com> | 2016-12-26 18:20:32 +0900 |
commit | d8618a3d37de8d8acede364f757e94836fed2e15 (patch) | |
tree | cf102118ca54f1fae836ef3f6068125fe29d1d23 /expanddeps | |
parent | 48024367fed2414fe633c325cf1481a81cb61063 (diff) | |
download | build-d8618a3d37de8d8acede364f757e94836fed2e15.tar.gz build-d8618a3d37de8d8acede364f757e94836fed2e15.tar.bz2 build-d8618a3d37de8d8acede364f757e94836fed2e15.zip |
Enable kvm build function
Change-Id: I1213c284637e6ddb6538f7047468835bb99b4e39
Diffstat (limited to 'expanddeps')
-rwxr-xr-x | expanddeps | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -29,7 +29,7 @@ use strict; use Build; use File::Basename; -my ($dist, $rpmdeps, $archs, $configdir, $useusedforbuild, $installonly, $noinstall, $usehigherdeps); +my ($dist, $rpmdeps, $archs, $configdir, $useusedforbuild, $installonly, $noinstall, $usehigherdeps, $isvm); $configdir = ($::ENV{'BUILD_DIR'} || '/usr/lib/build') . '/configs'; @@ -82,6 +82,11 @@ while (@ARGV) { $usehigherdeps = 1; next; } + if ($ARGV[0] eq '--vm') { + shift @ARGV; + $isvm = 1; + next; + } last; } @@ -410,6 +415,9 @@ Build::readdeps($cf, undef, \%repo); ####################################################################### +if ($isvm) { + push @packdeps, @{$cf->{'vminstall'}}; +} my @bdeps = Build::get_build($cf, $subpacks, @packdeps, @extradeps); if (!shift @bdeps) { @@ -435,5 +443,8 @@ if (@sysdeps) { # make sure all preinstalls are in bdeps; # XXX: also add vmdeps? @bdeps = Build::unify(@bdeps, Build::get_preinstalls($cf)); +if ($isvm) { + @bdeps = Build::unify(@bdeps, Build::get_vminstalls($cf)); +} print_rpmlist(@bdeps); |