From patchwork Tue Jul 29 09:16:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 34458 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 E8C8620DCC for ; Tue, 29 Jul 2014 09:16:33 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id rp18sf62711825iec.8 for ; Tue, 29 Jul 2014 02:16:33 -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=QF/LJ3d2VsjPMWNE8JTpJdcORXwzqBlpdinsPrzhrTrJAoUoruBTwDy84pKmtmQKvf EuroOMXPK56sCO7+Edm9yzdM1P8PF3afazocTMxQHtTL7I4C36+BZhiV3kosetvJeKO1 i6ZiirnfbIUaxQB0xzTdjqg/WIjXVph8Qbd7yY3kcL9Qs7KNbT4RNGgl6sVikVic50fY C4pr6l4mD6y1s3I14WieqJ2qjDuljDYnXBMBYA4LpOUjf287/EmbAs62wK7bYVuyM82B PnZ0OUi5aCQVwXgv0G1NHIjniSv6O2sbCSkdcnfW2oiNB16h/a69qR7Eh6IY4rv4nWQS qn0Q== X-Gm-Message-State: ALoCoQnC6OijEuI+LIzpkVRehTCvH5Wcm2EKYSSpvBkmG2d/hW+sVlxZng8MJB1iNbIcy53P0WMv X-Received: by 10.182.102.34 with SMTP id fl2mr305921obb.16.1406625393469; Tue, 29 Jul 2014 02:16:33 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.41.231 with SMTP id z94ls57648qgz.54.gmail; Tue, 29 Jul 2014 02:16:33 -0700 (PDT) X-Received: by 10.52.248.232 with SMTP id yp8mr40932vdc.83.1406625393327; Tue, 29 Jul 2014 02:16:33 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id ls1si14207495vcb.99.2014.07.29.02.16.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Jul 2014 02:16:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.174 as permitted sender) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id la4so13157367vcb.19 for ; Tue, 29 Jul 2014 02:16:33 -0700 (PDT) X-Received: by 10.220.122.132 with SMTP id l4mr449816vcr.41.1406625393248; Tue, 29 Jul 2014 02:16:33 -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 tc5csp229963vcb; Tue, 29 Jul 2014 02:16:32 -0700 (PDT) X-Received: by 10.224.119.198 with SMTP id a6mr1249399qar.39.1406625392796; Tue, 29 Jul 2014 02:16:32 -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 c110si36745835qgf.101.2014.07.29.02.16.32 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 29 Jul 2014 02:16:32 -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 1XC3WJ-0006P4-UU; Tue, 29 Jul 2014 09:16:31 +0000 Received: from mail-lb0-f180.google.com ([209.85.217.180]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XC3WC-0006OM-RX for lng-odp@lists.linaro.org; Tue, 29 Jul 2014 09:16:24 +0000 Received: by mail-lb0-f180.google.com with SMTP id v6so6779965lbi.11 for ; Tue, 29 Jul 2014 02:16:19 -0700 (PDT) X-Received: by 10.112.91.163 with SMTP id cf3mr942028lbb.42.1406625378993; Tue, 29 Jul 2014 02:16:18 -0700 (PDT) Received: from localhost (c-2ec28468-74736162.cust.telenor.se. [46.194.132.104]) by mx.google.com with ESMTPSA id q8sm13892576laj.33.2014.07.29.02.16.17 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 29 Jul 2014 02:16:18 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Tue, 29 Jul 2014 11:16:03 +0200 Message-Id: <1406625364-13515-3-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1406625364-13515-1-git-send-email-anders.roxell@linaro.org> References: <1406625364-13515-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv4 2/3] keystone2: make use of variable --with-sysroot-path 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.174 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