mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
Rather than just use d.getVar(X), use the more explict d.getVar(X, False) since at some point in the future, having the default of expansion would be nice. This is the first step towards that. This patch was mostly made using the command: sed -e 's:\(getVar([^,()]*\)\s*):\1, False):g' -i `grep -ril getVar *` (From OE-Core rev: ab7c1d239b122c8e549e8112c88fd46c9e2b061b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
83 lines
2.4 KiB
BlitzBasic
83 lines
2.4 KiB
BlitzBasic
#
|
|
# Copyright (C) 2007 OpenedHand Ltd.
|
|
#
|
|
|
|
SUMMARY = "Software development tools"
|
|
LICENSE = "MIT"
|
|
PR = "r9"
|
|
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
|
|
inherit packagegroup
|
|
|
|
#PACKAGEFUNCS =+ 'generate_sdk_pkgs'
|
|
|
|
RDEPENDS_packagegroup-core-sdk = "\
|
|
packagegroup-core-buildessential \
|
|
coreutils \
|
|
ccache \
|
|
diffutils \
|
|
intltool \
|
|
perl-module-re \
|
|
perl-module-text-wrap \
|
|
findutils \
|
|
quilt \
|
|
less \
|
|
ldd \
|
|
file \
|
|
tcl"
|
|
|
|
SANITIZERS = "libasan-dev libubsan-dev"
|
|
SANITIZERS_aarch64 = ""
|
|
SANITIZERS_mips = ""
|
|
SANITIZERS_mips64 = ""
|
|
SANITIZERS_mips64n32 = ""
|
|
SANITIZERS_powerpc64 = ""
|
|
SANITIZERS_sparc = ""
|
|
|
|
RRECOMMENDS_packagegroup-core-sdk = "\
|
|
libgomp \
|
|
libgomp-dev \
|
|
${SANITIZERS}"
|
|
|
|
#python generate_sdk_pkgs () {
|
|
# poky_pkgs = read_pkgdata('packagegroup-core', d)['PACKAGES']
|
|
# pkgs = d.getVar('PACKAGES', True).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-.*"
|