Return-Path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by mail.openembedded.org (Postfix) with ESMTP id 78F1B601D3 for ; Tue, 1 Dec 2015 16:54:26 +0000 (UTC) Received: by wmec201 with SMTP id c201so22495868wme.1 for ; Tue, 01 Dec 2015 08:54:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=XP1HJsntWeUtgevf58kU8OC+yb/gIpAB4qecpso1jZc=; b=zXQ0twc6AD5ZbShqU49tGmY8IbZVRyPtuKdtiggfZhoh7pDZbk4EW8gpleSVIqkaYi oflt9C8XOFZ5GdDwlze21B0ktP3h4dzHKMLXFggvuC5Nj2vosu3VK1i/SXZEVyHjQ0tB +VGFMc14Yqq8gQwMKeAkgHkUjKRX6heeJ0iXii7h9GgB/g5r/7sTZ9y0pBVwl1qEgGto MZxIhN14cdYdRLg/c77Te36EO263VAhMo43nYWPze2R6l6xajmLah9Dq+9L2R7RebTvf 6XKK3eR8dTy4MF/vMVDCyrLw9rwhBPoJfUMDu/XW7Ac42UFH6vAf5xbkJGaVkqno01lJ ge0Q== X-Received: by 10.194.205.103 with SMTP id lf7mr67888997wjc.147.1448988866550; Tue, 01 Dec 2015 08:54:26 -0800 (PST) Received: from localhost (ip-86-49-34-37.net.upcbroadband.cz. [86.49.34.37]) by smtp.gmail.com with ESMTPSA id u4sm52187456wjz.4.2015.12.01.08.54.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Dec 2015 08:54:25 -0800 (PST) From: Martin Jansa X-Google-Original-From: Martin Jansa To: openembedded-core@lists.openembedded.org Date: Tue, 1 Dec 2015 17:55:21 +0100 Message-Id: <1448988921-25884-1-git-send-email-Martin.Jansa@gmail.com> X-Mailer: git-send-email 2.6.3 Cc: Mike Crowe Subject: [PATCH][fido] allarch: Force TARGET_*FLAGS variable values X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2015 16:54:28 -0000 From: Mike Crowe TARGET_CPPFLAGS, TARGET_CFLAGS, TARGET_CPPFLAGS and TARGET_LDFLAGS may differ between MACHINEs. Since they are exported they affect task hashes even if unused which leads to multiple variants of allarch packages existing in sstate and bouncing in the sysroot when switching between MACHINEs. allarch packages shouldn't be using these variables anyway, so let's ensure they have a fixed value in order to avoid this problem. (Compare with 05a70ac30b37cab0952f1b9df501993a9dec70da and 14f4d016fef9d660da1e7e91aec4a0e807de59ab.) Signed-off-by: Mike Crowe Signed-off-by: Ross Burton --- meta/classes/allarch.bbclass | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/classes/allarch.bbclass b/meta/classes/allarch.bbclass index 4bc9927..6f63f9d 100644 --- a/meta/classes/allarch.bbclass +++ b/meta/classes/allarch.bbclass @@ -27,6 +27,10 @@ python () { d.setVar("PACKAGE_EXTRA_ARCHS", "") d.setVar("SDK_ARCH", "none") d.setVar("SDK_CC_ARCH", "none") + d.setVar("TARGET_CPPFLAGS", "none") + d.setVar("TARGET_CFLAGS", "none") + d.setVar("TARGET_CXXFLAGS", "none") + d.setVar("TARGET_LDFLAGS", "none") # Avoid this being unnecessarily different due to nuances of # the target machine that aren't important for "all" arch -- 2.6.3