From: biao716.wang Date: Thu, 13 May 2021 01:20:31 +0000 (+0900) Subject: Add new parameter to support build with sub modules X-Git-Tag: submit/trunk/20210514.152330~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46ca346edebdf634b5aa7805f07c484915ed2ffe;p=tools%2Fdepanneur.git Add new parameter to support build with sub modules Change-Id: I21d7b7834f296a138fc420b88508fe7b6042d3e1 Signed-off-by: biao716.wang --- diff --git a/depanneur b/depanneur index 2c1dc45..d28624d 100755 --- a/depanneur +++ b/depanneur @@ -196,6 +196,7 @@ my $export_only = 0; # only export, not building my $tarfile = 0; # generate tar file for dependence & reverse dependence xml file my $preordered_list = ""; # List of ordered packages to support user defined build order calculation my $profiling = ""; # Reference profiling report location. If set reports will be generated +my $with_submodules = 0; #didn't export sub modules source code. GetOptions ( "repository=s" => \@repos, @@ -257,6 +258,7 @@ GetOptions ( "tarfile" => \$tarfile, "preordered-list=s" => \$preordered_list, "profiling=s" => \$profiling, + "with-submodules" => \$with_submodules, ); if ( $help ) { @@ -794,6 +796,10 @@ sub gbs_export { if ($thread_export == 1){ push @args, " 2>&1 | grep -v warning | grep -v Creating"; } + if ($with_submodules == 1) { + push @args, "--with-submodules"; + } + $cmd = join(" ", @args); return my_system($cmd); }