From patchwork Sat Mar 16 00:18:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 160441 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp77098jad; Fri, 15 Mar 2019 17:18:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDFpgZs+JaCggCXxUg2MCjkhH0Ta4FRmEzwpFoslsV4DhUi1XIkdNciWZwpUrlm1fjdl/7 X-Received: by 2002:a17:902:9a43:: with SMTP id x3mr6990493plv.173.1552695539261; Fri, 15 Mar 2019 17:18:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552695539; cv=none; d=google.com; s=arc-20160816; b=Goj49QhG0dAAk2WHzQFofkZXe7fO6/ERMAGifrH6RjURz4Fb3Y2drxlTUf3uE3Gwrd hUocumAYdWipH1xr628A35h1ZouOwbSboBzVFp76yIka2rhxoalUxWav51NiVwviL2w2 3XF9pegmFbgyZ+mIQxfwaIMIHPsuxgNwgZyfYqWje4pLhNk0cBOOv4thDZpCTqVqcKlD PV+zbN7NYVr7vz5RZKVEQ3RT7GUaKgJpLKIHC+poJmuqGhTx8TJDcAf2ZLPkPq2MpOLF hGrxYNeHrLoAZWbmU9JIm9JTVRpr4fj1ThImJJpDXRagFTQzOvWNk9C8fiPpV0K4u2LK Hpgw== 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=BhVOAdbBT9g9Q0cUrNGrnseqZ9wWNcQxN6EC2pYPjVg=; b=QFxUsTygMkACuExb8HHiY6uN//7tD/T/vmkhbsk6XuBw7u7TK3HcN9xhSrcrUs4CVE gpQ35R4nAfNaM3L4JKWm7+/HzO043Bi/oIL9yMclww5kEMiba5RD5/pUmepKYZI86OiD FYoDQ0+bz7+hA6mXXMXcJci20gPTZv75rrCVAg8bKftk9NgW4/288+4Lz9XlKmldOZl1 zxOYVYjM7UD+3FEq4zlnSCv8KUHocpnK+hIxt4kPzVbumJp55d8lAUSUSsLbTBIfB0Is ulEcBhAYfAvEb7z8TMR7h0XJQs0EshsEfFXrcFPmOJJ0zrwzuBI9+3D5KAFqXU8Ql7cA WwJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=mqnnY8vv; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-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 q72si3158552pfa.163.2019.03.15.17.18.58; Fri, 15 Mar 2019 17:18:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-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=mqnnY8vv; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-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 A85127CD17; Sat, 16 Mar 2019 00:18:55 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by mail.openembedded.org (Postfix) with ESMTP id B858360273 for ; Sat, 16 Mar 2019 00:18:53 +0000 (UTC) Received: by mail-pg1-f194.google.com with SMTP id r124so7532001pgr.3 for ; Fri, 15 Mar 2019 17:18:55 -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=hEaDyUDZq/3naeFADU3uJlCPkJ70hAL2fxWxjAnX9wA=; b=mqnnY8vv/tMr5CsKCIIozbw+oU3ezoDPbI9lD/xzSIn+das1gdlKerNuw8MYUDEUpb IvccmhCdDfB02JSUj/rMvGX9gEYAC7e8ZNDQVuZmh3Cq/b+4S6lDOanozTDIIsrGCkl0 5QT6RTbLbI3gkJG6zrT7T/VD4+5iTj6YbW1UEDX2b8oXzD8jLcXWW7kLSdgI4yFuy8DZ ZnjHQTACjZvaXCtGVUvCVq6C/LAM99pIOSc+vDQF6cZ+iSsoy7u/ya6pYw1Aip6XgsWr I91997ZEB4ZE0l69/+UlfX/lQhifQgFrrzqCR71mLo7Gv3BAWIYuul+CKSZ5eO/uAydw Vb/g== 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=hEaDyUDZq/3naeFADU3uJlCPkJ70hAL2fxWxjAnX9wA=; b=GN7FXh5gTxNAymCCs+xzVF3SN+aw0YMgN74WD0r2fdPr2sUaUJGqaNHzmRh8Svairc +XhKcZenO4QNPcz06oCntygUZ/Y2/p5zaG3i/FCYY2Tug1JPzJv7Z4INDe8CjW68IUWX RqoUA4dR9J7sViwyCYq0NRSjfsI1W96lJ0VhYThSJpKuMiCIs2PuI/VRseR5Xy9NIM1/ A85L65ziOx0aplWsLsHgdhCxh8IxYRMoCQ5oriLI8zYSobCkfEEIT2d6gduYeGwF7oLa U3yfFPpirgNlLR6ZfkpSbw4VycDjbK/J143SC0OrpYJUOPYjhsqZcw1wULqYMmLILlCT JtFg== X-Gm-Message-State: APjAAAXN0yr8KQwS0Y9SwQrR0PtTpUPpB/aGevZVkw5XGtxGGTy1qbfD AZnRkG2Y0qreSEn0iflCx07CGZWy X-Received: by 2002:a65:43cc:: with SMTP id n12mr5863735pgp.218.1552695534393; Fri, 15 Mar 2019 17:18:54 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::b8f7]) by smtp.gmail.com with ESMTPSA id f11sm3677718pgv.28.2019.03.15.17.18.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Mar 2019 17:18:53 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Fri, 15 Mar 2019 17:18:44 -0700 Message-Id: <20190316001844.15039-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH] postgresql: Fix build for RISC-V X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- .../files/0001-Add-support-for-RISC-V.patch | 41 +++++++++++++++++++ .../recipes-dbs/postgresql/postgresql_11.2.bb | 1 + 2 files changed, 42 insertions(+) create mode 100644 meta-oe/recipes-dbs/postgresql/files/0001-Add-support-for-RISC-V.patch -- 2.21.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-dbs/postgresql/files/0001-Add-support-for-RISC-V.patch b/meta-oe/recipes-dbs/postgresql/files/0001-Add-support-for-RISC-V.patch new file mode 100644 index 0000000000..865ad3287b --- /dev/null +++ b/meta-oe/recipes-dbs/postgresql/files/0001-Add-support-for-RISC-V.patch @@ -0,0 +1,41 @@ +From b06a228a5fd1589fc9bed654b3288b321fc21aa1 Mon Sep 17 00:00:00 2001 +From: "Richard W.M. Jones" +Date: Sun, 20 Nov 2016 15:04:52 +0000 +Subject: [PATCH] Add support for RISC-V. + +The architecture is sufficiently similar to aarch64 that simply +extending the existing aarch64 macro works. +--- + src/include/storage/s_lock.h | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h +index 3fe29ce..7cd578f 100644 +--- a/src/include/storage/s_lock.h ++++ b/src/include/storage/s_lock.h +@@ -316,11 +316,12 @@ tas(volatile slock_t *lock) + + /* + * On ARM and ARM64, we use __sync_lock_test_and_set(int *, int) if available. ++ * On RISC-V, the same. + * + * We use the int-width variant of the builtin because it works on more chips + * than other widths. + */ +-#if defined(__arm__) || defined(__arm) || defined(__aarch64__) || defined(__aarch64) ++#if defined(__arm__) || defined(__arm) || defined(__aarch64__) || defined(__aarch64) || defined(__riscv) + #ifdef HAVE_GCC__SYNC_INT32_TAS + #define HAS_TEST_AND_SET + +@@ -337,7 +338,7 @@ tas(volatile slock_t *lock) + #define S_UNLOCK(lock) __sync_lock_release(lock) + + #endif /* HAVE_GCC__SYNC_INT32_TAS */ +-#endif /* __arm__ || __arm || __aarch64__ || __aarch64 */ ++#endif /* __arm__ || __arm || __aarch64__ || __aarch64 || __riscv */ + + + /* S/390 and S/390x Linux (32- and 64-bit zSeries) */ +-- +2.9.3 + diff --git a/meta-oe/recipes-dbs/postgresql/postgresql_11.2.bb b/meta-oe/recipes-dbs/postgresql/postgresql_11.2.bb index b87289a1b8..0f59c8dd17 100644 --- a/meta-oe/recipes-dbs/postgresql/postgresql_11.2.bb +++ b/meta-oe/recipes-dbs/postgresql/postgresql_11.2.bb @@ -4,6 +4,7 @@ LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=87da2b84884860b71f5f24ab37e7da78" SRC_URI += "\ file://not-check-libperl.patch \ + file://0001-Add-support-for-RISC-V.patch \ " SRC_URI[md5sum] = "19d43be679cb0d55363feb8926af3a0f"