From e934196ba459bdc350af29f2ddd7c7fd46e97675 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Fri, 15 Sep 2017 13:09:28 +0300 Subject: fix binutils-cross rebuild issue with mingw Upstream poky recipe incorrectly empties LDGOLD value for binutils-cross based on the sdkmingw32 override. This causes all the target packages to be build twice: first when SDKMACHINE is empty, and second when time when SDKMACHINE is set to mingw32. The actual value use here must be exactly what is used in meta/recipes-devtools/binutils/binutils.inc Change-Id: Id6107bae78cf57669b04cea6467dcf11d1f5c913 Reviewed-by: Mikko Gronoff --- recipes/binutils/binutils-cross_%.bbappend | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 recipes/binutils/binutils-cross_%.bbappend diff --git a/recipes/binutils/binutils-cross_%.bbappend b/recipes/binutils/binutils-cross_%.bbappend new file mode 100644 index 0000000..8a069ed --- /dev/null +++ b/recipes/binutils/binutils-cross_%.bbappend @@ -0,0 +1,30 @@ +############################################################################ +## +## Copyright (C) 2017 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$ +## +############################################################################ + +LDGOLD_sdkmingw32 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '--enable-gold --enable-ld=default --enable-threads', d)}" -- cgit v1.2.3-54-g00ecf