From patchwork Wed Jun 18 11:33:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 32131 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C5765206A0 for ; Wed, 18 Jun 2014 11:33:56 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id t59sf2430737yho.2 for ; Wed, 18 Jun 2014 04:33:56 -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: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=eEEm32IpoPiIsYC/BqBsNOybthZdfMDujBjvPP40OBY=; b=Go5uMC9IFwRr9Jd4JSZuHHLbK3MFyb+ZOKiMJDG8Td5tkYad+XarnG1DrEsPjNFCQh euLjQkitzp3WuDQwGKeURz0PnOAOpY6utJKm9iD3dM6XNTZ/eUad41GFDrs/RIBap5lj QXAciobpfdGq5vbPMzsx0Yl+hCGgeaWP99nyiDlLZ4VViW/x0IA8Q4vXLauVWuuvZRR7 YVx+Arr02U8ag47/wlFmnUUgX8ke+Rr1pzu7IkKJuL8GXxjE34+xJKG7awILFfHhLQmR aYpGkxpFSYnk1bV4LXDXHiwlQxPZpjgyS+qZHWuph70dSIH39g5BTq4RdyTZOCLveocJ H83A== X-Gm-Message-State: ALoCoQlW+U2GF45XOMUWsQgaq6GBfZxftva1lmzjVCX/R+VqBkScZ7wymxfdqDSZAkQKyYzi9EDL X-Received: by 10.224.127.70 with SMTP id f6mr503543qas.5.1403091236527; Wed, 18 Jun 2014 04:33:56 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.50.228 with SMTP id s91ls67236qga.58.gmail; Wed, 18 Jun 2014 04:33:56 -0700 (PDT) X-Received: by 10.58.187.19 with SMTP id fo19mr731989vec.45.1403091236455; Wed, 18 Jun 2014 04:33:56 -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 d3si739817vck.42.2014.06.18.04.33.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Jun 2014 04:33:56 -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 hy4so636573vcb.33 for ; Wed, 18 Jun 2014 04:33:56 -0700 (PDT) X-Received: by 10.58.29.164 with SMTP id l4mr829118veh.8.1403091236358; Wed, 18 Jun 2014 04:33:56 -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.54.6 with SMTP id vs6csp277388vcb; Wed, 18 Jun 2014 04:33:56 -0700 (PDT) X-Received: by 10.224.70.7 with SMTP id b7mr2083265qaj.28.1403091235935; Wed, 18 Jun 2014 04:33:55 -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 g4si1920037qai.6.2014.06.18.04.33.55 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 18 Jun 2014 04:33:55 -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 1WxE66-0000Lm-Or; Wed, 18 Jun 2014 11:32:10 +0000 Received: from mail-lb0-f176.google.com ([209.85.217.176]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WxE60-0000Lg-A4 for lng-odp@lists.linaro.org; Wed, 18 Jun 2014 11:32:04 +0000 Received: by mail-lb0-f176.google.com with SMTP id w7so412452lbi.21 for ; Wed, 18 Jun 2014 04:33:42 -0700 (PDT) X-Received: by 10.112.97.103 with SMTP id dz7mr900243lbb.100.1403091222046; Wed, 18 Jun 2014 04:33:42 -0700 (PDT) Received: from maxim-lap.localhost.onion ([92.39.133.154]) by mx.google.com with ESMTPSA id bj7sm1394324lbc.22.2014.06.18.04.33.40 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Jun 2014 04:33:41 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Wed, 18 Jun 2014 15:33:36 +0400 Message-Id: <1403091216-1935-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 X-Topics: patch Subject: [lng-odp] [PATCH] odp add option to compile position independent lib 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: maxim.uvarov@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: Maxim Uvarov --- README | 7 +++++++ platform/linux-generic/Makefile | 4 +++- platform/linux-keystone2/Makefile | 6 ++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/README b/README index dc6dfe3..36545dd 100644 --- a/README +++ b/README @@ -20,6 +20,13 @@ Main git repository: For cross compiling set up appropriate CC: make CC=armeb-linux-gnueabihf-gcc + Make command options: + ODP_RELOC compile library with position independent code; + VERBOSE turn on compilation debug; + ODP_DEBUG_PRINT (default is yes) more debug information; + DEBUG compile gdb friendly code; + ODP_HAVE_NETMAP (linux-generic only) turn on netmap packet i/o + ODP patches for 3-rd party applications: git://git.linaro.org/lng/odp-apps.git diff --git a/platform/linux-generic/Makefile b/platform/linux-generic/Makefile index 00fb5b2..0737656 100644 --- a/platform/linux-generic/Makefile +++ b/platform/linux-generic/Makefile @@ -38,7 +38,9 @@ EXTRA_CFLAGS += -I./include/api # Option for shared libraries. # Decreases performance with static libraries. -# EXTRA_CFLAGS += -fPIC +ifeq ($(ODP_RELOC),yes) +EXTRA_CFLAGS += -fpic +endif ifeq ($(ODP_HAVE_NETMAP),yes) EXTRA_CFLAGS += -DODP_HAVE_NETMAP diff --git a/platform/linux-keystone2/Makefile b/platform/linux-keystone2/Makefile index 6620cb2..a0e2922 100644 --- a/platform/linux-keystone2/Makefile +++ b/platform/linux-keystone2/Makefile @@ -13,6 +13,12 @@ DOC_DIR = ./doc LINUX_GENERIC_DIR = ../linux-generic +# Option for shared libraries. +# Decreases performance with static libraries. +ifeq ($(ODP_RELOC),yes) +EXTRA_CFLAGS += -fpic +endif + MY_PLATFORM = DEVICE_K2K PLAT_CFLAGS = -D$(MY_PLATFORM)