From patchwork Fri Jul 25 08:36:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 34267 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f200.google.com (mail-ie0-f200.google.com [209.85.223.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E6D1C20551 for ; Fri, 25 Jul 2014 08:37:11 +0000 (UTC) Received: by mail-ie0-f200.google.com with SMTP id at20sf25127586iec.11 for ; Fri, 25 Jul 2014 01:37:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=axpJCn4+KJRDZwZ7u6gcbdLmwQeM0qR4eQeoQEGjyv0=; b=X7Ompa50Tr8VWmwALuEkojs5hUbC3CXBTmUVD0topn1VNyrU7lPRJuwI7HHpce//G/ XMn+Du+yKmkhm1b1t81fDncsyQOYUwrdZ8uiW5ceOlWTY94yCicZljuayWsSB04lmYcy 0BcnTASFq7ld8yzvIWg+LKoIfapanLOKM9CgE/VKd/xWrmOQhhjfm8kYI1mS/pODVrko MJFj0kDeMMXHW9f6Z2I57x0AGPfNnbGS0lCIth9eNQWN4p/ijbN63U8g1mnQwf4WtiDh YlUJ7bYoIDiqRyahHUWJE/Z5waMJLjEfGfrRlOLZinCqQArpJ7Yy+fOgmGyycuFr4F0Z EheA== X-Gm-Message-State: ALoCoQlUKwuLNnHB+wOmDxGY7tBRZ3g6jUVu6oMd14+skuZYrDHUJVqe9PewW2rpfjzCkL15R9B8 X-Received: by 10.182.128.234 with SMTP id nr10mr7528349obb.0.1406277431471; Fri, 25 Jul 2014 01:37:11 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.47.174 with SMTP id m43ls1161583qga.84.gmail; Fri, 25 Jul 2014 01:37:11 -0700 (PDT) X-Received: by 10.52.231.226 with SMTP id tj2mr16040770vdc.16.1406277431271; Fri, 25 Jul 2014 01:37:11 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id tf2si6982568vcb.77.2014.07.25.01.37.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Jul 2014 01:37:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id hu12so6796077vcb.20 for ; Fri, 25 Jul 2014 01:37:11 -0700 (PDT) X-Received: by 10.220.59.65 with SMTP id k1mr19003244vch.22.1406277431185; Fri, 25 Jul 2014 01:37:11 -0700 (PDT) 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.221.37.5 with SMTP id tc5csp20648vcb; Fri, 25 Jul 2014 01:37:10 -0700 (PDT) X-Received: by 10.224.161.129 with SMTP id r1mr4103992qax.86.1406277430719; Fri, 25 Jul 2014 01:37:10 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id x8si15137846qas.81.2014.07.25.01.37.10 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 25 Jul 2014 01:37:10 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XAb01-0005Tc-RH; Fri, 25 Jul 2014 08:37:09 +0000 Received: from mail-la0-f44.google.com ([209.85.215.44]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XAazt-0005T4-Lg for lng-odp@lists.linaro.org; Fri, 25 Jul 2014 08:37:01 +0000 Received: by mail-la0-f44.google.com with SMTP id e16so2799621lan.17 for ; Fri, 25 Jul 2014 01:36:55 -0700 (PDT) X-Received: by 10.112.146.202 with SMTP id te10mr1133278lbb.75.1406277415650; Fri, 25 Jul 2014 01:36:55 -0700 (PDT) Received: from localhost (c-4f66bc92-74736162.cust.telenor.se. [79.102.188.146]) by mx.google.com with ESMTPSA id w7sm6155038laj.9.2014.07.25.01.36.54 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 25 Jul 2014 01:36:54 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Fri, 25 Jul 2014 10:36:40 +0200 Message-Id: <1406277401-28679-3-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1406277401-28679-1-git-send-email-anders.roxell@linaro.org> References: <1406277401-28679-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv2 2/3] keystone2: make use of variable --with-external-sysroot X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: anders.roxell@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.220.175 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 Signed-off-by: Anders Roxell --- platform/linux-keystone2/Makefile.am | 5 +++++ platform/linux-keystone2/README | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/platform/linux-keystone2/Makefile.am b/platform/linux-keystone2/Makefile.am index 12c9f5c..450fb11 100644 --- a/platform/linux-keystone2/Makefile.am +++ b/platform/linux-keystone2/Makefile.am @@ -9,6 +9,11 @@ nodist_pkgconfig_DATA = $(top_builddir)/pkgconfig/libodp.pc .PHONY: pkgconfig/libodp.pc KS2_PLATFORM = DEVICE_K2K +if SYSROOT_PATH_ +KS2_PLATFORM += -I$(SYSROOT_PATH)/usr/include + +AM_LDFLAGS += -L$(SYSROOT_PATH)/usr/lib +endif PLAT_CFLAGS = -D$(KS2_PLATFORM) PLAT_CFLAGS += -D_GNU_SOURCE -DEM_32_BIT -DTI_EM_CENTRAL_SCHED diff --git a/platform/linux-keystone2/README b/platform/linux-keystone2/README index 2f95b98..4b7a0ac 100644 --- a/platform/linux-keystone2/README +++ b/platform/linux-keystone2/README @@ -33,5 +33,6 @@ Check README file in OpenEM root directory for build instructions. 3. Keystone2 ODP build ./bootstrap -./configure --host=arm-linux-gnueabihf --with-platform=linux-keystone2 LDFLAGS=-L/usr/lib CFLAGS=-I/usr/include +./configure --host=arm-linux-gnueabihf --with-platform=linux-keystone2 --with-sysroot-path= +# if openem is installed to the default path then you don't need to specify --with-sysroot-path= when you run configure. make