die "$_ ?";
}
}
+
+my ($dashdashdash) = grep { $ARGV[$_] eq '---' } 0..$#ARGV;
+my (@configure_args, @make_args);
+$dashdashdash //= -1;
+@configure_args = @ARGV[0..$dashdashdash-1];
+@make_args = @ARGV[$dashdashdash+1..$#ARGV];
+
# remaining arguments are passed as targets to "make"
+# if there is a ---, those before that are arguments to "configure"
builddirsprops();
ovmf=$ovmf_opt
fi
END
- $configure_prefix ./configure --sysconfdir=/etc \$xend \$ovmf $configure_suffix
+ $configure_prefix ./configure --sysconfdir=/etc \$xend \$ovmf $configure_suffix @configure_args
END
fi
END
END
buildcmd_stamped_logged(9000, 'xen', 'build', '',<<END,'');
- $make_prefix make $makeflags @ARGV
+ $make_prefix make $makeflags @make_args
END
if ($enable_xsm) {