From patchwork Tue Feb 5 16:00:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 1036858 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="OeVbFlGC"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43v8Sp5n9zz9sMx for ; Wed, 6 Feb 2019 03:01:14 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 298CB30DA5; Tue, 5 Feb 2019 16:01:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZSZRv9O-gFwn; Tue, 5 Feb 2019 16:01:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id AD74D30D0C; Tue, 5 Feb 2019 16:01:01 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 6334E1BF958 for ; Tue, 5 Feb 2019 16:01:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 60C7485F4B for ; Tue, 5 Feb 2019 16:01:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2FZPTmcjKFVC for ; Tue, 5 Feb 2019 16:00:59 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by fraxinus.osuosl.org (Postfix) with ESMTPS id A7CC88681D for ; Tue, 5 Feb 2019 16:00:59 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id t27so4199526wra.6 for ; Tue, 05 Feb 2019 08:00:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UkGDc8TGjZ3QIIql1rNs9IWH0ptEeNuzVUpDxqwHcYc=; b=OeVbFlGCwCbnljb8lw93vwMAlcFB+y7liFyMi5yREaVt0QZwBxrsLX6TAerbT0USRQ hhqanTO2I2L358sGUXbL9zm4XDLG3by53cdMsu+mLvTsTpcWH83V5K/+yd024oDa9BkB t7Wi27cqb0VMFbdYAfpo2jRB+voYVsZ0H9urc= 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; bh=UkGDc8TGjZ3QIIql1rNs9IWH0ptEeNuzVUpDxqwHcYc=; b=G++OJCBmvPyoMqCOhAip890zlEcHYau0Lr/3JbZEkczRpap8+RClvAlhZertxZrePQ T/j1ghTzw4C5SGGA02TjKP3oprNoMdp1QsnpTHHZcZ0JNxadxZmXax1xuD6TSzbEzEOD 6M9xgvPASFO9d7SDqhrEmlEo6v85S5hJpjRBMiFnHKFXfOJ+BQaTgZGv4hcCz2oDamJi O5kwkjE5RUmTSJ+fmqLaDCYo2nTP6hj8Pp+drGsdHCdMkFesoIf4DD3l4IJilVJv8wbV vbGxesu3R0qRjrpQr3vqO0DsPwUmFtydlqxYTI1sgHfHsMkGlNAj+JwsAXr/4tiFUUdk v8lw== X-Gm-Message-State: AHQUAuaIKFa8UGJohyfwcvF20VWaUqEkhYD5KQay0TOt22DJ07H/sl9z wMKkJMVZC5D0q0ZjM4lrkpUaVm8fjWXN8A== X-Google-Smtp-Source: AHgI3Iby6NndZtOn89pqeSL9imXFtXdGNlbqmcD5hbhEjl5Vt1wx6gHEsvISfmbh4QXKSPdesXNyfw== X-Received: by 2002:adf:fd03:: with SMTP id e3mr4029525wrr.280.1549382456506; Tue, 05 Feb 2019 08:00:56 -0800 (PST) Received: from localhost.localdomain ([2620:0:1055:fd00:3c25:d51f:f59f:7d82]) by smtp.gmail.com with ESMTPSA id r14sm503986wrr.65.2019.02.05.08.00.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Feb 2019 08:00:53 -0800 (PST) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Tue, 5 Feb 2019 17:00:28 +0100 Message-Id: <1549382436-15177-3-git-send-email-angelo@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1549382436-15177-1-git-send-email-angelo@amarulasolutions.com> References: <1549382436-15177-1-git-send-email-angelo@amarulasolutions.com> Subject: [Buildroot] [PATCH v2 02/10] package/go: refactor host/target dependencies X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Angelo Compagnucci MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" In order to better handling the host/target dependencies of packages, we need to add the new configuration option BR2_PACKAGE_HOST_GO_TARGET_SUPPORTS. All golang target packages should depends on this options. Host packages needs to depend instead on the already available BR2_PACKAGE_HOST_GO_BOOTSTRAP_ARCH_SUPPORTS. Signed-off-by: Angelo Compagnucci --- package/go/Config.in.host | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/package/go/Config.in.host b/package/go/Config.in.host index f619ca0..508f664 100644 --- a/package/go/Config.in.host +++ b/package/go/Config.in.host @@ -1,4 +1,4 @@ -config BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS +config BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS bool default y depends on !BR2_TOOLCHAIN_HAS_BINUTILS_BUG_20006 @@ -10,10 +10,16 @@ config BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS # MIPS R6 support in Go has not yet been developed. depends on !BR2_MIPS_CPU_MIPS64R6 -config BR2_PACKAGE_HOST_GO_CGO_LINKING_SUPPORTS +config BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS bool default y - depends on BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS + depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS # Go doesn't support CGO linking on MIPS64x platforms # See: https://github.com/karalabe/xgo/issues/46 depends on !BR2_mips64 && !BR2_mips64el + +config BR2_PACKAGE_HOST_GO_TARGET_SUPPORTS + bool + default y + depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS + depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS