From patchwork Fri Jun 30 12:59:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106707 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp2306250qge; Fri, 30 Jun 2017 06:03:17 -0700 (PDT) X-Received: by 10.84.232.15 with SMTP id h15mr24261748plk.168.1498827797651; Fri, 30 Jun 2017 06:03:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498827797; cv=none; d=google.com; s=arc-20160816; b=Rj4u70NhQtx23QrG/NFDVoz6rFrJDLw1ou+MmqlgfFLqbGugmGxNrwGmh7I62tD3qD CcnUGgFo+GOkLVNAYg9YeUEBz5zYILocPo/GhYwgcyQBU84RwadkR5VQ+cXcGlB9GvXo x/CdFCNg4PiMTuK1mPBcx1PH3xTlX/guASb9ODWGNv4PDNI5EijobuU/iO6/gbAKfRc7 uoKbO1nBrRjppTkwr+/hazepSTblFK01h2LhMfMCgnVODMx4SC7Of+U4ziYG5w5E/7mJ IQcYr3S98f7p+fMHKUP0tWCmhinu0vlvLPIF9gadwCPBQDkb9o0KlyAKaTGsqYLck9VT qU4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=Gf8CtWOI0ziVB5LqT/Gsmil4g6BrQy9LeEMCfB/ysi8=; b=H2KsYuy76tETagbz2EuZpIpcDac0BEWEejo0JOr+K4uWd0inxyuToPQ4fCKs/xQf5X yVaAsznM0wooD1XtsWY3DVg5yhbqRu1iVlSihRHAaHwg+EjdTrVPIjdFELcCNS/huKwN +cT08ZtMyxvCZFPg7mpvlTBJWcBeyNR/Ter6qJRdzLMTvdZ/mVDZLnuMBuz0yuiW70KM U5JJdILALnUTj4+dTf8IH5flJ1DjLKDfy4cX7LfEfIh9Mgx8XAw0gkn6xj6V/5LLQmab Uqjp6+gfkw2WnKZiYCwS4Pu/wVKTMBrtIq+UDgvJ0rBxvHIIBS/91Sn9+QQrvA6dbQFE UCdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=gSx0+2Jd; 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=NONE 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 63si6451393plb.49.2017.06.30.06.03.17; Fri, 30 Jun 2017 06:03:17 -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.b=gSx0+2Jd; 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=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 4D256782E8; Fri, 30 Jun 2017 13:01:17 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg0-f45.google.com (mail-pg0-f45.google.com [74.125.83.45]) by mail.openembedded.org (Postfix) with ESMTP id 4B9E778283 for ; Fri, 30 Jun 2017 13:00:35 +0000 (UTC) Received: by mail-pg0-f45.google.com with SMTP id j186so63482232pge.2 for ; Fri, 30 Jun 2017 06:00:37 -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:in-reply-to:references; bh=uawfpAPnGIUrB1qXYyQjT9WsbfIjocLurGlvO/vmmEA=; b=gSx0+2Jdq/NFnHWOQKDsVwc5d5ZkKt5V0aqF5N3BR6TImjoC0XbOoL7mzuRZg0qeYz +1EMsvflGRS2nAn50nmDTOJ0kiU9pXnr0aT5CiV8ko24VQ3pP32X9q7gNvgnc24z/Cf6 h99tCCQ/qY57P12Xf9BfD0Dss7YH7pVZFJBHlVCSCkwgV7PIKfPrrLKvdeo2ypciqj/s WYna2RoJxUa6rddc3yV9Fr6iVdJ1jJpJAmy8M4I0hMYvCuonfHa3yd7ZuvS5pVorz6uf ga8PwzG+C3YbbfJzKBx9oU6nCRqjJVrhO9fBc8ZLwlDqa6Fcb+1+f5PznjtvQSImGWso RA3Q== 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=uawfpAPnGIUrB1qXYyQjT9WsbfIjocLurGlvO/vmmEA=; b=s62viFmmI0dl5BqUs4ij/asow8uYO2LUVeptDonXzIpgG4mzyrsdSYlodJvZdIx83s tQYlqRTlD5sCRFaETaCOJKr0oSoG9UWMW6U2qAQpzGrRoSvZxcBXVru2zVwgPUWctx0b Wv21rMmOBLNUYHFtcEUElnD5Q8LvCAXOSQts6rzlPkZt9J8ztpXQtHxqtxVwlLNXc8wQ hHOS8YUMPP3Sc6u7nqbk2gjhscCOeO25wEVthRK6THRsCSilW66IA10CMF3rBJDwTgXj iR9CJRDhXQmUVi7BJAL3jtxl/f5l1s0djRbKkehC4bqGDJKQpF6i14vuv/HY2sitCPId j05Q== X-Gm-Message-State: AKS2vOzMeWughzmq2HiMArYZm+zWZsph0nug12BZNJ36IQeu+fT6Rpev mU961GtWqTDLnhib X-Received: by 10.84.232.79 with SMTP id f15mr23843842pln.189.1498827636384; Fri, 30 Jun 2017 06:00:36 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id t26sm10735590pfl.41.2017.06.30.06.00.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Jun 2017 06:00:35 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Fri, 30 Jun 2017 05:59:56 -0700 Message-Id: <20170630125957.3342-16-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170630125957.3342-1-raj.khem@gmail.com> References: <20170630125957.3342-1-raj.khem@gmail.com> Subject: [oe] [meta-oe][PATCH 16/17] uim: Add support for aarch64 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: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Backport patch from https://github.com/uim/libgcroots/pull/1 Signed-off-by: Khem Raj --- .../uim/uim/0001-Add-support-for-aarch64.patch | 82 ++++++++++++++++++++++ meta-oe/recipes-support/uim/uim_1.8.6.bb | 1 + 2 files changed, 83 insertions(+) create mode 100644 meta-oe/recipes-support/uim/uim/0001-Add-support-for-aarch64.patch -- 2.13.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-support/uim/uim/0001-Add-support-for-aarch64.patch b/meta-oe/recipes-support/uim/uim/0001-Add-support-for-aarch64.patch new file mode 100644 index 000000000..4b1249436 --- /dev/null +++ b/meta-oe/recipes-support/uim/uim/0001-Add-support-for-aarch64.patch @@ -0,0 +1,82 @@ +From 24fd52cc45f7b5ff45afe072f5fbe66485df8c8e Mon Sep 17 00:00:00 2001 +From: Andreas Schwab +Date: Wed, 29 Oct 2014 14:18:28 +0100 +Subject: [PATCH] Add support for aarch64 + +* include/private/gcconfig.h: Add support for aarch64. +--- + sigscheme/libgcroots/include/private/gcconfig.h | 37 +++++++++++++++++++++++++ + 1 file changed, 37 insertions(+) + +diff --git a/sigscheme/libgcroots/include/private/gcconfig.h b/sigscheme/libgcroots/include/private/gcconfig.h +index 4d42b03..0f13db6 100644 +--- a/sigscheme/libgcroots/include/private/gcconfig.h ++++ b/sigscheme/libgcroots/include/private/gcconfig.h +@@ -62,6 +62,13 @@ + # endif + + /* Determine the machine type: */ ++# if defined(__aarch64__) ++# define AARCH64 ++# if !defined(LINUX) ++# define NOSYS ++# define mach_type_known ++# endif ++# endif + # if defined(__arm__) || defined(__thumb__) + # define ARM32 + # if !defined(LINUX) && !defined(NETBSD) +@@ -231,6 +238,10 @@ + # define IA64 + # define mach_type_known + # endif ++# if defined(LINUX) && defined(__aarch64__) ++# define AARCH64 ++# define mach_type_known ++# endif + # if defined(LINUX) && defined(__arm__) + # define ARM32 + # define mach_type_known +@@ -504,6 +515,7 @@ + /* running Amdahl UTS4 */ + /* S390 ==> 390-like machine */ + /* running LINUX */ ++ /* AARCH64 ==> ARM AArch64 */ + /* ARM32 ==> Intel StrongARM */ + /* IA64 ==> Intel IPF */ + /* (e.g. Itanium) */ +@@ -1724,6 +1736,31 @@ + # endif + # endif + ++# ifdef AARCH64 ++# define CPP_WORDSZ 64 ++# define MACH_TYPE "AARCH64" ++# define ALIGNMENT 8 ++# ifndef HBLKSIZE ++# define HBLKSIZE 4096 ++# endif ++# ifdef LINUX ++# define OS_TYPE "LINUX" ++# define LINUX_STACKBOTTOM ++# define DYNAMIC_LOADING ++ extern int __data_start[]; ++# define DATASTART ((ptr_t)__data_start) ++ extern char _end[]; ++# define DATAEND ((ptr_t)(&_end)) ++# endif ++# ifdef NOSYS ++ /* __data_start is usually defined in the target linker script. */ ++ extern int __data_start[]; ++# define DATASTART ((ptr_t)__data_start) ++ extern void *__stack_base__; ++# define STACKBOTTOM ((ptr_t)__stack_base__) ++# endif ++# endif ++ + # ifdef ARM32 + # define CPP_WORDSZ 32 + # define MACH_TYPE "ARM32" +-- +2.13.2 + diff --git a/meta-oe/recipes-support/uim/uim_1.8.6.bb b/meta-oe/recipes-support/uim/uim_1.8.6.bb index 76a41252d..ed846b968 100644 --- a/meta-oe/recipes-support/uim/uim_1.8.6.bb +++ b/meta-oe/recipes-support/uim/uim_1.8.6.bb @@ -8,6 +8,7 @@ SRC_URI = "http://uim.googlecode.com/files/uim-${PV}.tar.bz2" SRC_URI_append_class-target = " file://uim-module-manager.patch \ file://0001-fix-bug-for-cross-compile.patch \ + file://0001-Add-support-for-aarch64.patch \ " SRC_URI[md5sum] = "ecea4c597bab1fd4ba98ea84edcece59" SRC_URI[sha256sum] = "7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1cb235f"