aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/meta/dummy-sdk-package.inc
blob: 4d653706b13eb4c059a5a80deeb6cdf60441bcad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
SUMMARY = "Dummy packages which handle excluding packages from the sdk, e.g. ensuring perl is excluded from buildtools"
LICENSE = "MIT"

PACKAGE_ARCH = "all"

inherit allarch

python() {
    # Put the package somewhere separate to ensure it's never used except
    # when we want it
    # (note that we have to do this in anonymous python here to avoid
    # allarch.bbclass disabling itself)
    d.setVar('PACKAGE_ARCH', '${DUMMYARCH}')
}

ALLOW_EMPTY_${PN} = "1"

PR[vardeps] += "DUMMYPROVIDES"

python populate_packages_prepend() {
    p = d.getVar("PN")
    d.appendVar("RPROVIDES_%s" % p, "${DUMMYPROVIDES}")
    d.appendVar("RCONFLICTS_%s" % p, "${DUMMYPROVIDES}")
    d.appendVar("RREPLACES_%s" % p, "${DUMMYPROVIDES}")
}