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"
--- /dev/null
+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
--- /dev/null
+###############################################################################
+#
+# 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))