From patchwork Fri Dec 13 21:15:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 181605 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp1166959ile; Fri, 13 Dec 2019 13:15:26 -0800 (PST) X-Google-Smtp-Source: APXvYqxfTKhadUeX4CDbs3bN2cB9D634+UDPoazIy7dHeUrZ/ZTWExmud2bVbNt+CffQf5wzCELS X-Received: by 2002:a17:902:b212:: with SMTP id t18mr1561388plr.333.1576271726316; Fri, 13 Dec 2019 13:15:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576271726; cv=none; d=google.com; s=arc-20160816; b=QVZXR233fzclX4X7CDDL0e/vIsgxPzDBSULUD1K2TEwPdhSae0RMVyKtQSMqv4XoGK IeapU21VCEHkdx09fip8NH/SsEpXNElkm1YDCLuB+rmDYOR8gRy8GkGDl4rH2hcNxh3J Uw/y+Tl/xUS9j2B7pVts/05YDMbSxpCA6vFRcfBoINEzsY7MS7CnhmH/q0n5AZEUcC2O WvOfDFECKP82tugD2pLd73rN8dtTeWoFDXdy/l65BIw/2/u+BrXh6U4wju+4G+8eS8q+ PJE7V0kHr+/y6aEYbiPqwyCXwARPy/uYb/OBiMkLyPzSNwkh2i3WHRo1bioEU1miYeZO DOMg== 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=rQ0a64aojsB/PLer9s5xkHCE/zLc7kl3X4OwJ2c+VXk=; b=VrvByVlSBwcoHdMEhEfwMZhyjpQFovVghHz5UUB6+EmYcbAAKkxu1rzDuvhpyvXPCu WLlTiFzGordMOFxx2QJOuKwDxvcrvThgi+9yiZkzKHptdf2IJ9U068b8pNdi2vzFCfgd U2M/P5O4ZaB7P6nLd8juAh08aA+rKl5cgZNNscVw5yKk70iYcqc/k9+Mf7XENCGAzJa9 nf/wt3SFW6l7xM3xjGiFyuYBpNki1IB4tKFFG6eK8HVQ4rpNGsRB7erl+CY0JmLMHeDU 2n9rPxsPkfKhV0MkF8mLzCgQRVKOprMTOfcRhbOzujY8qzgk5mOlkXYn/rSsdPYZFh7k 34wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=fP91yNin; 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 r5si9484841pfh.72.2019.12.13.13.15.25; Fri, 13 Dec 2019 13:15:26 -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=fP91yNin; 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 BABA57F91B; Fri, 13 Dec 2019 21:15:21 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by mail.openembedded.org (Postfix) with ESMTP id D99117D537 for ; Fri, 13 Dec 2019 21:15:19 +0000 (UTC) Received: by mail-pf1-f195.google.com with SMTP id s18so2117667pfd.8 for ; Fri, 13 Dec 2019 13:15:21 -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=pvX5ReQcrdVj2xH8IhoBcdBeRBAgZCNRHUS+vK0FEdU=; b=fP91yNinjOd6muvptBEmX5sen7CD0NgkSVjonl8G1jl1cii4p6JAel/AmU14aQoosv pagneCTMzpq+xuKvQiq60+LrQMzLK34W4s+Q+mp8s4yBOcZssPtUdDrv16yLN+mjsAME yyIPZpQbWwg2VoC79wt+KCIeMc4R1S5AInTAXZ+ociM5c6LE9tpBbrS8R6ZDmxYJhCGR TIN3QPzHlga+LvO3k011llm1v4tofVYOViBmXnN0IQIsmgB7TCgT5vqUjaoYzACVAW75 47MmWPtJmN4c/A0wadJTgGILSJLnBETRrYkhlPNinGvwVgp9qxWYrh8qBbiat+ojhu0d gHoA== 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=pvX5ReQcrdVj2xH8IhoBcdBeRBAgZCNRHUS+vK0FEdU=; b=HCWIX437UkMQ4SRs9NBSK4NfLEVYgpqR0EHL1Mlgz+dGvQavMiNfOhlKJ0jguYShYm qjcm9Yt5EumThdN5aeopgRB1BvTuXkJ2bXtuWep9C+iU764nfllmHGBeh1wt59BRgcxc 1LgubunRPX6Ltb4Qq4h2mBxY1x34tXEW8BDcE8e5mVGmHP9M0TOxrxCa2xq3JoGp/YS6 kKzazJOsHvlcwkPmwxne42OnBKtFDE+fYCaa2NFFfIfx55G1UH1trdjYsy7L2G5VhXe0 JYBwQ33V1fZiNITI2TpOh5jc17xixf9cWXFbor/FjxmPzzkkAgx8VXBcPXp6vI5gfhlo Cq3A== X-Gm-Message-State: APjAAAUNahc8e726uBVuDqviTb013X7yv4usvhLwHQJPX6j4j3ysEUW3 IgjP4cwoS2FKAHjI2xiO6Lr6fXgke5Q= X-Received: by 2002:a62:446:: with SMTP id 67mr1612049pfe.109.1576271720517; Fri, 13 Dec 2019 13:15:20 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::6d2c]) by smtp.gmail.com with ESMTPSA id y23sm11671441pfo.110.2019.12.13.13.15.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2019 13:15:20 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Fri, 13 Dec 2019 13:15:01 -0800 Message-Id: <20191213211502.3144020-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [OE-core] [PATCH 1/2] goarch: Remove target specific dependencies 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 goarch is used in all classes of recipes ranging from native to target, therefore its best to contain the variables and not spill over into recipe classes where they can adversely affect shared state reuse e.g. go-native currently gets TUNE_FEATURES into dependency chain of referenced variables which means go-native gets rebuilt when we change from qemuarm to qemux86 machine types since TUNE_FEATURES is defined with DEFAULTTUNE which would change as machines are switched These variables are specific to arm/mips/x86 so marking them with appropriate overrides for native recipes will be right thing here Chose 'hardfloat' for mips which is default too, 7 for arm and sse2 for x86 somehow go-native bootstrap compiler (1.4) still needs them so feed commonly used values or defaults. Fixes ERROR: go-native different signature for task do_configure.sigdata between qemux86copy and qemuarm ... List of dependencies for variable TUNE_FEATURES changed from '{'DEFAULTTUNE', 'TUNE_FEATURES_tune-core2-32'}' to '{'DEFAULTTUNE', 'TUNE_FEATURES_tune-armv7vethf-neon'}' changed items: {'TUNE_FEATURES_tune-core2-32', 'TUNE_FEATURES_tune-armv7vethf-neon'} Signed-off-by: Khem Raj --- meta/classes/goarch.bbclass | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.24.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass index 166dea9dc6..1147b6d233 100644 --- a/meta/classes/goarch.bbclass +++ b/meta/classes/goarch.bbclass @@ -6,12 +6,18 @@ HOST_GOARCH = "${@go_map_arch(d.getVar('HOST_ARCH'), d)}" HOST_GOARM = "${@go_map_arm(d.getVar('HOST_ARCH'), d)}" HOST_GO386 = "${@go_map_386(d.getVar('HOST_ARCH'), d.getVar('TUNE_FEATURES'), d)}" HOST_GOMIPS = "${@go_map_mips(d.getVar('HOST_ARCH'), d.getVar('TUNE_FEATURES'), d)}" +HOST_GOARM_class-native = "7" +HOST_GO386_class-native = "sse2" +HOST_GOMIPS_class-native = "hardfloat" HOST_GOTUPLE = "${HOST_GOOS}_${HOST_GOARCH}" TARGET_GOOS = "${@go_map_os(d.getVar('TARGET_OS'), d)}" TARGET_GOARCH = "${@go_map_arch(d.getVar('TARGET_ARCH'), d)}" TARGET_GOARM = "${@go_map_arm(d.getVar('TARGET_ARCH'), d)}" TARGET_GO386 = "${@go_map_386(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES'), d)}" TARGET_GOMIPS = "${@go_map_mips(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES'), d)}" +TARGET_GOARM_class-native = "7" +TARGET_GO386_class-native = "sse2" +TARGET_GOMIPS_class-native = "hardfloat" TARGET_GOTUPLE = "${TARGET_GOOS}_${TARGET_GOARCH}" GO_BUILD_BINDIR = "${@['bin/${HOST_GOTUPLE}','bin'][d.getVar('BUILD_GOTUPLE') == d.getVar('HOST_GOTUPLE')]}" From patchwork Fri Dec 13 21:15:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 181606 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp1167204ile; Fri, 13 Dec 2019 13:15:42 -0800 (PST) X-Google-Smtp-Source: APXvYqyYxxfLoSNs+4LR37YH14ppbWzYCzbQw+gQkPWZuxi/L4IBO8uI5CnM63gSG9LE4JWv0s6G X-Received: by 2002:aa7:8d8c:: with SMTP id i12mr1737286pfr.226.1576271742008; Fri, 13 Dec 2019 13:15:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576271742; cv=none; d=google.com; s=arc-20160816; b=0v/NrYuGYkr0EeM1WZHZu7anvSqB/HMEBWjUuOub3PkWQJ9+SA3Q6X7sHcGdNFCgdt FvxSoa9smuOi9kliqdjlBfWWf1gkh97zutxctQTVGuN9Acj5sFkCl5Y6CjTw3ssrOMCa EVsW0t+cHm35IAYi5PAkTNDip97TtnzNP+wbPdhZFxSATbhJMIZvRAU7AQbZYPC04wrK DmOXhdFbYzZYIWLoPYNANVqKcI3YxzG1FfBD6XIf+Q3iBZdWWMQmw9GZgayi4hYlQDkH jn56Q+4ds0SmYix7JaPQpV8YmUv/yNLGY+ckFVHXYFAZFxPHFfiFAqCte5Pqlgro24sZ r4sA== 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:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=HPf+DO8c/pUus3rDs6ER9akBNtAXqxylY4wRXHZLCfk=; b=AAntvvrV9AQy7lcxNIrzgfjXdcqqP/XnfKSiOLrfptWEfwsvM6PXZwLQLILZrETHJt F/uxhnktSt8iZXwT8JJ5GDf6NOV3vKLxsyQ1lL+Iv34ql3coMjTLo2EVIk9iSPDlwqQK mOHUZVnY5UzAue6Jb7/RqIQqtclWaQDtWeuNMscglQkol6W7lHv5JKLMZecUw846fdpQ yXrM2eXhrpXrBlIhNJajMRI2xFsFWS5wSMoJGQ12yUzIEGwjfM2YYud6/q2p5ok65+rv DBdtlBIhutTBiIl+ClrIQnhLKnyspB4f6NxSwocSt/1s+qBd+dHzrftNa3zBoNbobbMh 4SFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Dt4HmOkw; 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 j9si9094344pll.286.2019.12.13.13.15.41; Fri, 13 Dec 2019 13:15:41 -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=Dt4HmOkw; 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 2D9407F921; Fri, 13 Dec 2019 21:15:39 +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 D2C657F8F3 for ; Fri, 13 Dec 2019 21:15:28 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id d199so2104108pfd.11 for ; Fri, 13 Dec 2019 13:15:30 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=LO3K/NxxuI8kEifRugV+AQykK2cxK2bM0QOwJZqD2/w=; b=Dt4HmOkwHkdJC2jRu8mMI6ZB3BVg94ioMCZMd2/9FgokQ3v4uKg+GQ6BN0Hvn2WBoi hj3k2fldWIAem6t0eRfZwCeoamgfWXKwo2q8jlVl+/ulwoewq8zSimmRXUWx7/+fusjE s0QzARnOwPdyCYPE3HaLnSZvsYlCxM1huX595u/77rmeWUCbEOThQqYXroXBPG49fPIc 1w4Yn7i3DAqfgfskWnjefgZYitq43C/SEUCDFt+eqDnD8UChs7gPKjTUOzr8Sm9PISxw +8aJ6EQUG9F4iZohIEnNXezCvcATkOIZ3VmUn6qhu0T1uH+4GxG07A+uqrVpYav44q95 /5HQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=LO3K/NxxuI8kEifRugV+AQykK2cxK2bM0QOwJZqD2/w=; b=i191G6+bJlay6jtg3E0H76V1AvReQSOA7wMY2g9UkTbDYVN+fEP/Np52v60CaotZf+ LwApNpSXY7SnrMayplC2yb+tC/0PMEJUqdSF6bYuzW9yYOY0sbeE7PLKyC4JPlHtBaJo wlAvG2SLjR6NGIdVuIyHzB+pgyCLOwwDpDDJAjZ4jy0nMALLwhL1VIW2ZGv5lx2p9RyE rehg+DbVIpVTuDSq9y4zDL5LtxeazFPyq5AeyiBCNOVGF0hsDtXA12gXyUdQAuRgbBWm VjFvwPvEWsPSsDpJaQlPumqO/LV/Hbf3tTFPT+S9RK7TG4KhY+/JOnVNqL0kPsSkG1sJ i5/w== X-Gm-Message-State: APjAAAXsMNMOhzCDITnIkBKzLaTNoFm7fzsjwG5poRnUbVFLHLp8XY7n 9/esZbdHAd5TJ2bTCb2r4iosYxjt69g= X-Received: by 2002:a63:1a19:: with SMTP id a25mr1690245pga.447.1576271729516; Fri, 13 Dec 2019 13:15:29 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::6d2c]) by smtp.gmail.com with ESMTPSA id y23sm11671441pfo.110.2019.12.13.13.15.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2019 13:15:29 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Fri, 13 Dec 2019 13:15:02 -0800 Message-Id: <20191213211502.3144020-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191213211502.3144020-1-raj.khem@gmail.com> References: <20191213211502.3144020-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 2/2] Revert "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 This reverts commit 4825eede606b075d0d529b38d6162999f1dec506. Signed-off-by: Khem Raj --- meta/recipes-devtools/go/go-common.inc | 10 ---------- 1 file changed, 10 deletions(-) -- 2.24.1 -- _______________________________________________ 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 aa2482d356..f18d928c70 100644 --- a/meta/recipes-devtools/go/go-common.inc +++ b/meta/recipes-devtools/go/go-common.inc @@ -37,16 +37,6 @@ export GO386 ?= "${TARGET_GO386}" export GOMIPS ?= "${TARGET_GOMIPS}" export GOROOT_FINAL ?= "${libdir}/go" -GOEXPORTVARS = "1" -GOEXPORTVARS_class-native = "0" - -GOARM[export] = "${GOEXPORTVARS}" -GO386[export] = "${GOEXPORTVARS}" -GOMIPS[export] = "${GOEXPORTVARS}" -HOST_GOARM[export] = "${GOEXPORTVARS}" -HOST_GO386[export] = "${GOEXPORTVARS}" -HOST_GOMIPS[export] = "${GOEXPORTVARS}" - do_compile_prepend() { BUILD_CC=${BUILD_CC} }