fmc: new package

Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Matt Weber 2014-06-10 19:50:30 -07:00 committed by Thomas Petazzoni
parent 9da3b5d5f9
commit da68699446
3 changed files with 51 additions and 0 deletions

View 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"

19
package/fmc/Config.in Normal file
View File

@ -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

31
package/fmc/fmc.mk Normal file
View File

@ -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))