fmc: new package
authorMatt Weber <matthew.weber@rockwellcollins.com>
Wed, 11 Jun 2014 02:50:30 +0000 (19:50 -0700)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 14 Jun 2014 17:00:00 +0000 (19:00 +0200)
Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/fmc/Config.in [new file with mode: 0644]
package/fmc/fmc.mk [new file with mode: 0644]

index 33f3c7349c0e67030f458fae8500c71ce5655ceb..9627d5001ce710223187bb25698e7f23ced53c4b 100644 (file)
@@ -922,6 +922,7 @@ endif
        source "package/ebtables/Config.in"
        source "package/ethtool/Config.in"
        source "package/faifa/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 (file)
index 0000000..35de28e
--- /dev/null
@@ -0,0 +1,19 @@
+comment "fmc needs a toolchain w/ C++"
+       depends on !BR2_INSTALL_LIBSTDCPP
+
+config BR2_PACKAGE_FMC
+       bool "fmc"
+       depends on BR2_powerpc_e500mc
+       depends on BR2_INSTALL_LIBSTDCPP
+       select BR2_PACKAGE_TCLAP
+       select BR2_PACKAGE_LIBXML2
+       select BR2_PACKAGE_FMLIB
+       help
+         The Frame Manager Configuration tool is Freescale PowerPC platform
+         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 (file)
index 0000000..f9091c0
--- /dev/null
@@ -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 -dpfr $(@D)/etc/fmc $(TARGET_DIR)/etc/
+endef
+
+$(eval $(generic-package))