diff mbox series

[v2,1/6] socket split: make socket paths configurable

Message ID 20170907122454.24183-1-christian.storm@siemens.com
State Accepted
Headers show
Series [v2,1/6] socket split: make socket paths configurable | expand

Commit Message

Storm, Christian Sept. 7, 2017, 12:24 p.m. UTC
Make socket paths configurable via config system.
Per default, the currently established paths are
used to maintain backwards compatibility.

Signed-off-by: Christian Storm <christian.storm@siemens.com>
---
 Kconfig | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

Comments

Stefano Babic Sept. 12, 2017, 9:26 a.m. UTC | #1
On 07/09/2017 14:24, Christian Storm wrote:
> Make socket paths configurable via config system.
> Per default, the currently established paths are
> used to maintain backwards compatibility.
> 
> Signed-off-by: Christian Storm <christian.storm@siemens.com>
> ---
>  Kconfig | 23 +++++++++++++++++++++++
>  1 file changed, 23 insertions(+)
> 
> diff --git a/Kconfig b/Kconfig
> index 07c394a..b77850f 100644
> --- a/Kconfig
> +++ b/Kconfig
> @@ -110,6 +110,29 @@ config SW_VERSIONS_FILE
>  	  but in some cases it can be required to do it. Having a check,
>  	  the risky-component is not always updated.
>  
> +menu "Socket Paths"
> +
> +config SOCKET_CTRL_PATH
> +	string "SWUpdate control socket path"
> +	default "/tmp/sockinstctrl"
> +	help
> +	  Path to SWUpdate's IPC socket.
> +
> +config SOCKET_PROGRESS_PATH
> +	string "SWUpdate progress socket path"
> +	default "/tmp/swupdateprog"
> +	help
> +	  Path to the socket progress information is sent to.
> +
> +config SOCKET_REMOTE_HANDLER_DIRECTORY
> +	string "SWUpdate remote handler socket directory"
> +	default "/tmp/"
> +	help
> +	  Directory where sockets to remote handler processes
> +	  are expected to be found.
> +
> +endmenu
> +
>  config MTD
>  	bool "MTD support"
>  	default y
> 

Applied (whole series) to -master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/Kconfig b/Kconfig
index 07c394a..b77850f 100644
--- a/Kconfig
+++ b/Kconfig
@@ -110,6 +110,29 @@  config SW_VERSIONS_FILE
 	  but in some cases it can be required to do it. Having a check,
 	  the risky-component is not always updated.
 
+menu "Socket Paths"
+
+config SOCKET_CTRL_PATH
+	string "SWUpdate control socket path"
+	default "/tmp/sockinstctrl"
+	help
+	  Path to SWUpdate's IPC socket.
+
+config SOCKET_PROGRESS_PATH
+	string "SWUpdate progress socket path"
+	default "/tmp/swupdateprog"
+	help
+	  Path to the socket progress information is sent to.
+
+config SOCKET_REMOTE_HANDLER_DIRECTORY
+	string "SWUpdate remote handler socket directory"
+	default "/tmp/"
+	help
+	  Directory where sockets to remote handler processes
+	  are expected to be found.
+
+endmenu
+
 config MTD
 	bool "MTD support"
 	default y