Add new parameter to support build with sub modules 51/258251/1
authorbiao716.wang <biao716.wang@samsung.com>
Thu, 13 May 2021 01:20:31 +0000 (10:20 +0900)
committerbiao716.wang <biao716.wang@samsung.com>
Thu, 13 May 2021 01:20:31 +0000 (10:20 +0900)
Change-Id: I21d7b7834f296a138fc420b88508fe7b6042d3e1
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
depanneur

index 2c1dc45d4e5c398bdc8efedfc1f6284552acd39e..d28624d6010d4e738fdcdb419b0a1cac01d843c0 100755 (executable)
--- 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);
 }