[OE-core] [RFC 1/2] os-release: add new operating system identification recipe

2013-12-13 Thread Christopher Larson
From: Christopher Larson chris_lar...@mentor.com This is needed by systemd, among other useful applications. All fields are metadata driven, and initial values come from our DISTRO variables. Signed-off-by: Christopher Larson kerg...@gmail.com --- meta/recipes-core/os-release/os-release.bb | 42

Re: [OE-core] [RFC 1/2] os-release: add new operating system identification recipe

2013-12-13 Thread Martin Jansa
On Fri, Dec 13, 2013 at 07:56:37AM -0700, Christopher Larson wrote: From: Christopher Larson chris_lar...@mentor.com This is needed by systemd, among other useful applications. All fields are metadata driven, and initial values come from our DISTRO variables. Signed-off-by: Christopher

Re: [OE-core] [RFC 1/2] os-release: add new operating system identification recipe

2013-12-13 Thread Chris Larson
On Fri, Dec 13, 2013 at 8:08 AM, Martin Jansa martin.ja...@gmail.comwrote: +do_compile () { +for field in ${OS_RELEASE_FIELDS}; do +if eval test -n \\$$field\; then +eval printf \%s=%s\n\ \\$field\ \\$$field\ +fi +done os-release +}

Re: [OE-core] [RFC 1/2] os-release: add new operating system identification recipe

2013-12-13 Thread Chris Larson
On Fri, Dec 13, 2013 at 8:12 AM, Chris Larson kerg...@gmail.com wrote: On Fri, Dec 13, 2013 at 8:08 AM, Martin Jansa martin.ja...@gmail.comwrote: +do_compile () { +for field in ${OS_RELEASE_FIELDS}; do +if eval test -n \\$$field\; then +eval printf \%s=%s\n\

Re: [OE-core] [RFC 1/2] os-release: add new operating system identification recipe

2013-12-13 Thread Mark Hatle
On 12/13/13, 8:56 AM, Christopher Larson wrote: From: Christopher Larson chris_lar...@mentor.com This is needed by systemd, among other useful applications. All fields are metadata driven, and initial values come from our DISTRO variables. I thought there was a part of the lsb-release recipe

Re: [OE-core] [RFC 1/2] os-release: add new operating system identification recipe

2013-12-13 Thread Chris Larson
On Fri, Dec 13, 2013 at 8:56 AM, Mark Hatle mark.ha...@windriver.comwrote: On 12/13/13, 8:56 AM, Christopher Larson wrote: From: Christopher Larson chris_lar...@mentor.com This is needed by systemd, among other useful applications. All fields are metadata driven, and initial values come

Re: [OE-core] [RFC 1/2] os-release: add new operating system identification recipe

2013-12-13 Thread Enrico Scholz
Christopher Larson kergoth-re5jqeeqqe8avxtiumw...@public.gmane.org writes: +if eval test -n \\$$field\; then +eval printf \%s=%s\n\ \\$field\ \\$$field\ I think, this can be expressed without the complicated quoting as eval val=\$$field if test -n

Re: [OE-core] [RFC 1/2] os-release: add new operating system identification recipe

2013-12-13 Thread Koen Kooi
Op 13 dec. 2013, om 17:14 heeft Chris Larson clar...@kergoth.com het volgende geschreven: On Fri, Dec 13, 2013 at 8:56 AM, Mark Hatle mark.ha...@windriver.com wrote: On 12/13/13, 8:56 AM, Christopher Larson wrote: From: Christopher Larson chris_lar...@mentor.com This is needed by

Re: [OE-core] [RFC 1/2] os-release: add new operating system identification recipe

2013-12-13 Thread Koen Kooi
Op 13 dec. 2013, om 15:56 heeft Christopher Larson kerg...@gmail.com het volgende geschreven: From: Christopher Larson chris_lar...@mentor.com This is needed by systemd, among other useful applications. All fields are metadata driven, and initial values come from our DISTRO variables.

Re: [OE-core] [RFC 1/2] os-release: add new operating system identification recipe

2013-12-13 Thread Martin Jansa
On Fri, Dec 13, 2013 at 08:12:51AM -0700, Chris Larson wrote: On Fri, Dec 13, 2013 at 8:08 AM, Martin Jansa martin.ja...@gmail.comwrote: +do_compile () { +for field in ${OS_RELEASE_FIELDS}; do +if eval test -n \\$$field\; then +eval printf \%s=%s\n\ \\$field\