summaryrefslogtreecommitdiffstats
path: root/meta/classes/webos_arch_indep.bbclass
blob: b6d450ca65aca550bd636ad00bd0d5b12b49f25c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)
}