From patchwork Mon Dec 2 18:26:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 180640 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp351195ile; Mon, 2 Dec 2019 10:26:30 -0800 (PST) X-Google-Smtp-Source: APXvYqzFtY7VhuhCeP+UnBa8ggGwIKHKUyd5S0j4eVigHs/fPKsw5r0EJLcyIGmhc2MCBtNMWKym X-Received: by 2002:a63:5f45:: with SMTP id t66mr458030pgb.198.1575311189971; Mon, 02 Dec 2019 10:26:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575311189; cv=none; d=google.com; s=arc-20160816; b=Y0sxoDkSZVV5p0iJA/JdBlzDlpCxrJH3xE7LJNaE43IXSkwhwRDncP/bpppwQNYoIn Ixta9oPl5OiCIzWWfrL/Y52ZLmjtPuvXHF9pgCGd7VQjjYij0SgWTD6JdpU1NP9QbZxV D92nQFjw/k701jaHW6g741Mx2gwkrr9bzwWCg67YFcS60mgQqJ9zrHol8I0zrAphfCpM rtKw+/BP5r6AxSTMCfotbHRF0ppYM5cN/bpfZ/iuuzlfNsB01UD1NPf2XM0WNgfTei/+ T1lmBw0vz6OytdxRUdLqiUmx+nC/IFKGwzfpRCkOJyVakWwxN1j7PuiXoSY48VcFQbAQ uqcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=vb2b0HZK3Tvoe73jzYzOREqQoQ5Te53dcQ5c3oK8opg=; b=IKS/uuYBoVGhUqUvpvHFCNUmHdjujs8GcAmnjp1k+40SJbUA9sPEHWDjf8YRiV31bd 4ao2Fkg9wjXi4mszhz/3+KfPCjUwHk/jglZ0P9jEFjhl3+KNtGYd7xFngki6UHQ6OIUu LV4DoxJCOobAkbyGZhCpZLZGbf8dBjf+Z3l1GsRR79Xs0FJh63xxZiC2aWheUgiMFEk+ BehwQLDt3uqlCz+7X7v7TVO9UDmoy18hXUxaAelv1LIFN/ZtMJt+5wDHwVut1oGzA8YK wYF+PBVdVBtX4FidbJzczdN6pZUrKXW/pSfEcLE5nFt9SghdXrPhUO3Z0eg/eJlVnHBc K0Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="ANg/ChBn"; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id j10si405655pgi.235.2019.12.02.10.26.29; Mon, 02 Dec 2019 10:26:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="ANg/ChBn"; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 70A127F666; Mon, 2 Dec 2019 18:26:26 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by mail.openembedded.org (Postfix) with ESMTP id 54F697F65C for ; Mon, 2 Dec 2019 18:26:24 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id y10so44038pfm.13 for ; Mon, 02 Dec 2019 10:26:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LAcxEA8m22o6bG9ErEYfVqX4Xez/BhG/ZxP7KUVmvo8=; b=ANg/ChBnp4lXzeXur+yGehYbUvcbzKfRJFXbJV/0FIahjr9h/AO9aOyLtF5ANM71T7 Zz/Ze57hfsfyI7hEMRKj7Kwt34a4yYUAhuUhgD8iWA6YD5ZeppjmtD+voXl+BwdTyV2T bBQQFaaafsKESYByR7g5QUTdgfhY0NuQXMrUHnLUwSg3BsxpXMYK+uWiCQh709mLTyg1 7lo29TsSGCrB0p24J7TYTiVrXpZ0MLefgo7XSlKu+i+FAIjCpaFeJnPScQlaPRRlj3+D F/A+3aik1furlxkhySISaZeiCGRWH12gR4Mk5yBrmTqWgNjaSMyheapRmJrmaIvJ7XTE S8Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LAcxEA8m22o6bG9ErEYfVqX4Xez/BhG/ZxP7KUVmvo8=; b=k0QjJGPdh6egSAOHIdQ7S5i6viLiybULC1lxFkkawL5vBY/2fyhclXgoic4qjPNOF0 SzJ64VCcOVx38i+WlkTwyLj2IWWktdSevF9K6Mx21gw3vks1mUHK7v6pFUA8EGiAlx71 gmbAAmwXEMzgSeASo6DJ47ekuQbQBqHD0Pq27LSa+wjx0f61NZZbh0ZsiAAYUWL1iEGX yM4e4N+9sWFl41aT9StGtmtk3sDXTTytT0AxQEeewEtk95whBkuH+x/ZzLnqdYSIHWyH ++73ecVS6MxWmsAmpfidhQw5qIZrYQq+Hnj1anuKJHlocJmHe/VUt7ipNXTlqUVFKcFU jVuA== X-Gm-Message-State: APjAAAX0juPqbA5SqRlSP3UJ53CiwtplkO9hh8oSINgWmS+vQHKJGHfF 5L+ag8iukXa2oOQQ4ZJ6MutcZ3X8iA8= X-Received: by 2002:a65:628f:: with SMTP id f15mr437704pgv.91.1575311184754; Mon, 02 Dec 2019 10:26:24 -0800 (PST) Received: from apollo.localdomain ([2601:646:8500:1c20:55f2:e19b:8d5e:a884]) by smtp.gmail.com with ESMTPSA id u18sm289868pgi.44.2019.12.02.10.26.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2019 10:26:24 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Mon, 2 Dec 2019 10:26:13 -0800 Message-Id: <20191202182613.3380457-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH] go: Reset unneeded GOARCH variables for native recipe 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org These variables depend on TUNE_FEATURES variable and that creeps into dependencies for native as well as a result, which means go-native gets recompiled everytime machine/arch is changed. Fixes sstate differences found e.g. basehash changed from 600fb6be571fa4853232a7fed78945ee19b324e54b1b94cff93ef472b6290103 to 994de861190a56064d3e186d9c411152127e230bf2f77b17e59b2c5932a41249 List of dependencies for variable TUNE_FEATURES changed from '{'TUNE_FEATURES_tune-core2-32', 'DEFAULTTUNE'}' to '{'TUNE_FEATURES_tune-armv7vethf-neon', 'DEFAULTTUNE'}' changed items: {'TUNE_FEATURES_tune-core2-32', 'TUNE_FEATURES_tune-armv7vethf-neon'} Signed-off-by: Khem Raj --- meta/recipes-devtools/go/go-common.inc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) -- 2.24.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/go/go-common.inc b/meta/recipes-devtools/go/go-common.inc index f18d928c70..8e4dd137a0 100644 --- a/meta/recipes-devtools/go/go-common.inc +++ b/meta/recipes-devtools/go/go-common.inc @@ -37,6 +37,30 @@ export GO386 ?= "${TARGET_GO386}" export GOMIPS ?= "${TARGET_GOMIPS}" export GOROOT_FINAL ?= "${libdir}/go" +GOARM[export] = "1" +GOARM_class-native = "" +GOARM_class-native[export] = "0" + +GO386[export] = "1" +GO386_class-native = "" +GO386_class-native[export] = "0" + +GOMIPS[export] = "1" +GOMIPS_class-native = "" +GOMIPS_class-native[export] = "0" + +HOST_GOARM[export] = "1" +HOST_GOARM_class-native = "" +HOST_GOARM_class-native[export] = "0" + +HOST_GO386[export] = "1" +HOST_GO386_class-native = "" +HOST_GO386_class-native[export] = "0" + +HOST_GOMIPS[export] = "1" +HOST_GOMIPS_class-native = "" +HOST_GOMIPS_class-native[export] = "0" + do_compile_prepend() { BUILD_CC=${BUILD_CC} }