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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
#
# Copyright (C) 2007 OpenedHand Ltd.
#
SUMMARY = "Software development tools"
PR = "r9"
PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit packagegroup
#PACKAGEFUNCS =+ 'generate_sdk_pkgs'
RDEPENDS:packagegroup-core-sdk = "\
packagegroup-core-buildessential \
coreutils \
ccache \
diffutils \
perl-module-re \
perl-module-text-wrap \
findutils \
quilt \
less \
ldd \
file \
tcl"
SANITIZERS = "libasan-dev libubsan-dev"
SANITIZERS:arc = ""
SANITIZERS:microblaze = ""
SANITIZERS:mipsarch = ""
SANITIZERS:nios2 = ""
SANITIZERS:riscv64 = ""
SANITIZERS:riscv32 = ""
SANITIZERS:libc-musl = ""
RRECOMMENDS:packagegroup-core-sdk = "\
libgomp \
libgomp-dev \
${SANITIZERS}"
#python generate_sdk_pkgs () {
# poky_pkgs = read_pkgdata('packagegroup-core', d)['PACKAGES']
# pkgs = d.getVar('PACKAGES').split()
# for pkg in poky_pkgs.split():
# newpkg = pkg.replace('packagegroup-core', 'packagegroup-core-sdk')
#
# # for each of the task packages, add a corresponding sdk task
# pkgs.append(newpkg)
#
# # for each sdk task, take the rdepends of the non-sdk task, and turn
# # that into rrecommends upon the -dev versions of those, not unlike
# # the package depchain code
# spkgdata = read_subpkgdata(pkg, d)
#
# rdepends = explode_deps(spkgdata.get('RDEPENDS:%s' % pkg) or '')
# rreclist = []
#
# for depend in rdepends:
# split_depend = depend.split(' (')
# name = split_depend[0].strip()
# if packaged('%s-dev' % name, d):
# rreclist.append('%s-dev' % name)
# else:
# deppkgdata = read_subpkgdata(name, d)
# rdepends2 = explode_deps(deppkgdata.get('RDEPENDS:%s' % name) or '')
# for depend in rdepends2:
# split_depend = depend.split(' (')
# name = split_depend[0].strip()
# if packaged('%s-dev' % name, d):
# rreclist.append('%s-dev' % name)
#
# oldrrec = d.getVar('RRECOMMENDS:%s' % newpkg, False) or ''
# d.setVar('RRECOMMENDS:%s' % newpkg, oldrrec + ' ' + ' '.join(rreclist))
# # bb.note('RRECOMMENDS:%s = "%s"' % (newpkg, d.getVar('RRECOMMENDS:%s' % newpkg, False)))
#
# # bb.note('pkgs is %s' % pkgs)
# d.setVar('PACKAGES', ' '.join(pkgs))
#}
#
#PACKAGES_DYNAMIC += "^packagegroup-core-sdk-.*"
|