From patchwork Thu Apr 24 17:01:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 29002 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f200.google.com (mail-yk0-f200.google.com [209.85.160.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 44AE62036A for ; Thu, 24 Apr 2014 17:02:17 +0000 (UTC) Received: by mail-yk0-f200.google.com with SMTP id q9sf6151350ykb.11 for ; Thu, 24 Apr 2014 10:02:17 -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:cc: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=eCtCI1sWgj58Vj40TScid2bXLrCsOIPtfb6ibhEXtqo=; b=Gi+kcSpr0iO0Ra2XCYOwlsdzMaXoSvDqMHDCpu4v3U46sRAze/xUkZgEvBJ2RCw3Am UoHSo7vr+JGikj2Na0PoZ8o3+RpYrBdytAXsNnDCW3Uthf9gqx4zGcTiOgt66RcXUs4Z 5gQrIeu9InjPlWtQSfI1cOq/tBw4zK+QHHveUxhxjparKjSFxfB0z5KPoOZiB98baBEa Mq5GRx64i5NJE2ufHFledxCKxGoOG5ecdVHtvfAeUd/4Jv35sbYvyNfhvsDynAuuEziJ 9z0EJcKf8TqGyYf01WdORRhsH8VsRYYf8DuKb3C/uDhDZeqL0aS1Pwfc9zUEkWoejees yW8A== X-Gm-Message-State: ALoCoQlueFIjv/UaqFDL3XCgUrI7UrJdiOy14tJRi8i9GINjq87M9Y5GC0Lhvww8PRXjuooqDTIE X-Received: by 10.236.203.113 with SMTP id e77mr1515419yho.15.1398358937797; Thu, 24 Apr 2014 10:02:17 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.44.72 with SMTP id f66ls1142233qga.47.gmail; Thu, 24 Apr 2014 10:02:17 -0700 (PDT) X-Received: by 10.58.112.98 with SMTP id ip2mr1132327veb.35.1398358937646; Thu, 24 Apr 2014 10:02:17 -0700 (PDT) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id tn6si1062992vcb.183.2014.04.24.10.02.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Apr 2014 10:02:17 -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.128.172; Received: by mail-ve0-f172.google.com with SMTP id jx11so3311751veb.3 for ; Thu, 24 Apr 2014 10:02:17 -0700 (PDT) X-Received: by 10.52.69.146 with SMTP id e18mr1624319vdu.15.1398358937551; Thu, 24 Apr 2014 10:02:17 -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 ib8csp31730vcb; Thu, 24 Apr 2014 10:02:17 -0700 (PDT) X-Received: by 10.140.41.49 with SMTP id y46mr4314716qgy.104.1398358937002; Thu, 24 Apr 2014 10:02:17 -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 a1si2502078qcn.66.2014.04.24.10.02.16 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 24 Apr 2014 10:02:16 -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 1WdN21-0004HJ-FO; Thu, 24 Apr 2014 17:01:53 +0000 Received: from mail-ee0-f47.google.com ([74.125.83.47]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WdN1g-0004G8-CJ for lng-odp@lists.linaro.org; Thu, 24 Apr 2014 17:01:32 +0000 Received: by mail-ee0-f47.google.com with SMTP id b15so2082932eek.34 for ; Thu, 24 Apr 2014 10:01:49 -0700 (PDT) X-Received: by 10.14.213.6 with SMTP id z6mr3634110eeo.98.1398358909132; Thu, 24 Apr 2014 10:01:49 -0700 (PDT) Received: from uglx0153363.synapse.com ([195.238.92.128]) by mx.google.com with ESMTPSA id w46sm17371207eeo.35.2014.04.24.10.01.47 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Apr 2014 10:01:48 -0700 (PDT) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Thu, 24 Apr 2014 20:01:33 +0300 Message-Id: <1398358899-9851-3-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398358899-9851-1-git-send-email-taras.kondratiuk@linaro.org> References: <1398358899-9851-1-git-send-email-taras.kondratiuk@linaro.org> Cc: linaro-networking@linaro.org Subject: [lng-odp] [PATCH v4 2/8] 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..398f8dd --- /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./include +EXTRA_CFLAGS += -I./include/api +EXTRA_CFLAGS += -I$(LINUX_GENERIC_DIR)/include +EXTRA_CFLAGS += -I$(LINUX_GENERIC_DIR)/include/api +EXTRA_CFLAGS += -I$(ODP_ROOT)/include + +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