Home Home > GIT Browse > packaging
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2019-08-09 18:14:50 +0200
committerMichal Suchanek <msuchanek@suse.de>2019-08-09 18:14:50 +0200
commit7c057c840fe6de4e7a6445c48c92b0cf60e8a42b (patch)
treef9823767763a1ce4f9ece5788cecc2896bc3f41a
parentfd135a69ed92345aaf0551eecb2570c20838e4e3 (diff)
rpm/mkspec: Make building DTBs optional.
-rwxr-xr-xrpm/mkspec7
1 files changed, 6 insertions, 1 deletions
diff --git a/rpm/mkspec b/rpm/mkspec
index 23b5051628..6bb7cce070 100755
--- a/rpm/mkspec
+++ b/rpm/mkspec
@@ -38,9 +38,14 @@ my %vars = parse_config_sh();
my ($srcversion, $variant, $vanilla_only) =
($vars{'SRCVERSION'}, $vars{'VARIANT'}, $vars{'VANILLA_ONLY'});
my $compress_modules = 'none';
+my $build_dtbs = ();
if (defined($vars{'COMPRESS_MODULES'})) {
$compress_modules = $vars{'COMPRESS_MODULES'};
}
+if (defined($vars{'BUILD_DTBS'})) {
+ $build_dtbs = $vars{'BUILD_DTBS'};
+ $build_dtbs = () if $build_dtbs =~ /^(0+|no|false)$/i;
+}
$vanilla_only ||= "0";
if (!defined ($rpmrelease)) {
$rpmrelease = $vars{'RELEASE'} || 0;
@@ -209,7 +214,7 @@ if (!$variant) {
}
# dtb-*.spec
-if (!$variant) {
+if (!$variant && $build_dtbs) {
do_spec('dtb', "dtb.spec.in", %macros);
print "./mkspec-dtb $all_archs\n";
system("./mkspec-dtb $all_archs\n");