Patchwork soc-family.inc: to be included in machine.conf to add SOC_FAMILY to MACHINEOVERRIDE

login
register
mail settings
Submitter Denys Dmytriyenko
Date March 4, 2012, 6:24 a.m.
Message ID <1330842274-13635-1-git-send-email-denis@denix.org>
Download mbox | patch
Permalink /patch/22663/
State Accepted
Commit 641cdbc7ee0186053dd541e0dd5fb7b03b1c10d1
Headers show

Comments

Denys Dmytriyenko - March 4, 2012, 6:24 a.m.
From: Denys Dmytriyenko <denys@ti.com>

Add a soc-family.inc file that can be included in a machine.conf to enable
the use of SOC_FAMILY in MACHINEOVERRIDE, which could be useful to group
multiple machines with the same common base. Some examples can be seen in
meta-ti BSP layer.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
 meta/conf/machine/include/soc-family.inc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
 create mode 100644 meta/conf/machine/include/soc-family.inc
Richard Purdie - March 4, 2012, 12:49 p.m.
On Sun, 2012-03-04 at 01:24 -0500, Denys Dmytriyenko wrote:
> From: Denys Dmytriyenko <denys@ti.com>
> 
> Add a soc-family.inc file that can be included in a machine.conf to enable
> the use of SOC_FAMILY in MACHINEOVERRIDE, which could be useful to group
> multiple machines with the same common base. Some examples can be seen in
> meta-ti BSP layer.
> 
> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
> ---
>  meta/conf/machine/include/soc-family.inc |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>  create mode 100644 meta/conf/machine/include/soc-family.inc

Merged to maser, thanks.

Richard

Patch

diff --git a/meta/conf/machine/include/soc-family.inc b/meta/conf/machine/include/soc-family.inc
new file mode 100644
index 0000000..612039c
--- /dev/null
+++ b/meta/conf/machine/include/soc-family.inc
@@ -0,0 +1,2 @@ 
+# Add SOC_FAMILY to machine overrides so we get access to e.g. 'omap3' and 'ti335x'
+MACHINEOVERRIDES .= "${@['', ':${SOC_FAMILY}']['${SOC_FAMILY}' != '']}"