From patchwork Tue Jun 10 15:02:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Weber X-Patchwork-Id: 357970 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 0B0191400B8 for ; Wed, 11 Jun 2014 01:49:00 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 100E989C21; Tue, 10 Jun 2014 15:48:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pfQLJmo2TVaW; Tue, 10 Jun 2014 15:48:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id BE7C789EE7; Tue, 10 Jun 2014 15:48:55 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 404CC1C2E75 for ; Tue, 10 Jun 2014 15:48:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3AB2F8B507 for ; Tue, 10 Jun 2014 15:48:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P7TlEoWG-0HY for ; Tue, 10 Jun 2014 15:48:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from secvs01.rockwellcollins.com (secvs01.rockwellcollins.com [205.175.225.240]) by whitealder.osuosl.org (Postfix) with ESMTPS id A17CC8B4A2 for ; Tue, 10 Jun 2014 15:48:47 +0000 (UTC) Received: from nosuchhost.198.131.in-addr.arpa (HELO crulimr02.rockwellcollins.com) ([131.198.26.125]) by mail-virt.rockwellcollins.com with ESMTP; 10 Jun 2014 10:02:18 -0500 Received: from localhost.localdomain (crp23476.rockwellcollins.com [131.199.101.31]) by crulimr02.rockwellcollins.com (Postfix) with ESMTP id 8BE2360787; Tue, 10 Jun 2014 10:02:18 -0500 (CDT) From: Matt Weber To: buildroot@busybox.net Date: Tue, 10 Jun 2014 08:02:04 -0700 Message-Id: <1402412526-24844-2-git-send-email-matthew.weber@rockwellcollins.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1402412526-24844-1-git-send-email-matthew.weber@rockwellcollins.com> References: <1402412526-24844-1-git-send-email-matthew.weber@rockwellcollins.com> Subject: [Buildroot] [PATCH 1/3] fmlib: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Matt Weber --- package/Config.in | 1 + package/fmlib/Config.in | 9 +++++++++ package/fmlib/fmlib.mk | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 package/fmlib/Config.in create mode 100644 package/fmlib/fmlib.mk diff --git a/package/Config.in b/package/Config.in index 1706197..60118ea 100644 --- a/package/Config.in +++ b/package/Config.in @@ -715,6 +715,7 @@ source "package/c-ares/Config.in" source "package/cppzmq/Config.in" source "package/czmq/Config.in" source "package/filemq/Config.in" +source "package/fmlib/Config.in" source "package/glib-networking/Config.in" source "package/libcgi/Config.in" source "package/libcgicc/Config.in" diff --git a/package/fmlib/Config.in b/package/fmlib/Config.in new file mode 100644 index 0000000..43f7aa3 --- /dev/null +++ b/package/fmlib/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_FMLIB + bool "fmlib" + depends on BR2_powerpc_e500mc + help + The Frame Manager library provides an API on top of the Frame Manager driver + ioctl calls, that provides a user space application with a simple way + to configure driver parameters and PCD (parse - classify - distribute) rules. + + http://git.freescale.com/git/cgit.cgi/ppc/sdk/fmlib.git/tree/README diff --git a/package/fmlib/fmlib.mk b/package/fmlib/fmlib.mk new file mode 100644 index 0000000..b2dedaa --- /dev/null +++ b/package/fmlib/fmlib.mk @@ -0,0 +1,33 @@ +############################################################# +# +# fmlib +# +############################################################# + +FMLIB_VERSION = fsl-sdk-v1.5-rc3 +FMLIB_SITE = git://git.freescale.com/ppc/sdk/fmlib.git +FMLIB_LICENSE = BSD-c3 +FMLIB_LICENSE_FILES = COPYING +FMLIB_DEPENDENCIES = linux +FMLIB_INSTALL_STAGING = YES +FMLIB_INSTALL_TARGET = NO + +FMLIB_MAKE_OPTS = \ + CC="$(TARGET_CC)" \ + CROSS_COMPILE="$(TARGET_CROSS)" \ + KERNEL_SRC="$(LINUX_DIR)" \ + PREFIX="$(STAGING_DIR)/usr" + +ifeq ($(BR2_powerpc_e500mc), y) + FMLIB_ARCHTYPE = ppce500mc +endif + +define FMLIB_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(FMLIB_MAKE_OPTS) -C $(@D) libfm-$(FMLIB_ARCHTYPE).a +endef + +define FMLIB_INSTALL_STAGING_CMDS + $(FMLIB_MAKE_ENV) $(MAKE) $(FMLIB_MAKE_OPTS) -C $(@D) install-libfm-$(FMLIB_ARCHTYPE) +endef + +$(eval $(generic-package))