From patchwork Fri Oct 11 04:55:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 175905 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp254328ill; Thu, 10 Oct 2019 21:55:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQpTllYGsP/Q/d66MBS0RvOwL+GwLDPthB8tpL1OLVGjmDEhPNJW44v2XCUlhRKt8/kJ8V X-Received: by 2002:a17:90a:b116:: with SMTP id z22mr15161114pjq.82.1570769741456; Thu, 10 Oct 2019 21:55:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570769741; cv=none; d=google.com; s=arc-20160816; b=h/vbMJaUGmakanMnj7FaSp16hjfi1u7ePPgYGor/h3Myrvhrc0qCosEaufVSmsx5rz iQ8dIi9ONkI1ZoGpgc7G65xDYHApyohlqz7NRiX3M44wtN7XVwPozlJKppJxjT33dlv9 ox7TxyBWZ10T6fjIZxI2iRAU5orRRkFBeSdMLcC8N6UzrtcXoWUCQ3+jXmY8lRP5fSes l9qhkwUBhfyqMeu5WesdESQGlVC2tBnu4mwbwPi6FmDoqxrhBVxRX6RgyGLm3n//WQL3 +dA8QmjIVdHJlK9FIOEriLXlO8lsTWOj3FtFj+pc/4bRL35GU3cejwxDKrzZ59CmhLvl x+Qg== 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=SnjSjZDdJWIgCccBawy+qq25h4YZl6JD0T3K4Mw4vfg=; b=RigvNtWp2r5Lh+rKFID2x12llvpWfV/6V3ZIxefCisiDDN2s6isOGrz/QD4+U/dsCB SbGwEy2TdA2DMktYyLKN0TysASU2saa37zTebe9IB/oTuMunjZfQFqyfZURkWuNaY//m S+rGkq/VfZPdCIZFRph7x11GXHJRKg2v09XFT0OtQtoHlUAn8R3tWg6NJQXRcy7syDDd xPWnEr3Feqqi+umfhduZ1PUctappOEW92KJw2I8s5mkVsaWi2ZKSLB79Nmo7vX4EwAbg 1gS5y2UFnHg6307LZsxCnVIKXr3/H5jVdxJqOLbj+4mRj+HfbnyhyWxP4pNT3BbRUFwl BsMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=G1+iKX68; 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 z19si7350793pjt.94.2019.10.10.21.55.39; Thu, 10 Oct 2019 21:55:40 -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=G1+iKX68; 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 0DB267F4B4; Fri, 11 Oct 2019 04:55:32 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by mail.openembedded.org (Postfix) with ESMTP id C69047F4B4 for ; Fri, 11 Oct 2019 04:55:30 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id i76so5069528pgc.0 for ; Thu, 10 Oct 2019 21:55:32 -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=lRTpj0n8phlsixSjkD03p+NPeefhTVP1tNw5a+7iWN0=; b=G1+iKX68AGubATuRgpqlweZ/qIQbTqTbtUFbPZlYmmKKMlvhkytH//pxY4syPDNqOU zDh5NzSAb/y2Gvu9OaxGxI5tQog93Ath0ZVMomhfXVGa8JaHnFiQvSsvP4C/DqBtu759 up/mT9OCznl4DA4sv9himuykB7JwtKwz38dx8u2UdRCZ4DbSVG6MWAf91NEqhKXjbqA5 o2amGVwROJbFmDOv2Kb6st6RMum3bofsq3Q/jsJd1uTA0NxKtoCsJhHD+mns39LVqfAC 4A3NNbqRqINViXUcAVrSGmwEWIar41S411BRd3xjFEzSVysNcMjbTGxqd8/+Om/qP8tu NCKQ== 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=lRTpj0n8phlsixSjkD03p+NPeefhTVP1tNw5a+7iWN0=; b=XMnJX47Z//PHTxrjMeg2gJST/3MYj3kmEi1iCR4PlPsagIY+04l+SnQOmpDGdZffet FXJkmcWKfZ1jKqEqD3Mu9Dr3s4TCL/1j69hRqyMp5JpbbgaYGDwOfTGhkHlWsVrzule8 LADXiJw9x4PcEfwfkufGmRAbQUio4NVQfmTp4LDahU21jCR+i33gBGKjBSXaFyaIt3Pv 8s8Ls5NUGxe7JUblDSm43GvAnKFEuD2Ws6EDRs9zSUXyG1OeecsTLGigo6EC+mFSvlt2 aDVMBz4KqTRAGv+vep0zW0cdUxr1RZIrUmCZQEu2tJQmRFSwwb+4fQFSr7MalYjKQivA S/iw== X-Gm-Message-State: APjAAAVlIEyqNO5H8R65kl2tXzLYEOQ5i7s6FM3XWkIaExV2WBATWh9J JKavD/auIwlkJBjNJvjdXlmTQi5rC5s= X-Received: by 2002:a63:c446:: with SMTP id m6mr654753pgg.136.1570769730994; Thu, 10 Oct 2019 21:55:30 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:1c20::7275]) by smtp.gmail.com with ESMTPSA id b185sm9695570pfg.14.2019.10.10.21.55.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2019 21:55:30 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Thu, 10 Oct 2019 21:55:17 -0700 Message-Id: <20191011045517.2565168-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH] a2jmidid: Fix build on risv 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 Fixes ../a2jmidid-8/sigsegv.c:102:39: error: no member named 'gregs' in 'struct mcontext_t' | ucontext->uc_mcontext.gregs[i] | ~~~~~~~~~~~~~~~~~~~~~ ^ Signed-off-by: Khem Raj --- .../jack/a2jmidid/riscv_ucontext.patch | 24 +++++++++++++++++++ meta-oe/recipes-multimedia/jack/a2jmidid_8.bb | 1 + 2 files changed, 25 insertions(+) create mode 100644 meta-oe/recipes-multimedia/jack/a2jmidid/riscv_ucontext.patch -- 2.23.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-multimedia/jack/a2jmidid/riscv_ucontext.patch b/meta-oe/recipes-multimedia/jack/a2jmidid/riscv_ucontext.patch new file mode 100644 index 0000000000..23618f18a1 --- /dev/null +++ b/meta-oe/recipes-multimedia/jack/a2jmidid/riscv_ucontext.patch @@ -0,0 +1,24 @@ +Add riscv specific checks to choose correct gregs and context structure definitions + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- a/sigsegv.c ++++ b/sigsegv.c +@@ -91,7 +91,7 @@ static void signal_segv(int signum, sigi + a2j_error("info.si_errno = %d", info->si_errno); + a2j_error("info.si_code = %d (%s)", info->si_code, si_codes[info->si_code]); + a2j_error("info.si_addr = %p", info->si_addr); +-#if !defined(__alpha__) && !defined(__ia64__) && !defined(__FreeBSD_kernel__) && !defined(__arm__) && !defined(__hppa__) && !defined(__sh__) && !defined(__aarch64__) ++#if !defined(__alpha__) && !defined(__ia64__) && !defined(__FreeBSD_kernel__) && !defined(__arm__) && !defined(__hppa__) && !defined(__sh__) && !defined(__aarch64__) && !defined(__riscv) + for(i = 0; i < NGREG; i++) + a2j_error("reg[%02d] = 0x" REGFORMAT, i, + #if defined(__powerpc__) +@@ -102,7 +102,7 @@ static void signal_segv(int signum, sigi + ucontext->uc_mcontext.gregs[i] + #endif + ); +-#endif /* alpha, ia64, kFreeBSD, arm, hppa aarch64 */ ++#endif /* alpha, ia64, kFreeBSD, arm, hppa aarch64 riscv */ + + #if defined(SIGSEGV_STACK_X86) || defined(SIGSEGV_STACK_IA64) + # if defined(SIGSEGV_STACK_IA64) diff --git a/meta-oe/recipes-multimedia/jack/a2jmidid_8.bb b/meta-oe/recipes-multimedia/jack/a2jmidid_8.bb index 7dcaaf6828..a0aa412232 100644 --- a/meta-oe/recipes-multimedia/jack/a2jmidid_8.bb +++ b/meta-oe/recipes-multimedia/jack/a2jmidid_8.bb @@ -13,6 +13,7 @@ SRC_URI = " \ http://download.gna.org/${BPN}/${BPN}-${PV}.tar.bz2 \ file://0001-wscript-add-pthread-library-dependency-to-fix-linkin.patch \ file://0002-aarch64.patch \ + file://riscv_ucontext.patch \ " SRC_URI[md5sum] = "9cf4edbc3ad2ddeeaf6c8c1791ff3ddd" SRC_URI[sha256sum] = "2a9635f62aabc59edb54ada07048dd47e896b90caff94bcee710d3582606f55f"