diff options
author | Sami Nurmenniemi <sami.nurmenniemi@qt.io> | 2018-05-31 14:43:01 +0300 |
---|---|---|
committer | Sami Nurmenniemi <sami.nurmenniemi@qt.io> | 2018-06-04 10:42:59 +0000 |
commit | c6b58b604465b531c3d188f4a251ef18fed3e656 (patch) | |
tree | ab517643a88e4ee6a7b141e0902d7fa82e49df45 | |
parent | f891a965c82f8e0dafb60222ec36d06dcfe1eb1e (diff) |
Add gcc-sanitizer libraries ("address" and "undefined behavior")
Change-Id: Ia916859abd601a7a0215acfadb71b4fe1d91358f
Reviewed-by: Kari Oikarinen <kari.oikarinen@qt.io>
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
3 files changed, 35 insertions, 0 deletions
diff --git a/meta-boot2qt-distro/recipes-core/packagegroups/packagegroup-b2qt-embedded-tools.bb b/meta-boot2qt-distro/recipes-core/packagegroups/packagegroup-b2qt-embedded-tools.bb index 7644f6ff..4a5fa39a 100644 --- a/meta-boot2qt-distro/recipes-core/packagegroups/packagegroup-b2qt-embedded-tools.bb +++ b/meta-boot2qt-distro/recipes-core/packagegroups/packagegroup-b2qt-embedded-tools.bb @@ -38,6 +38,7 @@ RDEPENDS_${PN} = "\ binutils \ binutils-symlinks \ connman-client \ + gcc-sanitizers \ htop \ i2c-tools \ iproute2 \ diff --git a/meta-boot2qt-distro/recipes-devtools/gcc/gcc-sanitizers_%.bbappend b/meta-boot2qt-distro/recipes-devtools/gcc/gcc-sanitizers_%.bbappend new file mode 100644 index 00000000..bbbffe3f --- /dev/null +++ b/meta-boot2qt-distro/recipes-devtools/gcc/gcc-sanitizers_%.bbappend @@ -0,0 +1,33 @@ +############################################################################ +## +## Copyright (C) 2018 The Qt Company Ltd. +## Contact: https://www.qt.io/licensing/ +## +## This file is part of the Boot to Qt meta layer. +## +## $QT_BEGIN_LICENSE:GPL$ +## Commercial License Usage +## Licensees holding valid commercial Qt licenses may use this file in +## accordance with the commercial license agreement provided with the +## Software or, alternatively, in accordance with the terms contained in +## a written agreement between you and The Qt Company. For licensing terms +## and conditions see https://www.qt.io/terms-conditions. For further +## information use the contact form at https://www.qt.io/contact-us. +## +## GNU General Public License Usage +## Alternatively, this file may be used under the terms of the GNU +## General Public License version 3 or (at your option) any later version +## approved by the KDE Free Qt Foundation. The licenses are as published by +## the Free Software Foundation and appearing in the file LICENSE.GPL3 +## included in the packaging of this file. Please review the following +## information to ensure the GNU General Public License requirements will +## be met: https://www.gnu.org/licenses/gpl-3.0.html. +## +## $QT_END_LICENSE$ +## +############################################################################ + +# aarch64 is compatible since GCC 5.1. See poky/master commit +# b46caed47b0f74520cd9280bbe3e3676d9a19046 +RRECOMMENDS_${PN}_append_aarch64 = " liblsan libtsan" +COMPATIBLE_HOST = '(x86_64|i.86|powerpc|arm|aarch64).*-linux' diff --git a/meta-boot2qt-distro/recipes-qt/packagegroups/packagegroup-b2qt-embedded-qt5-toolchain-target.bb b/meta-boot2qt-distro/recipes-qt/packagegroups/packagegroup-b2qt-embedded-qt5-toolchain-target.bb index 83b075b3..0fa57e16 100644 --- a/meta-boot2qt-distro/recipes-qt/packagegroups/packagegroup-b2qt-embedded-qt5-toolchain-target.bb +++ b/meta-boot2qt-distro/recipes-qt/packagegroups/packagegroup-b2qt-embedded-qt5-toolchain-target.bb @@ -40,6 +40,7 @@ MACHINE_EXTRA_INSTALL_SDK ?= "" RDEPENDS_${PN} += " \ ${MACHINE_EXTRA_INSTALL_SDK} \ packagegroup-core-standalone-sdk-target \ + gcc-sanitizers \ \ qt3d-dev \ qtbase-dev \ |