From: Jun Wang Date: Mon, 27 Nov 2017 03:04:49 +0000 (+0800) Subject: Add disable-debuginfo option which disable to generate debuginfo packages X-Git-Tag: submit/devel/20190730.074511~2^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eca003befa105680c3e4304c75cf076cb55d0714;p=tools%2Fdepanneur.git Add disable-debuginfo option which disable to generate debuginfo packages Change-Id: I956c177bc61956069ffcbcb1f2d686ce366063c9 --- diff --git a/depanneur b/depanneur index 790fd70..7a1923e 100755 --- a/depanneur +++ b/depanneur @@ -182,6 +182,7 @@ my $vmdiskfilesystem = ""; my $vminitrd = ""; my $vmkernel = ""; my $vmswapsize = ""; +my $disable_debuginfo = 0;#disable debuginfo when using build cmd GetOptions ( "repository=s" => \@repos, @@ -236,6 +237,7 @@ GetOptions ( "vm-initrd=s" => \$vminitrd, "vm-kernel=s" => \$vmkernel, "vm-swap=s" => \$vmswapsize, + "disable-debuginfo" => \$disable_debuginfo, ); if ( $help ) { @@ -296,6 +298,9 @@ Available options: --debug Debug output. + --disable-debuginfo + Disable debug info package to be created + "; exit(0); } @@ -1952,7 +1957,7 @@ sub build_package { $redirect = "> /dev/null 2>&1"; } - push @args, "--debug"; + push @args, "--debug" if ($disable_debuginfo != 1); push @args, "--root $scratch"; if ($noinit == 1 && -e "$scratch/not-ready") { error("build root is not ready , --noinit is not allowed");