From patchwork Tue Feb 5 15:51:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 1036834 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.137; helo=fraxinus.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="mFKmjGjx"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43v8G02qR5z9sMx for ; Wed, 6 Feb 2019 02:51:52 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9251D854AF; Tue, 5 Feb 2019 15:51:49 +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 pOxFjPyEFxlJ; Tue, 5 Feb 2019 15:51:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 151AC867E5; Tue, 5 Feb 2019 15:51:32 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id F278F1BF958 for ; Tue, 5 Feb 2019 15:51:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id EF64730D0C for ; Tue, 5 Feb 2019 15:51:30 +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 LnXhYeespjmg for ; Tue, 5 Feb 2019 15:51:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by silver.osuosl.org (Postfix) with ESMTPS id 372AF30D38 for ; Tue, 5 Feb 2019 15:51:30 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id x10so4144399wrs.8 for ; Tue, 05 Feb 2019 07:51:30 -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=mFKmjGjxkUG4duu20qxZ3FSI1LnDyORX/cK1+CmFAMpZF7p7qyzX4HlrdcEi0npssO R1rO3zEg5Lat3X42J4lUvNMqj2RxeuhtdSNMreS8sfGpGTAviNBwP5lv646AQ6lrGqu8 kZohL+S5ZFdYYk1OnQR/4+QnnkDsLtAwneZiU= 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=KB5xtOplLxYRZ7gFDgCJwMPoZwmnh55fDmdUQI7IpR5hi1iYXlzzWbxxA9wnxQvh4l KhOMoZzSJ1fLiI1M+FyytlCDqHCc7a9egi1PjH7WyPk1uFkHPkR0cOLGbf+njSpPyfSZ q+uqlLU95iRI5dbIv/wa4dqiU+Y4r2lM2feaVXt5cnIS+ExAL/v4Yhjx2MOkDejrv1xM M1uST2t0uK/qjWnbwJkiTROUlefeYgc3t6EJrde95popYve8AutHzWKgOF7pGvGN1PO0 WH+KCqY1LVwn7vkhx108diT04E9vNGjdxtfCAew+/MfV8qV09laOw1YcydPZm2M3g2Hp Yy5w== X-Gm-Message-State: AHQUAuYNxUSBhGryjqujhXmTZBtXldOb3P+Ot32Pa1RzelZXZMlkttBB JqeDaOkatNBznocTJkU17/ofsbBCKWvrYA== X-Google-Smtp-Source: AHgI3IaTlDUjW6LLUJq1o2H3sjW2iSlZOITaPh4V/aLJN+QtLom/UkrOBcbmwIs9pKul41FeU4VgMQ== X-Received: by 2002:a5d:5351:: with SMTP id t17mr4157877wrv.288.1549381888110; Tue, 05 Feb 2019 07:51:28 -0800 (PST) Received: from localhost.localdomain ([2620:0:1055:fd00:3c25:d51f:f59f:7d82]) by smtp.gmail.com with ESMTPSA id w125sm33813224wmb.45.2019.02.05.07.51.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Feb 2019 07:51:26 -0800 (PST) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Tue, 5 Feb 2019 16:51:11 +0100 Message-Id: <1549381879-2207-3-git-send-email-angelo@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1549381879-2207-1-git-send-email-angelo@amarulasolutions.com> References: <1549381879-2207-1-git-send-email-angelo@amarulasolutions.com> Subject: [Buildroot] [PATCH 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