~grimler/Heimdall

62badfd2ee25e3778f8c3b74848c5df090c96bde — Henrik Grimler 3 months ago 419aa6a
heimdall: FlashAction: skip size check in tflash mode

If we are flashing to sdcard we do not have to care about size
limitations as given by PIT.
1 files changed, 2 insertions(+), 1 deletions(-)

M heimdall/source/FlashAction.cpp
M heimdall/source/FlashAction.cpp => heimdall/source/FlashAction.cpp +2 -1
@@ 486,7 486,8 @@ int FlashAction::Execute(int argc, char **argv)
	bool resume = arguments.GetArgument("resume") != nullptr;
	bool verbose = arguments.GetArgument("verbose") != nullptr;
	bool tflash = arguments.GetArgument("tflash") != nullptr;
	bool skipSizeCheck = arguments.GetArgument("skip-size-check") != nullptr;
	// If we are flashing to sdcard we can ignore size of partition in PIT
	bool skipSizeCheck = (arguments.GetArgument("skip-size-check") != nullptr) || tflash;

	if (arguments.GetArgument("stdout-errors") != nullptr)
		Interface::SetStdoutErrors(true);