From: Przemyslaw Marczak
Date: Thu, 12 Jun 2014 08:20:59 +0000 (+0200)
Subject: thor:cmd: get the default command arguments from environment
X-Git-Tag: submit/tizen/20160419.084959~12
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a93c80f937f533caf7b4c8b5406a9782520f1e35;p=profile%2Fcommon%2Fplatform%2Fkernel%2Fu-boot-artik.git
thor:cmd: get the default command arguments from environment
This change adds support to getting the default DFU cmd line
arguments from the environment.
DFU and THOR uses the same command line arguments,
so the DFU command environment setup can be used also with THOR.
Change-Id: I2e0984c909147c13191f6d6646d094c9f02c392a
Signed-off-by: Przemyslaw Marczak
---
diff --git a/common/cmd_thordown.c b/common/cmd_thordown.c
index f0e50436d..7e65a32d8 100644
--- a/common/cmd_thordown.c
+++ b/common/cmd_thordown.c
@@ -76,6 +76,12 @@ exit:
board_usb_cleanup(controller_index, USB_INIT_DEVICE);
done:
dfu_free_entities();
+bad_args:
+ if (argc == 1) {
+ free(usb_controller);
+ free(interface);
+ free(devstring);
+ }
bad_args:
if (argc == 1) {