From patchwork Tue Jun 10 15:02:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Weber X-Patchwork-Id: 357969 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 76C421400B8 for ; Wed, 11 Jun 2014 01:48:56 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8E4B189BB8; Tue, 10 Jun 2014 15:48:54 +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 SP7VshzvhGcO; Tue, 10 Jun 2014 15:48:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 0A8D089C35; Tue, 10 Jun 2014 15:48:53 +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 830BF1C2E75 for ; Tue, 10 Jun 2014 15:48:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7F7FB8B507 for ; Tue, 10 Jun 2014 15:48:48 +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 4UrxZJozN9q3 for ; Tue, 10 Jun 2014 15:48:47 +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 6D27B8B6BD 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 99F5260787; Tue, 10 Jun 2014 10:02:18 -0500 (CDT) From: Matt Weber To: buildroot@busybox.net Date: Tue, 10 Jun 2014 08:02:06 -0700 Message-Id: <1402412526-24844-4-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 3/3] fmc: 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/fmc/Config.in | 14 ++++++++++++++ package/fmc/fmc.mk | 31 +++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 package/fmc/Config.in create mode 100644 package/fmc/fmc.mk diff --git a/package/Config.in b/package/Config.in index ac3af6b..f874eaf 100644 --- a/package/Config.in +++ b/package/Config.in @@ -918,6 +918,7 @@ source "package/dnsmasq/Config.in" source "package/dropbear/Config.in" source "package/ebtables/Config.in" source "package/ethtool/Config.in" +source "package/fmc/Config.in source "package/foomatic-filters/Config.in" source "package/fping/Config.in" source "package/gesftpserver/Config.in" diff --git a/package/fmc/Config.in b/package/fmc/Config.in new file mode 100644 index 0000000..9530756 --- /dev/null +++ b/package/fmc/Config.in @@ -0,0 +1,14 @@ +config BR2_PACKAGE_FMC + bool "fmc" + depends on BR2_powerpc_e500mc + select BR2_PACKAGE_TCLAP + select BR2_PACKAGE_LIBXML2 + select BR2_PACKAGE_FMLIB + help + The Frame Manager Configuration tool is a software package whose primary + purpose is converting Parse-Classify-Police-Distribute (PCD) descriptions of + network packets flow into hardware configuration. The tool provides an + abstraction layer between the end customer's vision of the PCD task + definition and real hardware implementation. + + http://cache.freescale.com/files/32bit/doc/app_note/AN4760.pdf diff --git a/package/fmc/fmc.mk b/package/fmc/fmc.mk new file mode 100644 index 0000000..513a8ef --- /dev/null +++ b/package/fmc/fmc.mk @@ -0,0 +1,31 @@ +############################################################################### +# +# fmc +# +############################################################################### + +FMC_VERSION = fsl-sdk-v1.5-rc3 +FMC_SITE = git://git.freescale.com/ppc/sdk/fmc.git +FMC_LICENSE = MIT +FMC_LICENSE_FILES = COPYING +FMC_DEPENDENCIES = libxml2 tclap fmlib + +FMC_MAKE_OPTS = \ + CC="$(TARGET_CC)" \ + CXX="$(TARGET_CXX)" \ + FMD_USPACE_HEADER_PATH="$(STAGING_DIR)/usr/include/fmd" \ + FMD_USPACE_LIB_PATH="$(STAGING_DIR)/usr/lib" \ + LIBXML2_HEADER_PATH="$(STAGING_DIR)/usr/include/libxml2" \ + TCLAP_HEADER_PATH="$(STAGING_DIR)/usr/include" + +define FMC_BUILD_CMDS + # The linking step has dependency issues so using MAKE1 + $(TARGET_MAKE_ENV) $(MAKE1) $(FMC_MAKE_OPTS) -C $(@D)/source +endef + +define FMC_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/source/fmc $(TARGET_DIR)/usr/sbin/fmc + cp -dr --no-preserve=ownership $(@D)/etc/fmc $(TARGET_DIR)/etc/ +endef + +$(eval $(generic-package))