diff options
Diffstat (limited to 'meta/classes/siteinfo.bbclass')
-rw-r--r-- | meta/classes/siteinfo.bbclass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes/siteinfo.bbclass b/meta/classes/siteinfo.bbclass index 50141a353f..03d4c4fd20 100644 --- a/meta/classes/siteinfo.bbclass +++ b/meta/classes/siteinfo.bbclass | |||
@@ -107,6 +107,14 @@ def siteinfo_data(d): | |||
107 | "x86_64-mingw32": "bit-64", | 107 | "x86_64-mingw32": "bit-64", |
108 | } | 108 | } |
109 | 109 | ||
110 | # Add in any extra user supplied data which may come from a BSP layer, removing the | ||
111 | # need to always change this class directly | ||
112 | extra_siteinfo = (d.getVar("SITEINFO_EXTRA_DATAFUNCS", True) or "").split() | ||
113 | for m in extra_siteinfo: | ||
114 | call = m + "(archinfo, osinfo, targetinfo, d)" | ||
115 | locs = { "archinfo" : archinfo, "osinfo" : osinfo, "targetinfo" : targetinfo, "d" : d} | ||
116 | archinfo, osinfo, targetinfo = bb.utils.better_eval(call, locs) | ||
117 | |||
110 | hostarch = d.getVar("HOST_ARCH", True) | 118 | hostarch = d.getVar("HOST_ARCH", True) |
111 | hostos = d.getVar("HOST_OS", True) | 119 | hostos = d.getVar("HOST_OS", True) |
112 | target = "%s-%s" % (hostarch, hostos) | 120 | target = "%s-%s" % (hostarch, hostos) |