mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-01 13:40:04 +00:00
abseil-cpp: Use SkipRecipe exception
SkipPackage exception is deprecated. Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -37,22 +37,22 @@ python () {
|
||||
if arch == "aarch64":
|
||||
tunes = d.getVar("TUNE_FEATURES")
|
||||
if not tunes:
|
||||
raise bb.parse.SkipPackage("%s-%s Needs support for crypto on armv8" % (pkgn, pkgv))
|
||||
raise bb.parse.SkipRecipe("%s-%s Needs support for crypto on armv8" % (pkgn, pkgv))
|
||||
return
|
||||
pkgn = d.getVar("PN")
|
||||
pkgv = d.getVar("PV")
|
||||
if "crypto" not in tunes:
|
||||
raise bb.parse.SkipPackage("%s-%s Needs support for crypto on armv8" % (pkgn, pkgv))
|
||||
raise bb.parse.SkipRecipe("%s-%s Needs support for crypto on armv8" % (pkgn, pkgv))
|
||||
|
||||
if arch == "x86_64":
|
||||
tunes = d.getVar("TUNE_FEATURES")
|
||||
if not tunes:
|
||||
raise bb.parse.SkipPackage("%s-%s Needs support for corei7 on x86_64" % (pkgn, pkgv))
|
||||
raise bb.parse.SkipRecipe("%s-%s Needs support for corei7 on x86_64" % (pkgn, pkgv))
|
||||
return
|
||||
pkgn = d.getVar("PN")
|
||||
pkgv = d.getVar("PV")
|
||||
if "corei7" not in tunes:
|
||||
raise bb.parse.SkipPackage("%s-%s Needs support for corei7 on x86_64" % (pkgn, pkgv))
|
||||
raise bb.parse.SkipRecipe("%s-%s Needs support for corei7 on x86_64" % (pkgn, pkgv))
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user