mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
uboot-config.bbclass: Skip the package if no valid configuration is found
The ValidError case makes parsing fail even if the U-Boot variant is not in use for the specific machine and this is not desired. So instead of raising a parsing error we skip the package. (From OE-Core rev: d265216dab8146cda17b9ec6167346749896a505) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
8a33c5dd3b
commit
4259e6eb64
@@ -9,7 +9,7 @@
|
|||||||
#
|
#
|
||||||
# UBOOT_MACHINE = "config"
|
# UBOOT_MACHINE = "config"
|
||||||
#
|
#
|
||||||
# Copyright 2013 (C) O.S. Systems Software LTDA.
|
# Copyright 2013, 2014 (C) O.S. Systems Software LTDA.
|
||||||
|
|
||||||
python () {
|
python () {
|
||||||
ubootmachine = d.getVar("UBOOT_MACHINE", True)
|
ubootmachine = d.getVar("UBOOT_MACHINE", True)
|
||||||
@@ -55,5 +55,5 @@ python () {
|
|||||||
# Go out as we found a match!
|
# Go out as we found a match!
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
raise ValueError("UBOOT_CONFIG %s is not supported" % ubootconfig)
|
raise bb.parse.SkipPackage("UBOOT_CONFIG %s is not supported" % ubootconfig)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user