From patchwork Thu Jul 24 14:56:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 34227 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0EE73235A9 for ; Thu, 24 Jul 2014 14:57:30 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id rp18sf18394589iec.8 for ; Thu, 24 Jul 2014 07:57:29 -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=ctkJWYDRQivbkLbcZaB6ITXGaapXff5jcQnrBs1bPHY=; b=QFnu1FvmCnxTByEa0IY6u5LcBJHQVvHwwfsNPxx66zcWIlTekgSXPsBIAKr8jobjvp KqO20PmlLizE7U7ukXlmJ7qG3ZX58cn2S5RTyFVaF+As5V6FGwNZpvHXM1J2Oh3XY2Ep dFcQbvcZhdZwGnh00A+hyPbC+qejheXoqTzchx12tvZ0g6r+at0DIai6or8sCdalxX86 nNXKijaXqGPmp3AgaR1HzJ8q+3cusTNnox+9r6d2kd89xUeTNo1xcjrkADEtHhC+Tlon xO8czHXCrPl+EYeT9qfgPmTQ/k9lFH2od56FvLB3GE53iyaQICT4jsN3f49ziNjGfpWo rfcA== X-Gm-Message-State: ALoCoQlzIyXaFseSKQ67eML876gWX6jc0exiNuMk30bKkaipx2/p6q/+34/fQnLh3Ymui20m4q+6 X-Received: by 10.42.49.138 with SMTP id w10mr4314941icf.13.1406213849631; Thu, 24 Jul 2014 07:57:29 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.108.228 with SMTP id j91ls864182qgf.31.gmail; Thu, 24 Jul 2014 07:57:29 -0700 (PDT) X-Received: by 10.52.26.114 with SMTP id k18mr10754861vdg.77.1406213849510; Thu, 24 Jul 2014 07:57:29 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id h4si5260681vdi.70.2014.07.24.07.57.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Jul 2014 07:57:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id hq11so5033733vcb.16 for ; Thu, 24 Jul 2014 07:57:29 -0700 (PDT) X-Received: by 10.53.5.230 with SMTP id cp6mr10758819vdd.25.1406213849402; Thu, 24 Jul 2014 07:57:29 -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 tc5csp371798vcb; Thu, 24 Jul 2014 07:57:29 -0700 (PDT) X-Received: by 10.140.30.73 with SMTP id c67mr15497532qgc.16.1406213848787; Thu, 24 Jul 2014 07:57:28 -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 n63si11503052qge.1.2014.07.24.07.57.28 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 24 Jul 2014 07:57:28 -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 1XAKSW-0003sE-28; Thu, 24 Jul 2014 14:57:28 +0000 Received: from mail-lb0-f181.google.com ([209.85.217.181]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XAKSN-0003rk-2w for lng-odp@lists.linaro.org; Thu, 24 Jul 2014 14:57:19 +0000 Received: by mail-lb0-f181.google.com with SMTP id 10so2315905lbg.26 for ; Thu, 24 Jul 2014 07:57:13 -0700 (PDT) X-Received: by 10.112.136.196 with SMTP id qc4mr9876604lbb.6.1406213833139; Thu, 24 Jul 2014 07:57:13 -0700 (PDT) Received: from localhost ([79.102.188.146]) by mx.google.com with ESMTPSA id q8sm4485122laj.33.2014.07.24.07.57.11 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 24 Jul 2014 07:57:12 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Thu, 24 Jul 2014 16:56:55 +0200 Message-Id: <1406213816-22711-3-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1406213816-22711-1-git-send-email-anders.roxell@linaro.org> References: <1406213816-22711-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 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.171 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..97c78cd 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 EXTERNAL_SYSROOT_ +KS2_PLATFORM += -I$(EXTERNAL_SYSROOT)/usr/include + +AM_LDFLAGS += -L$(EXTERNAL_SYSROOT)/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..1f500f1 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-external-sysroot= +# if openem is installed to the default path then you don't need to specify --with-external-sysroot= when you run configure. make