diff options
Diffstat (limited to 'meta/classes/webos_arch_indep.bbclass')
-rw-r--r-- | meta/classes/webos_arch_indep.bbclass | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/classes/webos_arch_indep.bbclass b/meta/classes/webos_arch_indep.bbclass new file mode 100644 index 0000000000..b6d450ca65 --- /dev/null +++ b/meta/classes/webos_arch_indep.bbclass @@ -0,0 +1,17 @@ +# Copyright (c) 2012-2014 LG Electronics, Inc. +# +# webos_arch_indep +# +# This class is to be inherited by the recipe for every component that is CPU +# architecture independent. +# + +inherit allarch + +python () { + if bb.data.inherits_class('webos_machine_dep', d) or bb.data.inherits_class('webos_machine_impl_dep', d): + pa = d.getVar('PACKAGE_ARCH', True) + if pa == "all": + pn = d.getVar('PN', True) + bb.error("%s: You should inherit webos_machine_dep or webos_machine_impl_dep _after_ webos_arch_indep to set PACKAGE_ARCH to MACHINE_ARCH" % pn) +} |