From patchwork Wed Apr 23 09:53:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 28859 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f199.google.com (mail-yk0-f199.google.com [209.85.160.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E7B1720534 for ; Wed, 23 Apr 2014 09:54:38 +0000 (UTC) Received: by mail-yk0-f199.google.com with SMTP id 200sf1770670ykr.10 for ; Wed, 23 Apr 2014 02:54:38 -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=EW8oMxN3Y3y0QjycPFtqjkvURKvQ2Or/9KtCNQIxbzc=; b=ggvLAGeoLO/ifcLiyqoyGB4/1rcs9YBmpotphmFVEFVHDnq/9MACnNLsQVhmYf4/42 Ywk6nwVl67S0cKfN+gStfb+LZWX/Mk9VvNlde83CCmAhGTjVmDsq/phiBB6Pj/OxMmF5 W8peUB9K9h7S10lYg3DAE6Amh/DRwNImX4GE9OJggbA1S2D8wTvAXtjvU6yDlkvtg6aj Aj3f3r6Lrb6IrWDV6y6dcv61PvHZV4/LH1MrRuCnqm95GWuJcm1L5PwGFwmHp9ptKLdC 7EaxtIuDxlPJoBsY6A9jcz2AoG4Vau4e4XmwuHh+botprTd3xMgi+PZ76POEDx5uj9sr 9WUQ== X-Gm-Message-State: ALoCoQkds4Hp0+Rchcs0p2sJ0qQJiKlW/mEBCTOUmrKgKRLnGgV5XHd+LITwgjulTI++lpKiGuCr X-Received: by 10.58.198.3 with SMTP id iy3mr25694842vec.39.1398246878671; Wed, 23 Apr 2014 02:54:38 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.88.229 with SMTP id t92ls556427qgd.9.gmail; Wed, 23 Apr 2014 02:54:38 -0700 (PDT) X-Received: by 10.220.133.197 with SMTP id g5mr13878278vct.20.1398246878469; Wed, 23 Apr 2014 02:54:38 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id cb3si71073vdc.203.2014.04.23.02.54.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Apr 2014 02:54:38 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id la4so837149vcb.31 for ; Wed, 23 Apr 2014 02:54:38 -0700 (PDT) X-Received: by 10.58.154.10 with SMTP id vk10mr41713896veb.18.1398246878382; Wed, 23 Apr 2014 02:54:38 -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.220.221.72 with SMTP id ib8csp90699vcb; Wed, 23 Apr 2014 02:54:38 -0700 (PDT) X-Received: by 10.224.44.17 with SMTP id y17mr57735305qae.36.1398246877912; Wed, 23 Apr 2014 02:54:37 -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 m2si189969qae.89.2014.04.23.02.54.37 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 23 Apr 2014 02:54:37 -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 1Wctse-00059a-7F; Wed, 23 Apr 2014 09:54:16 +0000 Received: from mail-ee0-f54.google.com ([74.125.83.54]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WctsM-00057m-W8 for lng-odp@lists.linaro.org; Wed, 23 Apr 2014 09:53:59 +0000 Received: by mail-ee0-f54.google.com with SMTP id d49so569016eek.13 for ; Wed, 23 Apr 2014 02:54:13 -0700 (PDT) X-Received: by 10.15.48.129 with SMTP id h1mr62231129eew.57.1398246853868; Wed, 23 Apr 2014 02:54:13 -0700 (PDT) Received: from uglx0153363.synapse.com ([195.238.92.128]) by mx.google.com with ESMTPSA id o4sm4757906eef.20.2014.04.23.02.54.11 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Apr 2014 02:54:12 -0700 (PDT) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Wed, 23 Apr 2014 12:53:53 +0300 Message-Id: <1398246839-15554-4-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398246839-15554-1-git-send-email-taras.kondratiuk@linaro.org> References: <1398246839-15554-1-git-send-email-taras.kondratiuk@linaro.org> Subject: [lng-odp] [PATCH v3 3/9] Keystone2: Inherit linux-generic 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: taras.kondratiuk@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) 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 Sources and headers search paths are configured to look in linux-generic if absent in linux-keystone2 directory. linux-keystone2 is empty now, so library build for this platform will match linux-generic. Signed-off-by: Taras Kondratiuk --- platform/linux-keystone2/Makefile | 100 +++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 platform/linux-keystone2/Makefile diff --git a/platform/linux-keystone2/Makefile b/platform/linux-keystone2/Makefile new file mode 100644 index 0000000..ba8cdc6 --- /dev/null +++ b/platform/linux-keystone2/Makefile @@ -0,0 +1,100 @@ +## +## Copyright (c) 2013, Linaro Limited +## All rights reserved. +## +## SPDX-License-Identifier: BSD-3-Clause +## + +.DEFAULT_GOAL := libs + +ODP_ROOT = ../.. +LIB_DIR = ./lib +DOC_DIR = ./doc + +LINUX_GENERIC_DIR = ../linux-generic + +EXTRA_CFLAGS += -I$(ODP_ROOT)/include +EXTRA_CFLAGS += -I./include +EXTRA_CFLAGS += -I./include/api +EXTRA_CFLAGS += -I$(LINUX_GENERIC_DIR)/include +EXTRA_CFLAGS += -I$(LINUX_GENERIC_DIR)/include/api + +include $(ODP_ROOT)/Makefile.inc +STATIC_LIB = ./lib/libodp.a + +# +# Object files +# +OBJS = +OBJS += $(OBJ_DIR)/odp_barrier.o +OBJS += $(OBJ_DIR)/odp_buffer.o +OBJS += $(OBJ_DIR)/odp_buffer_pool.o +OBJS += $(OBJ_DIR)/odp_coremask.o +OBJS += $(OBJ_DIR)/odp_init.o +OBJS += $(OBJ_DIR)/odp_linux.o +OBJS += $(OBJ_DIR)/odp_packet.o +OBJS += $(OBJ_DIR)/odp_packet_flags.o +OBJS += $(OBJ_DIR)/odp_packet_io.o +OBJS += $(OBJ_DIR)/odp_packet_socket.o +OBJS += $(OBJ_DIR)/odp_queue.o +OBJS += $(OBJ_DIR)/odp_schedule.o +OBJS += $(OBJ_DIR)/odp_shared_memory.o +OBJS += $(OBJ_DIR)/odp_spinlock.o +OBJS += $(OBJ_DIR)/odp_system_info.o +OBJS += $(OBJ_DIR)/odp_thread.o +OBJS += $(OBJ_DIR)/odp_ticketlock.o +OBJS += $(OBJ_DIR)/odp_time.o +OBJS += $(OBJ_DIR)/odp_timer.o +OBJS += $(OBJ_DIR)/odp_ring.o +OBJS += $(OBJ_DIR)/odp_rwlock.o + +DEPS = $(OBJS:.o=.d) + +.PHONY: all +all: libs + +-include $(DEPS) + +$(LIB_DIR): + $(MKDIR) $(LIB_DIR) + +# +# Compile rules +# +vpath %.c source:$(LINUX_GENERIC_DIR)/source + +$(OBJ_DIR)/%.o: %.c + $(ECHO) " CC $<" + $(CC) -c -MD $(EXTRA_CFLAGS) $(CFLAGS) -o $@ $< + +# +# Lib rule +# +$(STATIC_LIB): $(OBJS) + $(AR) -cr $@ $(OBJS) + +clean: + $(RMDIR) $(OBJ_DIR) + $(RMDIR) $(LIB_DIR) + +.PHONY: docs +docs: + $(ECHO) "Documenation is not yet available" + @false + +.PHONY: libs +libs: $(OBJ_DIR) $(LIB_DIR) $(STATIC_LIB) + +.PHONY: lib_install +lib_install: libs + install -d $(DESTDIR)/lib + install -m 0644 ${STATIC_LIB} $(DESTDIR)/lib/ + +.PHONY: headers_install +headers_install: libs + $(ECHO) Installing headers to $(DESTDIR)/include + $(COPY) $(ODP_ROOT)/include $(DESTDIR) + $(COPY) $(LINUX_GENERIC_DIR)/include/api/* $(DESTDIR)/include/ + -$(COPY) include/api/* $(DESTDIR)/include/ + +install: lib_install headers_install