From patchwork Thu Apr 16 19:27:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 2968 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4938Pb3GDjz3xQv for ; Thu, 16 Apr 2020 19:27:31 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4938PY5JkMz1nJ; Thu, 16 Apr 2020 19:27:29 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4938PY3Nhkz2yXV; Thu, 16 Apr 2020 19:27:29 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4938PX1Vqhz2xxj for ; Thu, 16 Apr 2020 19:27:28 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 4938PW2Scwz1nJ; Thu, 16 Apr 2020 19:27:27 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1587065247; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=FRVZAk6Xrft8vZKt3ml/iynL2wFY0V/7Uj1eGk85QXs=; b=tixtHVJ1hsnckswh80UDMkFieL0d1wwjyNjmAQzs2j4w6qbh1yA+x6KGRp1SN7/ycPtvwz mFYpuKdHCQErcgBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1587065247; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=FRVZAk6Xrft8vZKt3ml/iynL2wFY0V/7Uj1eGk85QXs=; b=XhRGspkLbgV5D+3SOIbla5q+9RjVXWBjrao/jzShwilf68uoTDv5QZc/2SfwMmngjmprC5 LzY2uE/VD3jsRYQD4O973rCD/BIUR/2w4Oa0V8xhr+b/pdcCt22YU/EMnAVF/xEhEY+BDV vijKzPSgD7Ux3VJqaR1Q+Ezi/4dJyhusUcwq1WCIIIn1tFUjTuhiRuau/6+0kFATQgKUWX Y1AxZrxaSkNU1wEUAOcCTqCljpyGsYCBY6g5Dk8L8jYc53O7tot/NCW28SzJKGW4Gos+BB UzuMBLGKuE/G4RPDdbvZrE7JFzAsqm1e9k254MHzqYPMJ7wg5n+McTxnzy+34g== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 1/9] Config: Set some Go environment variables Date: Thu, 16 Apr 2020 19:27:06 +0000 Message-Id: <20200416192714.25542-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Michael Tremer --- lfs/Config | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lfs/Config b/lfs/Config index a278b0155..26d463112 100644 --- a/lfs/Config +++ b/lfs/Config @@ -117,8 +117,18 @@ ifeq "$(BUILD_ARCH)" "aarch64" endif # Go +export GOARCH +export GOOS = linux export GOPATH = $(HOME)/gopath +ifeq "$(BUILD_ARCH)" "x86_64" + GOARCH = amd64 +endif + +ifeq "$(BUILD_ARCH)" "aarch64" + GOARCH = arm64 +endif + ############################################################################### # Common Macro Definitions ###############################################################################