From patchwork Tue Aug 6 06:45:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 170633 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp5275926ile; Mon, 5 Aug 2019 23:46:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGyep5CWo8o8psyiN4OGbdRgArr1oQiEUqKETqUYJBOBrYiPQIYDWnEzDbWiFatS+21QeE X-Received: by 2002:a17:902:102c:: with SMTP id b41mr1623473pla.204.1565073965549; Mon, 05 Aug 2019 23:46:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565073965; cv=none; d=google.com; s=arc-20160816; b=CaPO6cN08fm4ZA+DQGp1xSvJk5SuIBUVN9sXvFZvGV3nfo/PtMdo5Nv+GCjuwbBHj2 v3Ow7lI8pvoASNE9FGS2tDSRKF48OF+qlhe4MYHTzciF7SCKbYk/8BthfFf+EgiEAAXp XCe37vCRKkxQAIO7aNy9hATnZVRtQnW3rJ5hdbjysk8k7U5NTUiqBlnUdmZV78p9jWma ERaHJmt6maGGFlaYI27hIF5BGnkIWiS9NOTLmOh2yDTFRhWMZiZ90Dek7J9wXaE2oG9F VxwbKCtmm2+NUDpBdcB6TLpphgi05PdAqpVgmpeN6SKYy5KYi5tU40iEfe2fNlYyRI5x wkmw== 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=NlviVnOfu8HFdbRphzDKZRdLbt3AmKw1yJlG87xB24s=; b=tC8U+Is6zIo4H6f6A1r91eKeML2GXBwousfQZqQKP+jDd6hew3afg17J4EgpqwteM6 unc1Fa9kZpRSbGv8+WxqTl1lCASLENW2Tlkzfg5dgUIE9ttgJAUDPC9HoAsy3hUPWasU g0RVSs0MivWbiw0VTICslQwltU+n1uJO0NZndDkm4fx4PZkMj9HAydXoc5H6IOEO/hIc 4ZDWokdevG3L3YP7uGucx4wKJrKtT2OzqyYYG1p6qWYzhb6BZ4RUqyM1GXb/602oOYVs Exe0IzuWCCIUGz5/SgxxPE+8UUVutymS/QRXg7JFuo0KZiOA/9UnxXPErNu0oZ+wAMPW gTyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=ScXdwS9P; 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 r1si14691393pjp.80.2019.08.05.23.46.05; Mon, 05 Aug 2019 23:46:05 -0700 (PDT) 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=ScXdwS9P; 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 AC55B7F316; Tue, 6 Aug 2019 06:46:02 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mail.openembedded.org (Postfix) with ESMTP id 8B97C7F2F8 for ; Tue, 6 Aug 2019 06:46:01 +0000 (UTC) Received: by mail-pl1-f177.google.com with SMTP id y8so37463832plr.12 for ; Mon, 05 Aug 2019 23:46:02 -0700 (PDT) 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=wd19fIZlwMFVvj3yh236vizLA8ANlaLewEREeJft6R0=; b=ScXdwS9PHMGmfwE1jq5H/kW+KOMmYPdvkNHn2PPdpql78a/NaPuD6UmDVdBMLdnXd6 tPGApgtvxdgQKH5SU5NQIKQngWEHc5OtgNnY4H4jIj55GmScCEu0/O7/InSCzctuU3fQ lMNuohdVtYO5450aDTDUuCGxVZNs0RokHp0rE2Yslb0jffxemK7vC/pUGh53s9/9xUEq R1kXTubxyIksoRdjrTTI1HU5GqMSePHM27kARhXhzjEB7yBwg6N0av6hIfheyV7GAAU/ X4FUfYNlL6VAvJo3UDISixrG+q+1JgxAD8CN+zYW/uKJlKM1bnBtrOXxPQ06+dYYtbY7 C2rQ== 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=wd19fIZlwMFVvj3yh236vizLA8ANlaLewEREeJft6R0=; b=gj5TCqYS6Zo5PGWr1BVWgRw4vdCfI8nv79tnZ8ELq/hdos432mnLkZVeyrTQ6i74kF z9KIA7UBKb9DtxlzIaW+Qd4GeYcD4CAigs1nILcD2SS2G9tI8OQkLQ2v8UEvQ/nnQw/z KW+VY+4IR0ipsYh4hd6qthakyqPDOLcSdfCGVezfIAZJzb0N2oBQIVW+Vl3AiYEFZ497 4pxZRZTxTH2zi9mAASP0/f/PXU1wABY1rb55lckkIPXvZtzqRsDFwHimUjLxKW82sUp2 jk9pg3ZYB+YGA/1BR/Hk2HOrEb73FuwMhVsRNbv0VEdmM9F/LUw/b2q7KA0Y/bkHEAzJ N13Q== X-Gm-Message-State: APjAAAWT5FeQxDViCR0xMUf+SKpsTSod0Y2dZTEss7OjtyhftxgXHE9k JGF1Fm6hLnemUvEJvrX8GZcKbWxOJ8o= X-Received: by 2002:a17:902:8696:: with SMTP id g22mr1578323plo.249.1565073961839; Mon, 05 Aug 2019 23:46:01 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id x1sm17957104pjo.4.2019.08.05.23.46.01 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 05 Aug 2019 23:46:01 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Mon, 5 Aug 2019 23:45:45 -0700 Message-Id: <20190806064547.32044-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH 1/3] virglrender: Fix endianness check on musl 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 Seen to fail on musl/mips, this fixes the check to be linux specific which means it can detect the endianness for musl correctly Signed-off-by: Khem Raj --- ...d-libc-check-to-be-platform-OS-check.patch | 36 +++++++++++++++++++ .../virglrenderer/virglrenderer_0.7.0.bb | 1 + 2 files changed, 37 insertions(+) create mode 100644 meta/recipes-graphics/virglrenderer/virglrenderer/0001-gallium-Expand-libc-check-to-be-platform-OS-check.patch -- 2.22.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-graphics/virglrenderer/virglrenderer/0001-gallium-Expand-libc-check-to-be-platform-OS-check.patch b/meta/recipes-graphics/virglrenderer/virglrenderer/0001-gallium-Expand-libc-check-to-be-platform-OS-check.patch new file mode 100644 index 0000000000..a0ac3aefdd --- /dev/null +++ b/meta/recipes-graphics/virglrenderer/virglrenderer/0001-gallium-Expand-libc-check-to-be-platform-OS-check.patch @@ -0,0 +1,36 @@ +From 3d30df8d8ccb919733b5339b2a82474305b83998 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 6 Aug 2019 01:19:48 +0000 +Subject: [PATCH] gallium: Expand libc check to be platform OS check + +endianness on musl based systems can also be detected in same way as +glibc, therefore check for __linux__ define instead of __GLIBC__ + +Fixes build on musl/mips + +| ../../../../git/src/gallium/include/pipe/p_config.h:171:2: error: #error Unknown Endianness +| #error Unknown Endianness +| ^~~~~ + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/gallium/include/pipe/p_config.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/gallium/include/pipe/p_config.h b/src/gallium/include/pipe/p_config.h +index d603681..71cdf49 100644 +--- a/src/gallium/include/pipe/p_config.h ++++ b/src/gallium/include/pipe/p_config.h +@@ -130,7 +130,7 @@ + * Endian detection. + */ + +-#ifdef __GLIBC__ ++#ifdef __linux__ + #include + + #if __BYTE_ORDER == __LITTLE_ENDIAN +-- +2.17.1 + diff --git a/meta/recipes-graphics/virglrenderer/virglrenderer_0.7.0.bb b/meta/recipes-graphics/virglrenderer/virglrenderer_0.7.0.bb index 225a0b8b0c..818d5b6307 100644 --- a/meta/recipes-graphics/virglrenderer/virglrenderer_0.7.0.bb +++ b/meta/recipes-graphics/virglrenderer/virglrenderer_0.7.0.bb @@ -9,6 +9,7 @@ SRCREV = "402c228861c9893f64cffbbcb4cb23044b8c721c" SRC_URI = "git://anongit.freedesktop.org/virglrenderer \ file://0001-vtest-add-missing-includes.patch \ file://0001-Makefile.am-explicitly-link-with-libdrm.patch \ + file://0001-gallium-Expand-libc-check-to-be-platform-OS-check.patch \ " S = "${WORKDIR}/git"