mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-05-30 12:30:14 +00:00
external-arm-toolchain: check for TCLIBC being glibc
The old TARGET_OS check doesn't work, as it only checks for uclibc and musl at the end, while TARGET_OS is usually "linux-musleabi", uclibc has been deprecated and new options like "newlib" and "baremetal" were added. Plus it only works for the target, but not SDK. Switch to simply checking for TCLIBC = glibc. Signed-off-by: Denys Dmytriyenko <denys@ti.com> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
committed by
Jon Mason
parent
5b37926c76
commit
ad51ecbe91
+2
-6
@@ -670,13 +670,9 @@ SUMMARY_libitm-staticdev = "GNU transactional memory support library - static de
|
|||||||
|
|
||||||
EAT_VER_MAIN ??= ""
|
EAT_VER_MAIN ??= ""
|
||||||
|
|
||||||
|
|
||||||
python () {
|
python () {
|
||||||
if not d.getVar("EAT_VER_MAIN", False):
|
if not d.getVar("EAT_VER_MAIN", False):
|
||||||
raise bb.parse.SkipPackage("External ARM toolchain not configured (EAT_VER_MAIN not set).")
|
raise bb.parse.SkipPackage("External ARM toolchain not configured (EAT_VER_MAIN not set).")
|
||||||
import re
|
if d.getVar('TCLIBC', True) != "glibc":
|
||||||
notglibc = (re.match('.*uclibc$', d.getVar('TARGET_OS', True)) != None) or (re.match('.*musl$', d.getVar('TARGET_OS', True)) != None)
|
raise bb.parse.SkipPackage("incompatible with %s" % d.getVar('TCLIBC', True))
|
||||||
if notglibc:
|
|
||||||
raise bb.parse.SkipPackage("incompatible with target %s" %
|
|
||||||
d.getVar('TARGET_OS', True))
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user