From patchwork Mon Nov 24 22:59:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary.robertson@linaro.org X-Patchwork-Id: 41447 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 73F0A25E18 for ; Mon, 24 Nov 2014 23:02:02 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id s18sf5982515lam.2 for ; Mon, 24 Nov 2014 15:02:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:reply-to :list-id:list-unsubscribe:list-archive:list-post:list-help :list-subscribe:mime-version:content-type:content-transfer-encoding :sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list; bh=4fvdFmB4R5IYLkkN3o2YiizW/ugJZpZwfXKavoRDEaA=; b=hPcq/Q4I2Hy9SXvAr6YydGYK992yW0goArI/rC9JJn8o7i4tzvLQ6GWIdux9NWNCrq WRcVv0R4pMpSIaw6L7zdyN5uzRcKFuf3gEjXN7LqVv3s6FKGJZ2/mEf4ys5pCksj9P1A jeuuKT8cAlOxp33vd5XfByx/Hmf9ihxR9KOsEHSPlbb6ZJRsaqzXpVFzYbXRJ2NJH/ug ijMVRaeNc7OSGeALopSuJgiy/lBJQLPkDL3MOEKAoqT+xEhF49FG56Mf7uZxv4WWWkY9 gdvOncy//X+NYX3leOwZl1cnIbgHeuxn/i2owsU7O3UaoAsRv2AwolL3O0ndPaJUbMZ8 TNug== X-Gm-Message-State: ALoCoQlQRyPi+UNLVinCQQMD1ONgHhWgC9LP5RyDBBouwmNt5ZKBcZ47mwCN5aRpSefCPH9Buw5C X-Received: by 10.112.142.36 with SMTP id rt4mr6787246lbb.3.1416870121406; Mon, 24 Nov 2014 15:02:01 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.9 with SMTP id f9ls114803laa.66.gmail; Mon, 24 Nov 2014 15:02:01 -0800 (PST) X-Received: by 10.112.73.39 with SMTP id i7mr22949033lbv.8.1416870121035; Mon, 24 Nov 2014 15:02:01 -0800 (PST) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id qb8si139028lbb.127.2014.11.24.15.02.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Nov 2014 15:02:00 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by mail-lb0-f170.google.com with SMTP id w7so8450018lbi.1 for ; Mon, 24 Nov 2014 15:02:00 -0800 (PST) X-Received: by 10.112.235.196 with SMTP id uo4mr22630071lbc.66.1416870120570; Mon, 24 Nov 2014 15:02:00 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp350206lbc; Mon, 24 Nov 2014 15:01:59 -0800 (PST) X-Received: by 10.70.19.206 with SMTP id h14mr37636746pde.49.1416870118723; Mon, 24 Nov 2014 15:01:58 -0800 (PST) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id 11si23765478pdk.88.2014.11.24.15.01.58 for ; Mon, 24 Nov 2014 15:01:58 -0800 (PST) Received-SPF: none (google.com: openembedded-devel-bounces@lists.openembedded.org does not designate permitted sender hosts) client-ip=140.211.169.62; Received: from mail.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 7A6737226D; Mon, 24 Nov 2014 23:01:51 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com [209.85.214.178]) by mail.openembedded.org (Postfix) with ESMTP id 86AC07221D for ; Mon, 24 Nov 2014 22:59:53 +0000 (UTC) Received: by mail-ob0-f178.google.com with SMTP id gq1so7893675obb.23 for ; Mon, 24 Nov 2014 14:59:54 -0800 (PST) X-Received: by 10.182.216.137 with SMTP id oq9mr13331571obc.70.1416869994096; Mon, 24 Nov 2014 14:59:54 -0800 (PST) Received: from honkintosh.cybertech.lan (65-120-133-114.dia.static.qwest.net. [65.120.133.114]) by mx.google.com with ESMTPSA id n7sm6298616obh.25.2014.11.24.14.59.52 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Nov 2014 14:59:53 -0800 (PST) From: "Gary S. Robertson" To: openembedded-devel@lists.openembedded.org Date: Mon, 24 Nov 2014 16:59:14 -0600 Message-Id: <1416869955-13519-3-git-send-email-gary.robertson@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1416869955-13519-1-git-send-email-gary.robertson@linaro.org> References: <1416869955-13519-1-git-send-email-gary.robertson@linaro.org> Subject: [oe] [meta-oe][PATCH 2/3] libhugetlbfs: Make cross-devel recognize all ix86 arches X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: 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 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: gary.robertson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: "Gary S. Robertson" In a non-native cross-development scenario, the Makefile only recognized i386 or x86_64 PC architectures. Extended this to also recognize i486, i586, and i686 Upstream Status: Accepted but not yet applied by libhugetlbfs project Signed-off-by: Gary S. Robertson --- .../0001-Makefile-Recognize-all-ix86-arches.patch | 32 ++++++++++++++++++++ .../libhugetlbfs/libhugetlbfs_git.bb | 1 + 2 files changed, 33 insertions(+) create mode 100644 meta-oe/recipes-benchmark/libhugetlbfs/files/0001-Makefile-Recognize-all-ix86-arches.patch diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-Makefile-Recognize-all-ix86-arches.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-Makefile-Recognize-all-ix86-arches.patch new file mode 100644 index 0000000..2718275 --- /dev/null +++ b/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-Makefile-Recognize-all-ix86-arches.patch @@ -0,0 +1,32 @@ +From a0166583ba5f7b6a6d2de434f633126fb12c9d29 Mon Sep 17 00:00:00 2001 +From: "Gary S. Robertson" +Date: Wed, 24 Sep 2014 15:27:31 -0500 +Subject: [PATCH] Makefile: Recognize all ix86 arches + +In a non-native build scenario, the makefile +only recognized i386 or x86_64 arches. Added support +to recognize i486, i586, i686. + +Upstream Status: Accepted by libhugetlbfs project + +Signed-off-by: Gary S. Robertson +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 91502e1..0bfaee8 100644 +--- a/Makefile ++++ b/Makefile +@@ -71,7 +71,7 @@ ELF64 = aarch64elf + TMPLIB64 = lib64 + CUSTOM_LDSCRIPTS = no + else +-ifeq ($(ARCH),i386) ++ifneq (,$(filter i386 i486 i586 i686,$(ARCH))) + CC32 = $(CC) + ELF32 = elf_i386 + TMPLIB32 = lib +-- +1.7.9.5 + diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb index 737acb9..5111935 100644 --- a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +++ b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb @@ -19,6 +19,7 @@ SRC_URI = "git://git.code.sf.net/p/libhugetlbfs/code \ file://0001-aarch64-fix-page-size-not-properly-computed.patch \ file://0001-replace-lib-lib64-hardcoded-values-by-LIBDIR32-LIBDI.patch \ file://0001-Extend-arm32-support-to-include-BE-variants.patch \ + file://0001-Makefile-Recognize-all-ix86-arches.patch \ " S = "${WORKDIR}/git"