* [PATCH 1/3] globalvar: add missing static inline stubs
@ 2016-05-26 10:09 Lucas Stach
2016-05-26 10:09 ` [PATCH 2/3] nvvar: " Lucas Stach
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Lucas Stach @ 2016-05-26 10:09 UTC (permalink / raw)
To: barebox
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
include/globalvar.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/globalvar.h b/include/globalvar.h
index d0c79c07a818..e94e9ed6ee88 100644
--- a/include/globalvar.h
+++ b/include/globalvar.h
@@ -137,6 +137,10 @@ static inline int globalvar_add(const char *name,
return 0;
}
+static inline void globalvar_remove(const char *name) {}
+
+static inline void globalvar_print(void) {}
+
static inline char *globalvar_get_match(const char *match, const char *separator)
{
return NULL;
--
2.8.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/3] nvvar: add missing static inline stubs
2016-05-26 10:09 [PATCH 1/3] globalvar: add missing static inline stubs Lucas Stach
@ 2016-05-26 10:09 ` Lucas Stach
2016-05-26 10:09 ` [PATCH 3/3] common: select dependencies for defaultenv-2 Lucas Stach
2016-05-30 5:04 ` [PATCH 1/3] globalvar: add missing static inline stubs Sascha Hauer
2 siblings, 0 replies; 4+ messages in thread
From: Lucas Stach @ 2016-05-26 10:09 UTC (permalink / raw)
To: barebox
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
include/globalvar.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/include/globalvar.h b/include/globalvar.h
index e94e9ed6ee88..5dfa3714093e 100644
--- a/include/globalvar.h
+++ b/include/globalvar.h
@@ -153,6 +153,18 @@ static inline int nvvar_load(void)
return 0;
}
+static inline void nvvar_print(void) {}
+
+static inline int nvvar_add(const char *name, const char *value)
+{
+ return 0;
+}
+
+static inline int nvvar_remove(const char *name)
+{
+ return 0;
+}
+
#endif
#endif /* __GLOBALVAR_H */
--
2.8.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 3/3] common: select dependencies for defaultenv-2
2016-05-26 10:09 [PATCH 1/3] globalvar: add missing static inline stubs Lucas Stach
2016-05-26 10:09 ` [PATCH 2/3] nvvar: " Lucas Stach
@ 2016-05-26 10:09 ` Lucas Stach
2016-05-30 5:04 ` [PATCH 1/3] globalvar: add missing static inline stubs Sascha Hauer
2 siblings, 0 replies; 4+ messages in thread
From: Lucas Stach @ 2016-05-26 10:09 UTC (permalink / raw)
To: barebox
Now that GLOBALVAR and NVVAR are user visible options they need
to be selected when selecting the global and nv command support
which uses them.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
common/Kconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/common/Kconfig b/common/Kconfig
index 928db0a159e1..a8c1855aab17 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -740,14 +740,17 @@ config DEFAULT_ENVIRONMENT_GENERIC_NEW
bool
depends on DEFAULT_ENVIRONMENT
depends on SHELL_HUSH
+ select COMMAND_SUPPORT
select CMD_GETOPT
select GLOB
select GLOB_SORT
+ select GLOBALVAR
select CMD_GLOBAL
select CMD_AUTOMOUNT
select CMD_BASENAME
select CMD_READLINK
select CMD_DIRNAME
+ select NVVAR
select CMD_NV
select FLEXIBLE_BOOTARGS
select CMD_BOOT
--
2.8.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3] globalvar: add missing static inline stubs
2016-05-26 10:09 [PATCH 1/3] globalvar: add missing static inline stubs Lucas Stach
2016-05-26 10:09 ` [PATCH 2/3] nvvar: " Lucas Stach
2016-05-26 10:09 ` [PATCH 3/3] common: select dependencies for defaultenv-2 Lucas Stach
@ 2016-05-30 5:04 ` Sascha Hauer
2 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2016-05-30 5:04 UTC (permalink / raw)
To: Lucas Stach; +Cc: barebox
On Thu, May 26, 2016 at 12:09:11PM +0200, Lucas Stach wrote:
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
> include/globalvar.h | 4 ++++
> 1 file changed, 4 insertions(+)
Applied, thanks
Sascha
>
> diff --git a/include/globalvar.h b/include/globalvar.h
> index d0c79c07a818..e94e9ed6ee88 100644
> --- a/include/globalvar.h
> +++ b/include/globalvar.h
> @@ -137,6 +137,10 @@ static inline int globalvar_add(const char *name,
> return 0;
> }
>
> +static inline void globalvar_remove(const char *name) {}
> +
> +static inline void globalvar_print(void) {}
> +
> static inline char *globalvar_get_match(const char *match, const char *separator)
> {
> return NULL;
> --
> 2.8.1
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-05-30 5:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-26 10:09 [PATCH 1/3] globalvar: add missing static inline stubs Lucas Stach
2016-05-26 10:09 ` [PATCH 2/3] nvvar: " Lucas Stach
2016-05-26 10:09 ` [PATCH 3/3] common: select dependencies for defaultenv-2 Lucas Stach
2016-05-30 5:04 ` [PATCH 1/3] globalvar: add missing static inline stubs Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox