From patchwork Fri Oct 23 06:12:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Derrick Pallas X-Patchwork-Id: 1386518 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=meter.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=meter-com.20150623.gappssmtp.com header.i=@meter-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=MCUrtn4f; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CHYnR4dHNz9sRk for ; Fri, 23 Oct 2020 17:13:15 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8BE4187603; Fri, 23 Oct 2020 06:13:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7v+bfkKe03Yy; Fri, 23 Oct 2020 06:13:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 65F07876BC; Fri, 23 Oct 2020 06:13:09 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 86C541BF275 for ; Fri, 23 Oct 2020 06:13:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7FD7F876BB for ; Fri, 23 Oct 2020 06:13:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YoOLZfGLH1fQ for ; Fri, 23 Oct 2020 06:13:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by hemlock.osuosl.org (Postfix) with ESMTPS id 9EFB787603 for ; Fri, 23 Oct 2020 06:13:06 +0000 (UTC) Received: by mail-pf1-f193.google.com with SMTP id j18so353514pfa.0 for ; Thu, 22 Oct 2020 23:13:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meter-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EU/YaT2VuSv8oFB5cNH2SbWIrGm3Y7gLKSbpvXWNUPY=; b=MCUrtn4fhBeGQ6kLaSG504PAx8owLkYiF9r6/fRnimjKsLRkjx7H/Pjp6e6guakGCo ly/coItfuLJHt9Q5zUv1u/v5+eZ++rHcwrhRhDLBxmkp/wG2DMFT8sUCJWYwYRSavkp1 A8rbuyhM/ZF3IF3K4uvYaSxMQjIol8Qpt3nVKSvS5qNkYxNTe2Y6UD4/CUxTXGm67f1h gEAyYHuzD6MYeI64jz+CFer8wdTrbMvcZxJuavkd56jfvMBlZlVVHEPKkDScaT/d1zMf D8Z0rDUeZHjikxp2NV8JLH5Kxfr4FMtzarxTDWnVY177FT4jr6X56bVCuVV4j2ktm8QQ QYHg== 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=EU/YaT2VuSv8oFB5cNH2SbWIrGm3Y7gLKSbpvXWNUPY=; b=JaW7cFBK/vLZTylYqetIGsOeLTpT1VtgjIyJsR/hja6kv7gXTHoXU8ho0db24gP6yu 2JDj2z+AcwYjQk+SPxun1IqKfwnREoG0Cm9Bmk3vFKI0IWJGETpW6U1K2dN8hKIN3wRx XwlYGRg9p25/B3sbBQ8k0Ja+L1dfR9nUKWRq8/kxRCjqiUB1maC43w/gAg39HeKtmFQl FTOudQQP1ULjKd2FxVX223Pw3XMfShAA7BPFXtyvmu0TM0xfmpE+AVIXE1KQzQsirYjM mQ8MPF+sP7rsGdKZwXPHaE9WTSYwDzPBozsJ2pYp2SpCDbKwNE0KU7/btEd8gkQNd9Tt EiSw== X-Gm-Message-State: AOAM533ZBiC/NpX/mbAbo13GJPbV/sgKIs5roT2DKa98NYSY7wcB7YVQ hignqLzuj2phU2aW2aCfryb5P8fmLxdpYg== X-Google-Smtp-Source: ABdhPJzNQHuDe7oBZoKutL3Is25FfYCOerBiuco1lY7udYFbJSnwFX4c6WMhwAYzsFOzqRONG8LBhw== X-Received: by 2002:a17:90a:d489:: with SMTP id s9mr843305pju.50.1603433585831; Thu, 22 Oct 2020 23:13:05 -0700 (PDT) Received: from frank-chu.members.linode.com ([2600:3c01::f03c:92ff:fe24:9a57]) by smtp.gmail.com with ESMTPSA id q8sm686925pfk.207.2020.10.22.23.13.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2020 23:13:05 -0700 (PDT) From: Derrick Lyndon Pallas To: buildroot@buildroot.org Date: Fri, 23 Oct 2020 06:12:51 +0000 Message-Id: <20201023061251.29900-1-derrick@meter.com> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/meson: fix blank entry in cross-compilation.conf 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: Eric Le Bihan , Derrick Lyndon Pallas Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Without this change, cross-compilation.conf seems to be generated with a blank cpu entry in the host_machine section. (Note: what meson calls host, buildroot calls target.) The effect is that meson-based packages may fail to detect architectural features of the target CPU, like SSE support, and either fail to take advantage of them or just refuse to compile. This change follows the convention used to emit the `endian` entry in that section, which comes from [92eca65ddf meson: Strip quotes from BR2_ENDIAN]. To verify: `grep cpu ./output/host/etc/meson/cross-compilation.conf` Signed-off-by: Derrick Lyndon Pallas --- package/meson/meson.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/meson/meson.mk b/package/meson/meson.mk index d39e66cf05..9bccea8fef 100644 --- a/package/meson/meson.mk +++ b/package/meson/meson.mk @@ -14,7 +14,7 @@ HOST_MESON_DEPENDENCIES = host-ninja HOST_MESON_NEEDS_HOST_PYTHON = python3 HOST_MESON_TARGET_ENDIAN = $(call qstrip,$(call LOWERCASE,$(BR2_ENDIAN))) -HOST_MESON_TARGET_CPU = $(GCC_TARGET_CPU) +HOST_MESON_TARGET_CPU = $(call qstrip,$(call LOWERCASE,$(GCC_TARGET_CPU))) # https://mesonbuild.com/Reference-tables.html#cpu-families ifeq ($(BR2_arcle)$(BR2_arceb),y)