From patchwork Mon Jul 28 13:30:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 34367 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5DEF520AE8 for ; Mon, 28 Jul 2014 13:30:43 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id hq11sf23086226vcb.11 for ; Mon, 28 Jul 2014 06:30:43 -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=L3EOeUeHzJl+KjqhMn7MPL6NA0prh8swt4sYP2ATCxxJ2CfTN71Ary0RulpEV+OnrX 77yLn48V3n7S9h6gTta6C9solLf9GvE0lmTY9YebpoJ7ajq6iA5X08IeK5sBIXuaBwwo MDcZiu5mv0fCZy3lBW9nVgflmoUVFWA0rTHVSvvDUfriP26wb0SAW/xGb8Ree+Q0v1Pi aIQEmGaU2uBh8IsfTxkE7JNN68rRTlwAfzGI5ahzpeTD43zz15SCWz9oOQGL7bimATD3 gWkVyug0Dd/MUJip5uwOTII3CTmYQMIp87byJS8buF9GXxYqjX5SMVNaVVWAHCtXpXZC tQnQ== X-Gm-Message-State: ALoCoQlv9DaHRRjrN+EctadeEZhjp++6SKCch2G570oVpvV1TBs3VYwQiGEFxZ3m1Dbi7qI6pJnp X-Received: by 10.236.87.210 with SMTP id y58mr11480230yhe.38.1406554243167; Mon, 28 Jul 2014 06:30:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.86.80 with SMTP id o74ls300258qgd.48.gmail; Mon, 28 Jul 2014 06:30:43 -0700 (PDT) X-Received: by 10.52.154.106 with SMTP id vn10mr37047825vdb.36.1406554243076; Mon, 28 Jul 2014 06:30:43 -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 l7si12428377vel.22.2014.07.28.06.30.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Jul 2014 06:30:43 -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 hq11so11078171vcb.16 for ; Mon, 28 Jul 2014 06:30:43 -0700 (PDT) X-Received: by 10.52.129.200 with SMTP id ny8mr37649853vdb.27.1406554242998; Mon, 28 Jul 2014 06:30:42 -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 tc5csp166708vcb; Mon, 28 Jul 2014 06:30:42 -0700 (PDT) X-Received: by 10.220.250.203 with SMTP id mp11mr308290vcb.2.1406554242517; Mon, 28 Jul 2014 06:30:42 -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 d7si32101255qag.107.2014.07.28.06.30.41 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 28 Jul 2014 06:30:42 -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 1XBl0j-0001iz-P7; Mon, 28 Jul 2014 13:30:41 +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 1XBl0c-0001iK-Am for lng-odp@lists.linaro.org; Mon, 28 Jul 2014 13:30:34 +0000 Received: by mail-lb0-f180.google.com with SMTP id v6so5863050lbi.11 for ; Mon, 28 Jul 2014 06:30:28 -0700 (PDT) X-Received: by 10.152.5.167 with SMTP id t7mr36162331lat.54.1406554228401; Mon, 28 Jul 2014 06:30:28 -0700 (PDT) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id qe3sm30855146lbb.20.2014.07.28.06.30.26 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 28 Jul 2014 06:30:27 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Mon, 28 Jul 2014 15:30:13 +0200 Message-Id: <1406554214-8416-3-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1406554214-8416-1-git-send-email-anders.roxell@linaro.org> References: <1406277401-28679-1-git-send-email-anders.roxell> <1406554214-8416-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 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..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